charts/charts-wip/radosgw/templates/ingress.yaml

33 lines
745 B
YAML
Raw Normal View History

2019-07-06 21:17:57 +00:00
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "radosgw.fullname" . -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{ include "radosgw.labels" . | indent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
2019-07-07 06:01:00 +00:00
- host: {{ .Values.dnsName | quote }}
2019-07-06 21:17:57 +00:00
http:
paths:
2019-07-07 06:01:00 +00:00
- path: /
2019-07-06 21:17:57 +00:00
backend:
serviceName: {{ $fullName }}
servicePort: http
{{- end }}