Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save afreeland/3e88fbb878e063a277f16cc2b33f33aa to your computer and use it in GitHub Desktop.
Save afreeland/3e88fbb878e063a277f16cc2b33f33aa to your computer and use it in GitHub Desktop.
Pipe `kubectl` pod names into `xargs` to invoke `curl` commands to update `envoy` debugging levels
kubectl -l{LABEL_SELECTOR} --no-headers -o custom-columns=":metadata.name" | xargs -I% kubectl exec % -- curl -X POST http://localhost:{ENVOY_ADMIN_PORT}/logging\?level\=debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment