Skip to content

Commit

Permalink
Try ingress configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Starttoaster authored Sep 19, 2024
1 parent 94913b2 commit 33f1b6e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
40 changes: 38 additions & 2 deletions helm/pub-metrics-grafana/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,46 @@ spec:
- host: {{ .Values.ingress.hostname | quote }}
http:
paths:
- pathType: Prefix
path: /
- path: /$
pathType: Exact
backend:
service:
name: {{ $fullName }}
port:
name: {{ $servicePort }}
- path: /dashboards
pathType: Prefix
backend:
service:
name: {{ $fullName }}
port:
name: {{ $servicePort }}
- path: /d/.*
pathType: Prefix
backend:
service:
name: {{ $fullName }}
port:
name: {{ $servicePort }}
- path: /playlists
pathType: Prefix
backend:
service:
name: {{ $fullName }}
port:
name: {{ $servicePort }}
# Deny /api and /admin by sending them to a non-existent service or returning 404
- path: /api
pathType: Prefix
backend:
service:
name: dummy-service # Doesn't exist, returns 404
port:
number: 80
- path: /admin
pathType: Prefix
backend:
service:
name: dummy-service # Doesn't exist, returns 404
port:
number: 80
4 changes: 0 additions & 4 deletions helm/pub-metrics-grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ ingress:
hostname: dashboard.chia.net
annotations:
ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/server-snippet: |
location ~* /(api|admin) {
return 403;
}
servicePort: http
tls:
enabled: true
Expand Down

0 comments on commit 33f1b6e

Please sign in to comment.