github.com/replicatedhq/ship@v0.55.0/integration/init/kibana/expected/.ship/upstream/templates/ingress.yaml (about) 1 {{- if .Values.ingress.enabled -}} 2 {{- $serviceName := include "kibana.fullname" . -}} 3 {{- $servicePort := .Values.service.externalPort -}} 4 apiVersion: extensions/v1beta1 5 kind: Ingress 6 metadata: 7 labels: 8 app: {{ template "kibana.name" . }} 9 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 10 heritage: {{ .Release.Service }} 11 release: {{ .Release.Name }} 12 name: {{ template "kibana.fullname" . }} 13 annotations: 14 {{- range $key, $value := .Values.ingress.annotations }} 15 {{ $key }}: {{ $value | quote }} 16 {{- end }} 17 spec: 18 rules: 19 {{- range .Values.ingress.hosts }} 20 {{- $url := splitList "/" . }} 21 - host: {{ first $url }} 22 http: 23 paths: 24 - path: /{{ rest $url | join "/" }} 25 backend: 26 serviceName: {{ $serviceName }} 27 servicePort: {{ $servicePort }} 28 {{- end -}} 29 {{- if .Values.ingress.tls }} 30 tls: 31 {{ toYaml .Values.ingress.tls | indent 4 }} 32 {{- end -}} 33 {{- end -}}