Created
July 11, 2020 17:48
-
-
Save davidcorbin/c9fbed62b4f1e2a554547b1a1f6bb2ba to your computer and use it in GitHub Desktop.
Helm install promtail with external Loki for RKE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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