Skip to content

Instantly share code, notes, and snippets.

@jwillker
Created May 8, 2022 20:00
Show Gist options
  • Select an option

  • Save jwillker/98205d068a5b8286f6139510c5733a91 to your computer and use it in GitHub Desktop.

Select an option

Save jwillker/98205d068a5b8286f6139510c5733a91 to your computer and use it in GitHub Desktop.
image: "{{ .Values.containers.image }}:{{ .Values.app.version }}"
imagePullPolicy: {{ .Values.containers.pullPolicy }}
{{- if .Values.containers.command }}
command:
{{- range .Values.containers.command }}
- {{ . }}
{{- end }}
{{- end }}
{{- if .Values.containers.args }}
args:
{{- range .Values.containers.args }}
- {{ . }}
{{- end }}
{{- end }}
ports:
{{- if .Values.containers.port }}
- name: "{{ .Values.app.protocol }}-app"
containerPort: {{ .Values.containers.port }}
{{- end }}
{{- if .Values.containers.additionalPorts }}
{{- range .Values.containers.additionalPorts }}
- name: {{ .name }}
containerPort: {{ .port }}
{{- end }}
{{- end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment