diff --git a/charts/common/templates/_container.yaml b/charts/common/templates/_container.yaml index f0649f4b..22ec6c8c 100644 --- a/charts/common/templates/_container.yaml +++ b/charts/common/templates/_container.yaml @@ -19,7 +19,7 @@ ports: {{- range .Values.ports }} - name: {{ .name }} containerPort: {{ .containerPort }} - protocol: TCP + protocol: {{ if .protocol }}{{ .protocol }}{{ else }}TCP{{ end }} {{- end }} {{- end }} {{- if .Values.probe.enabled }} @@ -51,4 +51,4 @@ resources: {{- toYaml .Values.resources | nindent 2 }} {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }}