diff --git a/deploy/default-backend.yaml b/deploy/default-backend.yaml index 64f6f58ad..7894d0f7b 100644 --- a/deploy/default-backend.yaml +++ b/deploy/default-backend.yaml @@ -7,6 +7,9 @@ metadata: namespace: ingress-nginx spec: replicas: 1 + selector: + matchLabels: + app: default-http-backend template: metadata: labels: diff --git a/docs/examples/customization/external-auth-headers/deploy/auth-service.yaml b/docs/examples/customization/external-auth-headers/deploy/auth-service.yaml index 87a58730b..af8f09518 100644 --- a/docs/examples/customization/external-auth-headers/deploy/auth-service.yaml +++ b/docs/examples/customization/external-auth-headers/deploy/auth-service.yaml @@ -7,6 +7,9 @@ metadata: namespace: default spec: replicas: 1 + selector: + matchLabels: + k8s-app: demo-auth-service template: metadata: labels: diff --git a/docs/examples/customization/external-auth-headers/deploy/echo-service.yaml b/docs/examples/customization/external-auth-headers/deploy/echo-service.yaml index 7145a3a46..363c4bf3d 100644 --- a/docs/examples/customization/external-auth-headers/deploy/echo-service.yaml +++ b/docs/examples/customization/external-auth-headers/deploy/echo-service.yaml @@ -7,6 +7,9 @@ metadata: namespace: default spec: replicas: 1 + selector: + matchLabels: + k8s-app: demo-echo-service template: metadata: labels: diff --git a/docs/examples/http-svc.yaml b/docs/examples/http-svc.yaml index 159518ff5..ad074b9d0 100644 --- a/docs/examples/http-svc.yaml +++ b/docs/examples/http-svc.yaml @@ -4,6 +4,9 @@ metadata: name: http-svc spec: replicas: 1 + selector: + matchLabels: + app: http-svc template: metadata: labels: diff --git a/docs/examples/static-ip/nginx-ingress-controller.yaml b/docs/examples/static-ip/nginx-ingress-controller.yaml index 3368cbafc..372845cd9 100644 --- a/docs/examples/static-ip/nginx-ingress-controller.yaml +++ b/docs/examples/static-ip/nginx-ingress-controller.yaml @@ -6,6 +6,9 @@ metadata: k8s-app: nginx-ingress-controller spec: replicas: 1 + selector: + matchLabels: + k8s-app: nginx-ingress-controller template: metadata: labels: diff --git a/images/echoheaders/echo-app.yaml b/images/echoheaders/echo-app.yaml index 4ffe68134..1e9a172b0 100644 --- a/images/echoheaders/echo-app.yaml +++ b/images/echoheaders/echo-app.yaml @@ -22,6 +22,9 @@ metadata: app: echoheaders spec: replicas: 1 + selector: + matchLabels: + app: echoheaders template: metadata: labels: