postgres-service.yaml 346 B

123456
  1. {{ $ports := list }}
  2. {{ $ports = mustAppend $ports (dict "name" "postgres-tcp" "port" 5432 "targetPort" 5432) }}
  3. {{ $values := (. | mustDeepCopy) }}
  4. {{ $_ := set $values "common" (dict "nameSuffix" "postgres-ha") }}
  5. {{ $_1 := set $values "commonService" (dict "type" "ClusterIP" "ports" $ports ) }}
  6. {{ include "common.classes.service" $values }}