Created
July 25, 2022 17:08
-
-
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
This file contains hidden or 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
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