feat(observability): add HTTP routes
All checks were successful
Renovate / renovate (push) Successful in 42s

This commit is contained in:
Peter 2024-05-08 13:15:04 +02:00
parent 422fa5b276
commit 1424544ed6
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 35 additions and 0 deletions

View file

@ -7,6 +7,7 @@ resources:
- resources/secret.grafana-admin.yaml
- resources/secret.auth.yaml
- resources/secret.db.yaml
- resources/http_routes.grafana.yaml
helmCharts:
- name: kube-prometheus-stack

View file

@ -0,0 +1,34 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: grafana-http
spec:
parentRefs:
- name: contour
sectionName: http
namespace: projectcontour
hostnames:
- grafana.icb4dc0.de
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: grafana-https
spec:
parentRefs:
- name: contour
sectionName: https
namespace: projectcontour
hostnames:
- grafana.icb4dc0.de
rules:
- backendRefs:
- name: prometheus-grafana
port: 80