From 1635fc38a696cfcebb4f07ddd28dce4674550238 Mon Sep 17 00:00:00 2001 From: Syunsuke Komma Date: Wed, 18 Mar 2020 15:30:47 +0900 Subject: [PATCH] [stable/nginx-ingress] fix service selector (#21512) * fixes #21508 Signed-off-by: Syunsuke Komma * bump chart version Signed-off-by: Syunsuke Komma --- stable/nginx-ingress/Chart.yaml | 2 +- stable/nginx-ingress/templates/controller-service.yaml | 2 +- stable/nginx-ingress/templates/default-backend-service.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/nginx-ingress/Chart.yaml b/stable/nginx-ingress/Chart.yaml index 9ac1456511e2..88935653e5cc 100644 --- a/stable/nginx-ingress/Chart.yaml +++ b/stable/nginx-ingress/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: nginx-ingress -version: 1.34.0 +version: 1.34.1 appVersion: 0.30.0 home: https://github.com/kubernetes/ingress-nginx description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration. diff --git a/stable/nginx-ingress/templates/controller-service.yaml b/stable/nginx-ingress/templates/controller-service.yaml index 5961fc159480..4cbcb9c344a5 100644 --- a/stable/nginx-ingress/templates/controller-service.yaml +++ b/stable/nginx-ingress/templates/controller-service.yaml @@ -88,7 +88,7 @@ spec: {{- end }} selector: app: {{ template "nginx-ingress.name" . }} - component: "{{ .Values.controller.name }}" release: {{ .Release.Name }} + app.kubernetes.io/component: controller type: "{{ .Values.controller.service.type }}" {{- end }} diff --git a/stable/nginx-ingress/templates/default-backend-service.yaml b/stable/nginx-ingress/templates/default-backend-service.yaml index c7d336eeaf32..bd151edab731 100644 --- a/stable/nginx-ingress/templates/default-backend-service.yaml +++ b/stable/nginx-ingress/templates/default-backend-service.yaml @@ -39,7 +39,7 @@ spec: targetPort: http selector: app: {{ template "nginx-ingress.name" . }} - component: "{{ .Values.defaultBackend.name }}" release: {{ .Release.Name }} + app.kubernetes.io/component: default-backend type: "{{ .Values.defaultBackend.service.type }}" {{- end }}