22 lines
472 B
YAML
22 lines
472 B
YAML
|
apiVersion: networking.k8s.io/v1beta1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: grafana
|
||
|
labels:
|
||
|
app: grafana
|
||
|
annotations:
|
||
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||
|
spec:
|
||
|
tls:
|
||
|
- hosts:
|
||
|
- ${GRAFANA_EXTERNAL_HOST}
|
||
|
secretName: letsencrypt-cert
|
||
|
rules:
|
||
|
- host: ${GRAFANA_EXTERNAL_HOST}
|
||
|
http:
|
||
|
paths:
|
||
|
- path: /
|
||
|
backend:
|
||
|
serviceName: grafana
|
||
|
servicePort: http
|