Skip to content

Commit 93f6671

Browse files
committed
making services optional in k8s-deployment
1 parent 305fe68 commit 93f6671

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

k8s-deployment/templates/service.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.servicePorts }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -8,5 +9,6 @@ metadata:
89
{{- end }}
910
spec:
1011
type: ClusterIP
11-
ports: {{- .Values.servicePorts | toYaml | nindent 4 }}
12-
selector: {{- include "deployment.selectorLabels" . | nindent 4 }}
12+
ports: {{- .Values.servicePorts | toYaml | nindent 4 }}
13+
selector: {{- include "deployment.selectorLabels" . | nindent 4 }}
14+
{{- end }}

0 commit comments

Comments
 (0)