-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
ingress.yaml
38 lines (38 loc) · 1.29 KB
/
ingress.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{{- if .Values.ingress.dashboard.host }}
---
apiVersion: {{ include "capabilities.ingress.apiVersion" . }}
kind: Ingress
metadata:
name: {{ template "clusterName" . }}-dashboard
{{- if .Values.ingress.dashboard.annotations }}
annotations: {{- toYaml .Values.ingress.dashboard.annotations | nindent 4 }}
{{- end }}
spec:
rules:
- host: {{ .Values.ingress.dashboard.host.name }}
http:
paths:
- path: {{ .Values.ingress.dashboard.host.path | default "/" }}
backend:
{{- if (eq "networking.k8s.io/v1" (include "capabilities.ingress.apiVersion" .)) }}
service:
name: rook-ceph-mgr-dashboard
port:
{{- if .Values.cephClusterSpec.dashboard.ssl }}
name: https-dashboard
{{- else }}
name: http-dashboard
{{- end }}
pathType: Prefix
{{- else }}
serviceName: rook-ceph-mgr-dashboard
{{- if .Values.cephClusterSpec.dashboard.ssl }}
servicePort: https-dashboard
{{- else }}
servicePort: http-dashboard
{{- end }}
{{- end }}
{{- if .Values.ingress.dashboard.tls }}
tls: {{- toYaml .Values.ingress.dashboard.tls | nindent 4 }}
{{- end }}
{{- end }}