mirror of
https://github.com/truenas/charts.git
synced 2026-11-29 23:35:59 +00:00
9 lines
561 B
YAML
9 lines
561 B
YAML
{{ $svc := .Values.service }}
|
|
{{ $ports := list }}
|
|
{{ $ports = mustAppend $ports (dict "name" "swarm" "port" $svc.swarmPort "nodePort" $svc.swarmPort "targetPort" 9401) }}
|
|
{{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.apiPort "nodePort" $svc.apiPort "targetPort" 9501) }}
|
|
{{ $ports = mustAppend $ports (dict "name" "gateway" "port" $svc.gatewayPort "nodePort" $svc.gatewayPort "targetPort" 9880) }}
|
|
{{ $params := . }}
|
|
{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
|
|
{{ include "common.classes.service" $params }}
|