From 9e865dc87e1e77b7db367da6a876b27247afd9c5 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 22 Sep 2024 13:37:14 +0200 Subject: [PATCH] try fix ingress --- traefik/base/002-traefik.yaml | 2 +- whoami/base/whoami-deployment.yaml | 3 ++- whoami/base/whoami-svc.yaml | 7 +++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/traefik/base/002-traefik.yaml b/traefik/base/002-traefik.yaml index 277eb87..ad414df 100644 --- a/traefik/base/002-traefik.yaml +++ b/traefik/base/002-traefik.yaml @@ -22,7 +22,7 @@ spec: args: - --api.insecure - --providers.kubernetesingress - - --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-web-service + - --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-service ports: - name: web containerPort: 80 diff --git a/whoami/base/whoami-deployment.yaml b/whoami/base/whoami-deployment.yaml index 2ea60a9..d9993db 100644 --- a/whoami/base/whoami-deployment.yaml +++ b/whoami/base/whoami-deployment.yaml @@ -2,9 +2,10 @@ apiVersion: apps/v1 kind: Deployment metadata: name: whoami + labels: + app: whoami spec: replicas: 3 - revisionHistoryLimit: 3 selector: matchLabels: app: whoami diff --git a/whoami/base/whoami-svc.yaml b/whoami/base/whoami-svc.yaml index f9c62d4..5a00c25 100644 --- a/whoami/base/whoami-svc.yaml +++ b/whoami/base/whoami-svc.yaml @@ -3,10 +3,9 @@ kind: Service metadata: name: whoami spec: - type: NodePort ports: - - port: 80 - targetPort: 80 - nodePort: 31338 + - name: web + port: 80 + targetPort: web selector: app: whoami