Update
This commit is contained in:
57
k8s/fluentd/3 - deployment-fluentd.yaml
Normal file
57
k8s/fluentd/3 - deployment-fluentd.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
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
|
||||
Reference in New Issue
Block a user