postgres-service.yaml 431 B

12345678
  1. {{ if .Values.logsearchapi.enabled }}
  2. {{ $ports := list }}
  3. {{ $ports = mustAppend $ports (dict "name" "postgres-tcp" "port" 5432 "targetPort" 5432) }}
  4. {{ $values := (. | mustDeepCopy) }}
  5. {{ $_ := set $values "common" (dict "nameSuffix" (printf "%s-pg" (include "postgres.nameSuffix" .))) }}
  6. {{ $_1 := set $values "commonService" (dict "type" "ClusterIP" "ports" $ports ) }}
  7. {{ include "common.classes.service" $values }}
  8. {{ end }}