# Promtail - log collection agent for all cluster pods config: clients: - url: http://loki-gateway.prometheus.svc:80/loki/api/v1/push # DaemonSet - runs on every node daemonset: enabled: true # Tolerations for master/control-plane nodes tolerations: - key: node-role.kubernetes.io/master operator: Exists effect: NoSchedule - key: node-role.kubernetes.io/control-plane operator: Exists effect: NoSchedule # Init container to increase inotify limits initContainer: - name: init-inotify image: docker.io/busybox:1.36 imagePullPolicy: IfNotPresent command: - sh - -c - sysctl -w fs.inotify.max_user_instances=512 securityContext: privileged: true resources: requests: cpu: 50m memory: 64Mi limits: cpu: 200m memory: 128Mi