postgres-deployment.yaml 853 B

1234567891011121314151617
  1. {{ $values := (. | mustDeepCopy) }}
  2. {{ $_ := set $values "common" (dict "nameSuffix" "postgres") }}
  3. {{ include "common.deployment.common_config" $values | nindent 0 }}
  4. spec: {{ include "common.deployment.common_spec" $values | nindent 2 }}
  5. template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }}
  6. spec:
  7. containers:
  8. - name: {{ .Chart.Name }}-postgres
  9. image: {{ template "postgres.imageName" . }}
  10. imagePullPolicy: {{ .Values.image.pullPolicy }}
  11. env: {{ include "postgres.envVariableConfiguration" $values | nindent 10 }}
  12. volumeMounts: {{ include "postgres.volumeMountsConfiguration" $values | nindent 10 }}
  13. ports:
  14. - name: postgres-tcp
  15. containerPort: 5432
  16. protocol: TCP
  17. volumes: {{ include "postgres.volumeConfiguration" $values | nindent 8 }}