Add service for nginx

This commit is contained in:
sonicaj
2021-09-14 17:35:16 +05:00
parent 25796dfdcd
commit f4639626d5
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
{{ $port := .Values.nodePort }}
{{ $ports := list }}
{{ $ports = mustAppend $ports (dict "name" "https" "port" $port "nodePort" $port "targetPort" "collabora") }}
{{ $params := (. | mustDeepCopy) }}
{{ $_ := set $params "common" (dict "nameSuffix" "nginx") "commonService" (dict "ports" $ports "type" "NodePort" ) }}
{{ include "common.classes.service" $params }}

View File

@@ -2,5 +2,5 @@
{{ $ports := list }}
{{ $ports = mustAppend $ports (dict "name" "collabora" "port" $port "nodePort" $port "targetPort" "collabora") }}
{{ $params := . }}
{{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }}
{{ $_ := set $params "commonService" (dict "ports" $ports "type" "ClusterIP" ) }}
{{ include "common.classes.service" $params }}