Skip to content

Commit 2539b93

Browse files
committed
fix configuration issues on ingress
Signed-off-by: Fotis Nikolaidis <[email protected]>
1 parent d0d5745 commit 2539b93

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Upgrade to Grafana v9.4.7 in order to avoid issues with locking database (https://github.com/grafana/grafana/issues/60703)
77
- Change Grafana requirements to 2 CPU and 14 Gi memory.
88
- Separate the timeouts for Kubernetes API, Grafana, and Interactions (logs, reports).
9+
- Disable Kubernetes dashboard by default.
910
- ...
1011

1112
### New Features & Functionality
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
{{- if .Values.chaos.enabled }}
21
---
2+
{{- if .Values.dashboard.enabled}}
3+
# https://stackoverflow.com/questions/54506269/simple-ingress-from-host-with-microk8s
4+
# https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/
35
apiVersion: networking.k8s.io/v1
46
kind: Ingress
57
metadata:
6-
name: chaos-dashboard
8+
name: dashboard
9+
annotations:
10+
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
11+
nginx.ingress.kubernetes.io/ssl-redirect: "true"
12+
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
713
spec:
814
ingressClassName: {{.Values.global.ingressClass}}
915
rules:
10-
11-
- host: chaos-frisbee.{{.Values.global.domainName}}
16+
- host: dashboard-frisbee.{{.Values.global.domainName}}
1217
http:
1318
paths:
1419
- path: /
1520
pathType: Prefix
1621
backend:
1722
service:
18-
name: chaos-dashboard
23+
name: {{.Release.Name}}-kubernetes-dashboard
1924
port:
20-
number: 2333
25+
number: 443
2126
{{- end}}
2227
---
23-
# https://stackoverflow.com/questions/54506269/simple-ingress-from-host-with-microk8s
24-
# https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/
28+
{{- if .Values.chaos.enabled }}
2529
apiVersion: networking.k8s.io/v1
2630
kind: Ingress
2731
metadata:
28-
name: dashboard
29-
annotations:
30-
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
31-
nginx.ingress.kubernetes.io/ssl-redirect: "true"
32-
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
32+
name: chaos-dashboard
3333
spec:
3434
ingressClassName: {{.Values.global.ingressClass}}
3535
rules:
36-
{{- if .Values.dashboard.enabled}}
37-
- host: dashboard-frisbee.{{.Values.global.domainName}}
36+
37+
- host: chaos-frisbee.{{.Values.global.domainName}}
3838
http:
3939
paths:
4040
- path: /
4141
pathType: Prefix
4242
backend:
4343
service:
44-
name: {{.Release.Name}}-kubernetes-dashboard
44+
name: chaos-dashboard
4545
port:
46-
number: 443
47-
{{- end}}
46+
number: 2333
47+
{{- end}}

charts/platform/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ chaos-mesh:
8484

8585
## @param dashboard.enabled Whether to enable Dashboard
8686
dashboard:
87-
enabled: true
87+
enabled: false

0 commit comments

Comments
 (0)