mirror of
https://github.com/truenas/charts.git
synced 2026-05-04 14:32:47 +08:00
11 lines
472 B
YAML
11 lines
472 B
YAML
{{ $port := .Values.nodePort }}
|
|
{{ $ports := list }}
|
|
{{ if .Values.certificate }}
|
|
{{ $ports = mustAppend $ports (dict "name" "https" "nodePort" $port "targetPort" 443 "port" 443) }}
|
|
{{ else }}
|
|
{{ $ports = mustAppend $ports (dict "name" "http" "nodePort" $port "targetPort" 9980 "port" 9980) }}
|
|
{{ end }}
|
|
{{ $params := (. | mustDeepCopy) }}
|
|
{{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }}
|
|
{{ include "common.classes.service" $params }}
|