Bez popisu

gateway.yaml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {{- if .Values.istio.enabled }}
  2. apiVersion: "{{ .Values.istio.apiVersion }}"
  3. kind: Gateway
  4. metadata:
  5. name: {{ template "common.names.fullname" . }}
  6. namespace: {{ include "common.names.namespace" . | quote }}
  7. labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
  8. {{- if or .Values.istio.gateway.annotations .Values.commonAnnotations }}
  9. {{- $annotations := include "common.tplvalues.merge" (dict "values" (list .Values.istio.gateway.annotations .Values.commonAnnotations) "context" .) }}
  10. annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
  11. {{- end }}
  12. spec:
  13. selector: {{- include "common.tplvalues.render" ( dict "value" .Values.istio.gateway.selector "context" $ ) | nindent 4 }}
  14. servers:
  15. {{- if .Values.istio.gateway.http.enabled }}
  16. - name: "{{ include "common.names.fullname" . }}-http"
  17. port:
  18. number: 80
  19. name: http
  20. protocol: HTTP
  21. hosts: {{ .Values.istio.hosts }}
  22. tls:
  23. httpsRedirect: {{ .Values.istio.gateway.http.httpsRedirect }}
  24. {{- end }}
  25. {{- if .Values.istio.gateway.https.enabled }}
  26. - name: "{{ include "common.names.fullname" . }}-https"
  27. port:
  28. number: 443
  29. name: https
  30. protocol: HTTPS
  31. hosts: {{ .Values.istio.hosts }}
  32. tls:
  33. credentialName: {{ .Values.istio.gateway.https.tlsCredentialName }}
  34. mode: SIMPLE
  35. {{- with .Values.istio.gateway.https.tlsCipherSuites }}
  36. cipherSuites: {{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 10 }}
  37. {{- end }}
  38. {{- end }}
  39. {{- if .Values.istio.gateway.extraServers }}
  40. {{- include "common.tplvalues.render" (dict "value" .Values.istio.gateway.extraServers "context" $) | nindent 4 }}
  41. {{- end }}
  42. {{- end }}