From 306c6f2eccd60c661ba6ce721b4e958040e559c2 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 5 Aug 2022 21:45:39 +0200 Subject: [PATCH] [hardware] rename the pod --- generic/ingress-test.yaml | 55 +++++++++++++++++++++------- generic/ungleich-hardware-sleep.yaml | 6 +-- 2 files changed, 44 insertions(+), 17 deletions(-) diff --git a/generic/ingress-test.yaml b/generic/ingress-test.yaml index eb7c65f..f048865 100644 --- a/generic/ingress-test.yaml +++ b/generic/ingress-test.yaml @@ -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 diff --git a/generic/ungleich-hardware-sleep.yaml b/generic/ungleich-hardware-sleep.yaml index 546ba3e..081e758 100644 --- a/generic/ungleich-hardware-sleep.yaml +++ b/generic/ungleich-hardware-sleep.yaml @@ -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