github.com/hellofresh/janus@v0.0.0-20230925145208-ce8de8183c67/janus/templates/ingress.yaml (about) 1 {{- if .Values.ingress.enabled -}} 2 {{- $fullName := include "janus.fullname" ( dict "Values" .Values "Chart" .Chart "Release" .Release "name" .Values.ingress.name ) -}} 3 apiVersion: extensions/v1beta1 4 kind: Ingress 5 metadata: 6 name: {{ $fullName }} 7 labels: 8 {{ include "janus.labels" . | indent 4 }} 9 {{- with .Values.ingress.annotations }} 10 annotations: 11 {{- toYaml . | nindent 4 }} 12 {{- end }} 13 spec: 14 {{- if .Values.ingress.tls }} 15 tls: 16 {{- range .Values.ingress.tls }} 17 - hosts: 18 {{- range .hosts }} 19 - {{ . | quote }} 20 {{- end }} 21 secretName: {{ .secretName }} 22 {{- end }} 23 {{- end }} 24 rules: 25 {{- range .Values.ingress.hosts }} 26 - host: {{ .host | quote }} 27 http: 28 paths: 29 {{- range .paths }} 30 - path: {{ .path }} 31 backend: 32 serviceName: {{ $fullName }} 33 servicePort: {{ .port }} 34 {{- end }} 35 {{- end }} 36 {{- end }}