Commit 3179fabc authored by Muhammad Rehan's avatar Muhammad Rehan

Add cluster IP services

parent 31a84fce
...@@ -4,4 +4,15 @@ ...@@ -4,4 +4,15 @@
{{ $params := . }} {{ $params := . }}
{{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }} {{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }}
{{ include "common.classes.service" $params }} {{ include "common.classes.service" $params }}
{{ }} ---
{{ $this := . }}
{{ range $coin := $this.Values.coins }}
{{ $_ := set $this "common" (dict "nameSuffix" $coin.name) }}
{{ $ports := list }}
{{ range $port := $coin.ports }}
{{ $ports = mustAppend $ports (dict "name" (printf "%v-%v" $coin.name $port.containerPort) "port" $port.containerPort "targetPort" $port.containerPort) }}
{{ end }}
{{ $_ := set $this "commonService" (dict "ports" $ports "type" "ClusterIP" ) }}
{{ include "common.classes.service" $this }}
---
{{ end }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment