Skip to content

Instantly share code, notes, and snippets.

@pryorda
Last active December 6, 2024 06:22
Show Gist options
  • Save pryorda/7c9a1df78cded75aa02f7d4a3e3d0b41 to your computer and use it in GitHub Desktop.
Save pryorda/7c9a1df78cded75aa02f7d4a3e3d0b41 to your computer and use it in GitHub Desktop.
kubectl notes

kubectl run tested-pod --rm -it --image=busybox:latest --restart=Never
--overrides=' {"spec": { "containers": [ { "name":"tested-pod", "image":"busybox:latest", "stdin":true, "tty":true, "securityContext": { "runAsUser":1234, "runAsGroup":4321 } } ] } }'
-- sh

kubectl --context alk-dev debug -n sysdig-agent -it sysdig-clustershield-69d5f95c7c-q6rdd --image=ubuntu -c cluster-shield --copy-to=debugging --share-processes -- bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment