diff --git a/chart/templates/istio/controlplane/values.yaml b/chart/templates/istio/controlplane/values.yaml index a1114e04dde11bed89df3468880e8507cec11194..320d1ccdf204b2d9d5a1b3b879d9a904febcd41a 100644 --- a/chart/templates/istio/controlplane/values.yaml +++ b/chart/templates/istio/controlplane/values.yaml @@ -50,8 +50,19 @@ gateways: autoHttpRedirect: enabled: {{ dig "autoHttpRedirect" "enabled" "true" $values }} servers: + {{- if ($values.ports) }} + {{- range $values.ports }} - hosts: - {{ tpl ($values.hosts | default (list) | toYaml) $ | nindent 8 }} + {{- tpl ($values.hosts | default (list) | toYaml) $ | nindent 8 }} + port: + {{- tpl ( . | default (list) | toYaml) $ | nindent 8 }} + tls: + credentialName: {{ $name }}-cert + mode: {{ dig "tls" "mode" "SIMPLE" $values }} + {{- end }} + {{ else }} + - hosts: + {{- tpl ($values.hosts | default (list) | toYaml) $ | nindent 8 }} port: name: https number: 8443 @@ -59,6 +70,7 @@ gateways: tls: credentialName: {{ $name }}-cert mode: {{ dig "tls" "mode" "SIMPLE" $values }} + {{- end }} {{- end }} {{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index f70234999714c03562b235396439ec7154851007..bb676896cea9bfbd3f4205f6962aa6157e79aea9 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -157,10 +157,17 @@ istio: # private: # ingressGateway: "private-ingressgateway" # hosts: - # - "*.{{ .Values.domain }}" + # - "example.bigbang.dev" + # ports: + # - name: tls-2 + # number: 1234 + # protocol: TCP + # - name: tls + # number: 5678 + # protocol: TCP # # -- Controls default HTTP/8080 server entry with HTTP to HTTPS Redirect. # autoHttpRedirect: - # enabled: true + # enabled: false # tls: # key: "" # cert: ""