Files
kubernetes/k8s/fluentd/3 - deployment-fluentd.yaml
Beto Sánchez e52fee62b2 Update
2025-04-24 11:37:29 -05:00

58 lines
1.9 KiB
YAML

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: fluentd
namespace: kube-system
labels:
k8s-app: fluentd-logging
spec:
selector:
matchLabels:
name: fluentd
template:
metadata:
labels:
name: fluentd
spec:
containers:
- name: fluentd
image: fluent/fluentd-kubernetes-daemonset:v1-debian-syslog
env:
- name: FLUENT_SYSLOG_HOST
value: "nblsrv.mind.brm.co" # Dirección del servidor syslog
- name: FLUENT_SYSLOG_PORT
value: "516" # Puerto del servidor syslog
- name: FLUENT_SYSLOG_PROTOCOL
value: "tcp" # Protocolo (tcp, udp o tls)
- name: FLUENT_SYSLOG_TLS
value: "false" # Habilitar TLS (true/false)
#- name: FLUENT_SYSLOG_TLS_VERIFY
# value: "false" # Verificar certificado TLS (true/false)
# - name: FLUENT_SYSLOG_TLS_CERT_PATH
# value: "/path/to/cert.pem" # Ruta al certificado TLS (opcional)
# - name: FLUENT_SYSLOG_TLS_KEY_PATH
# value: "/path/to/key.pem" # Ruta a la clave privada TLS (opcional)
# - name: FLUENT_SYSLOG_TLS_CA_PATH
# value: "/path/to/ca.pem" # Ruta al certificado de la CA (opcional)
volumeMounts:
- name: varlog
mountPath: /var/log
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
- name: fluent-conf
mountPath: /fluentd/etc/fluent.conf
subPath: fluent.conf
imagePullSecrets:
- name: ofront-gitlab-img
volumes:
- name: varlog
hostPath:
path: /var/log
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: fluent-conf
configMap:
name: fluent-conf