deployment #3
@ -44,18 +44,23 @@ spec:
|
|||||||
{{- range $k, $v := $values.ports }}
|
{{- range $k, $v := $values.ports }}
|
||||||
- name: {{ $k }}
|
- name: {{ $k }}
|
||||||
containerPort: {{ default $v.port $v.targetPort }}
|
containerPort: {{ default $v.port $v.targetPort }}
|
||||||
protocol: {{ default "HTTP" $v.protocol }}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
{{- include "lib.environmentVariables" . | default "[]" | nindent 12 }}
|
{{- include "lib.environmentVariables" . | default "[]" | nindent 12 }}
|
||||||
|
{{- with .Values.livenessProbe }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
{{- toYaml .Values.livenessProbe | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.readinessProbe }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
{{- toYaml .Values.readinessProbe | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.volumeMounts }}
|
{{- with .Values.volumeMounts }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
@ -19,7 +19,7 @@ spec:
|
|||||||
{{- range $k, $v := $values.ports }}
|
{{- range $k, $v := $values.ports }}
|
||||||
- port: {{ $v.port }}
|
- port: {{ $v.port }}
|
||||||
targetPort: {{ default $v.port $v.targetPort }}
|
targetPort: {{ default $v.port $v.targetPort }}
|
||||||
protocol: {{ default "HTTP" $v.protocol }}
|
protocol: {{ default "TCP" $v.protocol }}
|
||||||
name: {{ $k }}
|
name: {{ $k }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
|
@ -46,18 +46,24 @@ spec:
|
|||||||
{{- range $k, $v := $values.ports }}
|
{{- range $k, $v := $values.ports }}
|
||||||
- name: {{ $k }}
|
- name: {{ $k }}
|
||||||
containerPort: {{ $v.targetPort | default $v.port }}
|
containerPort: {{ $v.targetPort | default $v.port }}
|
||||||
protocol: {{ $v.protocol }}
|
protocol: {{ default "TCP" $v.protocol }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
{{- include "lib.environmentVariables" . | default "[]" | nindent 12 }}
|
{{- include "lib.environmentVariables" . | default "[]" | nindent 12 }}
|
||||||
|
{{- with .Values.livenessProbe }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
{{- toYaml .Values.livenessProbe | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.readinessProbe }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
{{- toYaml .Values.readinessProbe | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- range $i, $values := .Values.volumeClaimTemplates }}
|
{{- range $i, $values := .Values.volumeClaimTemplates }}
|
||||||
- name: {{ $values.name }}
|
- name: {{ $values.name }}
|
||||||
|
Loading…
Reference in New Issue
Block a user