This PodSecurityPolicy
allows pretty much anything to run in a given namespace.
The Role
and RoleBinding
are namespaced objects so when you apply it you should make sure it gets applied to the appropriate namespace.
Also, delete this when you are done.
kubectl apply -n foo -f https://gist.githubusercontent.com/jasonkeene/25dca9a59040b000cc9f526755408f9e/raw/c81b281460dc87626a6ff4b2b3710633f8a9f462/god-mode.yml
kubectl delete -n foo -f https://gist.githubusercontent.com/jasonkeene/25dca9a59040b000cc9f526755408f9e/raw/c81b281460dc87626a6ff4b2b3710633f8a9f462/god-mode.yml