github.com/replicatedcom/ship@v0.50.0/integration/base/shipapp-helm-values/expected/installer/consul/templates/consul-ingress.yaml (about) 1 {{- if .Values.uiIngress.enabled -}} 2 {{- $releaseName := .Release.Name -}} 3 {{- $servicePort := .Values.HttpPort -}} 4 {{- $serviceName := printf "%s-%s" (include "consul.fullname" .) "ui" -}} 5 apiVersion: extensions/v1beta1 6 kind: Ingress 7 metadata: 8 annotations: 9 {{- range $key, $value := .Values.uiIngress.annotations }} 10 {{ $key }}: {{ $value | quote }} 11 {{- end }} 12 labels: 13 heritage: {{ .Release.Service | quote }} 14 release: {{ .Release.Name | quote }} 15 chart: {{ template "consul.chart" . }} 16 component: "{{ .Release.Name }}-{{ .Values.Component }}" 17 {{- range $key, $value := .Values.uiIngress.labels }} 18 {{ $key }}: {{ $value | quote }} 19 {{- end }} 20 name: "{{ template "consul.fullname" . }}-ui" 21 spec: 22 rules: 23 {{- range .Values.uiIngress.hosts }} 24 - host: {{ . }} 25 http: 26 paths: 27 - backend: 28 serviceName: {{ $serviceName }} 29 servicePort: {{ $servicePort }} 30 {{- end -}} 31 {{- if .Values.uiIngress.tls }} 32 tls: 33 {{ toYaml .Values.uiIngress.tls | indent 4 }} 34 {{- end -}} 35 {{- end }}