k8sConfigs/efk_cluster/fluentd-service.yaml
2025-03-24 19:12:41 +08:00

15 lines
282 B
YAML

apiVersion: v1
kind: Service
metadata:
name: fluentd-service
namespace: efk
spec:
type: LoadBalancer
selector:
k8s-app: fluentd-logging
ports:
- protocol: TCP
port: 8888 # Service 暴露的端口
targetPort: 8888 # Fluentd 容器内部的端口