service.yaml 561 B

12345678
  1. {{ $svc := .Values.service }}
  2. {{ $ports := list }}
  3. {{ $ports = mustAppend $ports (dict "name" "swarm" "port" $svc.swarmPort "nodePort" $svc.swarmPort "targetPort" 9401) }}
  4. {{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.apiPort "nodePort" $svc.apiPort "targetPort" 9501) }}
  5. {{ $ports = mustAppend $ports (dict "name" "gateway" "port" $svc.gatewayPort "nodePort" $svc.gatewayPort "targetPort" 9880) }}
  6. {{ $params := . }}
  7. {{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
  8. {{ include "common.classes.service" $params }}