--- "kind": "DaemonSet" "apiVersion": "apps/v1" "metadata": "name": "promtail" "namespace": "loki" "spec": "selector": "matchLabels": "app": "promtail" "template": "metadata": "labels": "app": "promtail" "spec": "volumes": - "name": "config" "configMap": "name": "promtail-config" "defaultMode": 420 - "name": "run" "hostPath": "path": "/run/promtail" "type": "" - "name": "pods" "hostPath": "path": "/var/log/pods" "type": "" "containers": - "name": "promtail" "image": "grafana/promtail:3.4.2" "args": - "-config.file=/etc/promtail/promtail.yaml" - "-config.expand-env=true" "ports": - "name": "http-metrics" "containerPort": 9080 "protocol": "TCP" "env": - "name": "HOSTNAME" "valueFrom": "fieldRef": "apiVersion": "v1" "fieldPath": "spec.nodeName" "resources": {} "volumeMounts": - "name": "config" "mountPath": "/etc/promtail" - "name": "run" "mountPath": "/run/promtail" - "name": "pods" "readOnly": true "mountPath": "/var/log/pods" "terminationMessagePath": "/dev/termination-log" "terminationMessagePolicy": "File" "imagePullPolicy": "IfNotPresent" "securityContext": "privileged": true "runAsUser": 0 "restartPolicy": "Always" "terminationGracePeriodSeconds": 30 "dnsPolicy": "ClusterFirst" "serviceAccountName": "promtail" "serviceAccount": "promtail" "securityContext": {} "schedulerName": "default-scheduler" "tolerations": - "operator": "Exists" "updateStrategy": "type": "RollingUpdate" "rollingUpdate": "maxUnavailable": 1 "maxSurge": 0 "revisionHistoryLimit": 10