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