fix(promtail): fix storage issues with promtail
This commit is contained in:
@@ -22,7 +22,7 @@ sources:
|
|||||||
- https://grafana.com/oss/loki/
|
- https://grafana.com/oss/loki/
|
||||||
- https://grafana.com/docs/loki/latest/
|
- https://grafana.com/docs/loki/latest/
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.3
|
version: 0.0.4
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- metrics
|
- metrics
|
||||||
|
|||||||
@@ -31,20 +31,6 @@ probes:
|
|||||||
startup:
|
startup:
|
||||||
path: "/ready"
|
path: "/ready"
|
||||||
|
|
||||||
initContainers:
|
|
||||||
link-logs:
|
|
||||||
image: "{{ .Values.alpineImage.repository}}:v3.14.2@sha256:4095394abbae907e94b1f2fd2e2de6c4f201a5b9704573243ca8eb16db8cdb7c"
|
|
||||||
command:
|
|
||||||
- "sh"
|
|
||||||
- "-c"
|
|
||||||
- mkdir -p /var/lib/docker/link && ln -sf $(cat /etc/docker/daemon.json | jq -r '."data-root"')/containers/ /var/lib/docker/link/ || echo "cannot symlink container logs"
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /etc/docker/
|
|
||||||
name: docker
|
|
||||||
- mountPath: /var/lib/docker/link/containers
|
|
||||||
name: containers
|
|
||||||
|
|
||||||
# -- The security context for pods
|
# -- The security context for pods
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
@@ -60,17 +46,11 @@ securityContext:
|
|||||||
runAsNonRoot: false
|
runAsNonRoot: false
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
docker:
|
|
||||||
enabled: true
|
|
||||||
type: hostPath
|
|
||||||
mountPath: /etc/docker/
|
|
||||||
hostPath: /etc/docker/
|
|
||||||
readOnly: true
|
|
||||||
containers:
|
containers:
|
||||||
enabled: true
|
enabled: true
|
||||||
type: hostPath
|
type: hostPath
|
||||||
mountPath: /var/lib/docker/link/containers
|
mountPath: /mnt
|
||||||
hostPath: /var/lib/docker/link/containers
|
hostPath: /mnt
|
||||||
readOnly: true
|
readOnly: true
|
||||||
pods:
|
pods:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user