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