Skip to content

Instantly share code, notes, and snippets.

@mattmattox
Created February 10, 2020 20:17
Show Gist options
  • Save mattmattox/7b1a90a5bca1db1da55e75db34157bd6 to your computer and use it in GitHub Desktop.
Save mattmattox/7b1a90a5bca1db1da55e75db34157bd6 to your computer and use it in GitHub Desktop.
Oneliners to disable debug logging on Rancher 2.0
#!/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