Created
February 10, 2020 20:17
-
-
Save mattmattox/7b1a90a5bca1db1da55e75db34157bd6 to your computer and use it in GitHub Desktop.
Oneliners to disable debug logging on Rancher 2.0
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
#!/bin/bash | |
KUBECONFIG=~/.kube/config | |
for POD in $(kubectl --kubeconfig $KUBECONFIG get pods -n cattle-system -l app=rancher --no-headers | awk '{print $1}'); | |
do | |
kubectl --kubeconfig $KUBECONFIG exec -n cattle-system $POD -- loglevel --set info | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment