Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix configuration issues on ingress #409

Merged
merged 1 commit into from
Jun 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Upgrade to Grafana v9.4.7 in order to avoid issues with locking database (https://github.com/grafana/grafana/issues/60703)
- Change Grafana requirements to 2 CPU and 14 Gi memory.
- Separate the timeouts for Kubernetes API, Grafana, and Interactions (logs, reports).
- Disable Kubernetes dashboard by default.
- ...

### New Features & Functionality
Expand Down
36 changes: 18 additions & 18 deletions charts/platform/templates/ingress.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
{{- if .Values.chaos.enabled }}
---
{{- if .Values.dashboard.enabled}}
# https://stackoverflow.com/questions/54506269/simple-ingress-from-host-with-microk8s
# https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: chaos-dashboard
name: dashboard
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
spec:
ingressClassName: {{.Values.global.ingressClass}}
rules:

- host: chaos-frisbee.{{.Values.global.domainName}}
- host: dashboard-frisbee.{{.Values.global.domainName}}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: chaos-dashboard
name: {{.Release.Name}}-kubernetes-dashboard
port:
number: 2333
number: 443
{{- end}}
---
# https://stackoverflow.com/questions/54506269/simple-ingress-from-host-with-microk8s
# https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/
{{- if .Values.chaos.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dashboard
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
name: chaos-dashboard
spec:
ingressClassName: {{.Values.global.ingressClass}}
rules:
{{- if .Values.dashboard.enabled}}
- host: dashboard-frisbee.{{.Values.global.domainName}}

- host: chaos-frisbee.{{.Values.global.domainName}}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{.Release.Name}}-kubernetes-dashboard
name: chaos-dashboard
port:
number: 443
{{- end}}
number: 2333
{{- end}}
2 changes: 1 addition & 1 deletion charts/platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ chaos-mesh:

## @param dashboard.enabled Whether to enable Dashboard
dashboard:
enabled: true
enabled: false