Files
truecharts/charts/ix-chart/v2009.0.1/templates/deployment.yaml
T
2020-09-29 01:07:25 +05:00

41 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "ix-chart.fullname" . }}
labels:
{{- include "ix-chart.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "ix-chart.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "ix-chart.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
imagePullPolicy: {{ .Values.image.pull_policy }}
{{- if .Values.container_command }}
command:
{{- range .Values.container_command }}
- {{ . | quote}}
{{- end }}
{{- end }}
{{- if .Values.container_args }}
args:
{{- range .Values.container_args }}
- {{ . | quote}}
{{- end }}
{{- end }}
{{- if .Values.container_environment_variables }}
env:
{{- range .Values.container_environment_variables }}
- name: {{ .name | quote }}
value: {{ .value | quote }}
{{- end }}
{{- end }}