From a54001724ec4073f61c9fa6b4f53b4594e54ba7d Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 22 Sep 2024 14:06:26 +0200 Subject: [PATCH] reset traefik ??? --- whoami/base/whoami-deployment.yaml | 3 +-- whoami/base/whoami-ingress.yaml | 2 +- whoami/base/whoami-svc.yaml | 13 +++++++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/whoami/base/whoami-deployment.yaml b/whoami/base/whoami-deployment.yaml index d9993db..6a720b4 100644 --- a/whoami/base/whoami-deployment.yaml +++ b/whoami/base/whoami-deployment.yaml @@ -2,8 +2,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: whoami - labels: - app: whoami + namespace: whoami spec: replicas: 3 selector: diff --git a/whoami/base/whoami-ingress.yaml b/whoami/base/whoami-ingress.yaml index a386e1c..4abb1c3 100644 --- a/whoami/base/whoami-ingress.yaml +++ b/whoami/base/whoami-ingress.yaml @@ -10,6 +10,6 @@ spec: pathType: Prefix backend: service: - name: whoami + name: whoami-traefik port: name: web diff --git a/whoami/base/whoami-svc.yaml b/whoami/base/whoami-svc.yaml index 5a00c25..a3bb7d5 100644 --- a/whoami/base/whoami-svc.yaml +++ b/whoami/base/whoami-svc.yaml @@ -9,3 +9,16 @@ spec: targetPort: web selector: app: whoami +--- +apiVersion: v1 +kind: Service +metadata: + name: whoami-traefik + namespace: whoami +spec: + ports: + - name: web + port: 80 + targetPort: 80 + selector: + app: whoami