[hardware] rename the pod
This commit is contained in:
parent
ea7206badc
commit
306c6f2ecc
2 changed files with 44 additions and 17 deletions
|
@ -38,7 +38,47 @@ metadata:
|
|||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: 2022-07-28.cdn.hjk.li
|
||||
- host: ge.nau.so
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: nginx-test-service
|
||||
port:
|
||||
number: 80
|
||||
- host: auch.ge.nau.so
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: nginx-test-service
|
||||
port:
|
||||
number: 80
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: example-ingress2
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: nicht.ge.nau.so
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: nginx-test-service
|
||||
port:
|
||||
number: 80
|
||||
- host: 2022-07-18-2.cdn.hjk.li
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
|
@ -48,16 +88,3 @@ spec:
|
|||
name: nginx-test-service
|
||||
port:
|
||||
number: 80
|
||||
|
||||
|
||||
|
||||
# apiVersion: v1
|
||||
# kind: Pod
|
||||
# metadata:
|
||||
# name: echoserver
|
||||
# spec:
|
||||
# containers:
|
||||
# - name: echoserver
|
||||
# image: gcr.io/google_containers/echoserver:1.4
|
||||
# ports:
|
||||
# - containerPort: 8080
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: ungleich-hardware
|
||||
name: ungleich-hardware-server118
|
||||
spec:
|
||||
containers:
|
||||
- name: ungleich-hardware
|
||||
- name: ungleich-hardware-server118
|
||||
image: harbor.ungleich.svc.p10.k8s.ooo/ungleich-public/ungleich-hardware:0.0.3
|
||||
args:
|
||||
- sleep
|
||||
|
@ -15,7 +15,7 @@ spec:
|
|||
securityContext:
|
||||
privileged: true
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: "server100"
|
||||
kubernetes.io/hostname: "server118"
|
||||
|
||||
volumes:
|
||||
- name: dev
|
||||
|
|
Loading…
Reference in a new issue