apps/kube-prometheus/resources/http_routes.grafana.yaml

34 lines
630 B
YAML
Raw Normal View History

2024-05-08 11:15:04 +00:00
---
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: 3000