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