k8sConfigs/grafana/grafana-ingress.yaml
zhangkun9038@dingtalk.com b64d90cab2 grafana
2026-02-17 21:10:48 +08:00

27 lines
728 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: grafana-ingress
namespace: grafana
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
traefik.ingress.kubernetes.io/router.pathmatcher: grafana
traefik.ingress.kubernetes.io/service.passhostheader: "true"
spec:
ingressClassName: traefik
rules:
- host: grafana.k8s.xunlang.home
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: grafana
port:
number: 3000
# 如果你希望启用 TLS/SSL需要额外的配置
# tls:
# - hosts:
# - grafana.k8s.xunlang.home
# secretName: grafana-tls-secret # 这是用于TLS的secret