|
|
- {{- if .Values.ingress.enabled -}}
- {{- $fullName := include "webstatus.fullname" . -}}
- {{- $ingressPath := include "pathBase" . -}}
- apiVersion: extensions/v1beta1
- kind: Ingress
- metadata:
- name: {{ template "webstatus.fullname" . }}
- labels:
- app: {{ template "webstatus.name" . }}
- chart: {{ template "webstatus.chart" . }}
- release: {{ .Release.Name }}
- heritage: {{ .Release.Service }}
- {{- with .Values.ingress.annotations }}
- annotations:
- {{ toYaml . | indent 4 }}
- {{- end }}
- spec:
- {{- if .Values.ingress.tls }}
- tls:
- {{- range .Values.ingress.tls }}
- - hosts:
- - {{ .Values.inf.k8s.dns }}
- secretName: {{ .secretName }}
- {{- end }}
- {{- end }}
- rules:
- - host: {{ .Values.inf.k8s.dns }}
- http:
- paths:
- - path: {{ $ingressPath }}
- backend:
- serviceName: {{ .Values.app.svc.status }}
- servicePort: http
- {{- end }}
|