logo
painting

Using kubectl run to create privileged container

This is the whole post. (Is there an easier way to do this?)

 kubectl run --rm -i --tty busybox --image=busybox --restart=Never --overrides='{"spec": {"template": {"spec": {"containers": [{"securityContext": {"privileged": true} }]}}}}' -- whoami


Boom! Now make sure you can’t do that in your cluster.