deployment #3

Merged
jonas merged 6 commits from deployment into main 2024-10-22 12:30:57 +00:00
3 changed files with 20 additions and 9 deletions
Showing only changes of commit 4f2a9ba9b7 - Show all commits

View File

@ -44,18 +44,23 @@ spec:
{{- range $k, $v := $values.ports }}
- name: {{ $k }}
containerPort: {{ default $v.port $v.targetPort }}
protocol: {{ default "HTTP" $v.protocol }}
{{- end -}}
{{- end -}}
{{- end }}
env:
{{- include "lib.environmentVariables" . | default "[]" | nindent 12 }}
{{- with .Values.livenessProbe }}
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.readinessProbe }}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.resources }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}

View File

@ -19,7 +19,7 @@ spec:
{{- range $k, $v := $values.ports }}
- port: {{ $v.port }}
targetPort: {{ default $v.port $v.targetPort }}
protocol: {{ default "HTTP" $v.protocol }}
protocol: {{ default "TCP" $v.protocol }}
name: {{ $k }}
{{- end }}
selector:

View File

@ -46,18 +46,24 @@ spec:
{{- range $k, $v := $values.ports }}
- name: {{ $k }}
containerPort: {{ $v.targetPort | default $v.port }}
protocol: {{ $v.protocol }}
protocol: {{ default "TCP" $v.protocol }}
{{- end -}}
{{- end -}}
{{- end }}
env:
{{- include "lib.environmentVariables" . | default "[]" | nindent 12 }}
{{- with .Values.livenessProbe }}
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.readinessProbe }}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.resources }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
{{- range $i, $values := .Values.volumeClaimTemplates }}
- name: {{ $values.name }}