k8sConfigs/efk/fluentd-ingress.yaml
2025-01-23 01:35:27 +08:00

29 lines
723 B
YAML
Raw 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: fluentd-ingress
namespace: efk
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
# 添加 SSL 终止支持的注释,如果需要 TLS/SSL 支持
# nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
ingressClassName: traefik
rules:
- host: fluentd.k8s.xunlang.home
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: fluentd-service
port:
number: 8888
# 如果你希望启用 TLS/SSL需要额外的配置
# tls:
# - hosts:
# - fluentd.k8s.xunlang.home
# secretName: fluentd-tls-secret # 这是用于TLS的secret