123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- ---
- # Source: loki-stack/charts/promtail/templates/daemonset.yaml
- apiVersion: apps/v1
- kind: DaemonSet
- metadata:
- name: loki-promtail
- namespace: loki
- labels:
- app: promtail
- chart: promtail-0.13.1
- release: loki
- heritage: Tiller
- annotations:
- {}
-
- spec:
- selector:
- matchLabels:
- app: promtail
- release: loki
- updateStrategy:
- type: RollingUpdate
- template:
- metadata:
- labels:
- app: promtail
- release: loki
- annotations:
- checksum/config: f67946cf335ae9cf8fd8f3ca85db81366fef63f97f5ad24bf1d271fe4c54c429
- prometheus.io/port: http-metrics
- prometheus.io/scrape: "true"
-
- spec:
- serviceAccountName: loki-promtail
- containers:
- - name: promtail
- image: "grafana/promtail:v0.4.0"
- imagePullPolicy: IfNotPresent
- args:
- - "-config.file=/etc/promtail/promtail.yaml"
- - "-client.url=http://loki:3100/loki/api/v1/push"
- volumeMounts:
- - name: config
- mountPath: /etc/promtail
- - name: run
- mountPath: /run/promtail
- - mountPath: /var/lib/docker/containers
- name: docker
- readOnly: true
- - mountPath: /var/log/pods
- name: pods
- readOnly: true
-
- env:
- - name: HOSTNAME
- valueFrom:
- fieldRef:
- fieldPath: spec.nodeName
- ports:
- - containerPort: 3101
- name: http-metrics
- securityContext:
- readOnlyRootFilesystem: true
- runAsGroup: 0
- runAsUser: 0
-
- readinessProbe:
- failureThreshold: 5
- httpGet:
- path: /ready
- port: http-metrics
- initialDelaySeconds: 10
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
-
- resources:
- {}
-
- nodeSelector:
- {}
-
- affinity:
- {}
-
- tolerations:
- - effect: NoSchedule
- key: node-role.kubernetes.io/master
- operator: Exists
-
- volumes:
- - name: config
- configMap:
- name: loki-promtail
- - name: run
- hostPath:
- path: /run/promtail
- - hostPath:
- path: /var/lib/docker/containers
- name: docker
- - hostPath:
- path: /var/log/pods
- name: pods
-
|