We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 305fe68 commit 93f6671Copy full SHA for 93f6671
1 file changed
k8s-deployment/templates/service.yaml
@@ -1,3 +1,4 @@
1
+{{- if .Values.servicePorts }}
2
apiVersion: v1
3
kind: Service
4
metadata:
@@ -8,5 +9,6 @@ metadata:
8
9
{{- end }}
10
spec:
11
type: ClusterIP
- ports: {{- .Values.servicePorts | toYaml | nindent 4 }}
12
- selector: {{- include "deployment.selectorLabels" . | nindent 4 }}
+ ports: {{- .Values.servicePorts | toYaml | nindent 4 }}
13
+ selector: {{- include "deployment.selectorLabels" . | nindent 4 }}
14
+{{- end }}
0 commit comments