From c9e0be4fcb40d5cff9da7440bd54ce7a948e8e94 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sat, 12 Oct 2024 20:26:13 +0200 Subject: [PATCH] update traefik config --- whoami/base/whoami-deployment.yaml | 3 ++- whoami/base/whoami-ingress.yaml | 8 ++++---- whoami/base/whoami-svc.yaml | 13 +++++++++++++ 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/whoami/base/whoami-deployment.yaml b/whoami/base/whoami-deployment.yaml index 6a720b4..6e417ed 100644 --- a/whoami/base/whoami-deployment.yaml +++ b/whoami/base/whoami-deployment.yaml @@ -17,4 +17,5 @@ spec: - image: ghcr.io/traefik/whoami:v1.10.3 name: whoami ports: - - containerPort: 80 + - name: web + containerPort: 80 diff --git a/whoami/base/whoami-ingress.yaml b/whoami/base/whoami-ingress.yaml index e58c212..cb9dea0 100644 --- a/whoami/base/whoami-ingress.yaml +++ b/whoami/base/whoami-ingress.yaml @@ -24,8 +24,8 @@ spec: - match: Host(`whoami.mziesel.nl`) kind: Rule services: - - name: whoami - port: 80 + - name: whoami-traefik + port: web --- apiVersion: traefik.io/v1alpha1 @@ -39,5 +39,5 @@ spec: - match: Host(`whoami.mziesel.nl`) kind: Rule services: - - name: whoami - port: 80 + - name: whoami-traefik + port: web diff --git a/whoami/base/whoami-svc.yaml b/whoami/base/whoami-svc.yaml index 75bb1fb..43ef7b2 100644 --- a/whoami/base/whoami-svc.yaml +++ b/whoami/base/whoami-svc.yaml @@ -12,6 +12,19 @@ spec: --- apiVersion: v1 kind: Service +metadata: + name: whoami-traefik + namespace: whoami +spec: + ports: + - name: web + port: 80 + targetPort: 80 + selector: + app: whoami +--- +apiVersion: v1 +kind: Service metadata: name: whoami-np namespace: whoami