helm: use a more explicit value for ingress
The networking.k8s.io/v1 api defines the backend differently to networking.k8s.io/v1beta1 and extensions/v1beta1 Signed-off-by: Tom Hellier <me@tomhellier.com>
This commit is contained in:
1 file changed
+8
-8
@@ -14,14 +14,7 @@ spec:
|
||||
paths:
|
||||
- path: {{ .Values.ingress.dashboard.host.path | default "/" }}
|
||||
backend:
|
||||
{{- if (semverCompare "<1.18-0" (include "capabilities.kubeVersion" .)) }}
|
||||
serviceName: rook-ceph-mgr-dashboard
|
||||
{{- if .Values.cephClusterSpec.dashboard.ssl }}
|
||||
servicePort: https-dashboard
|
||||
{{- else }}
|
||||
servicePort: http-dashboard
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- if (eq "networking.k8s.io/v1" (include "capabilities.ingress.apiVersion" .)) }}
|
||||
service:
|
||||
name: rook-ceph-mgr-dashboard
|
||||
port:
|
||||
@@ -31,6 +24,13 @@ spec:
|
||||
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 }}
|
||||
|
||||
Reference in new issue
Block a user