fix(promtail): fix storage issues with promtail

This commit is contained in:
kjeld Schouten-Lebbing 2021-11-24 20:06:11 +01:00
parent c212aa3bbc
commit 57659fe0f9
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
2 changed files with 3 additions and 23 deletions

View File

@ -22,7 +22,7 @@ sources:
- https://grafana.com/oss/loki/
- https://grafana.com/docs/loki/latest/
type: application
version: 0.0.3
version: 0.0.4
annotations:
truecharts.org/catagories: |
- metrics

View File

@ -31,20 +31,6 @@ probes:
startup:
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
podSecurityContext:
runAsUser: 0
@ -60,17 +46,11 @@ securityContext:
runAsNonRoot: false
persistence:
docker:
enabled: true
type: hostPath
mountPath: /etc/docker/
hostPath: /etc/docker/
readOnly: true
containers:
enabled: true
type: hostPath
mountPath: /var/lib/docker/link/containers
hostPath: /var/lib/docker/link/containers
mountPath: /mnt
hostPath: /mnt
readOnly: true
pods:
enabled: true