[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:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
rules:
|
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:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
@ -48,16 +88,3 @@ spec:
|
||||||
name: nginx-test-service
|
name: nginx-test-service
|
||||||
port:
|
port:
|
||||||
number: 80
|
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
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: ungleich-hardware
|
name: ungleich-hardware-server118
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: ungleich-hardware
|
- name: ungleich-hardware-server118
|
||||||
image: harbor.ungleich.svc.p10.k8s.ooo/ungleich-public/ungleich-hardware:0.0.3
|
image: harbor.ungleich.svc.p10.k8s.ooo/ungleich-public/ungleich-hardware:0.0.3
|
||||||
args:
|
args:
|
||||||
- sleep
|
- sleep
|
||||||
|
@ -15,7 +15,7 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: "server100"
|
kubernetes.io/hostname: "server118"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dev
|
- name: dev
|
||||||
|
|
Loading…
Reference in a new issue