Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Helm install promtail with external Loki for RKE
helm upgrade --install promtail loki/promtail -n promtail \
--set volumes\[0\].name=docker \
--set volumes\[0\].hostPath.path=/var/lib/rancher/rke/log \
--set volumes\[1\].name=pods \
--set volumes\[1\].hostPath.path=/var/log/containers \
--set volumes\[2\].name=dockersym \
--set volumes\[2\].hostPath.path=/apps/docker/containers \
--set volumes\[3\].name=podssym \
--set volumes\[3\].hostPath.path=/var/log/pods\
--set volumeMounts\[0\].name=docker \
--set volumeMounts\[0\].readOnly=true \
--set volumeMounts\[0\].mountPath=/var/lib/rancher/rke/log \
--set volumeMounts\[1\].name=pods \
--set volumeMounts\[1\].readOnly=true \
--set volumeMounts\[1\].mountPath=/var/log/containers \
--set volumeMounts\[2\].name=dockersym \
--set volumeMounts\[2\].readOnly=true \
--set volumeMounts\[2\].mountPath=/apps/docker/containers \
--set volumeMounts\[3\].name=podssym \
--set volumeMounts\[3\].readOnly=true \
--set volumeMounts\[3\].mountPath=/var/log/pods \
--set loki.serviceName=<LOKI SERVER IP> \
--set config.client.external_labels.store=<CLUSTER NAME>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment