Jees Antony:
Hi All, I am bit confused when to use “kubectl edit” to modify a pod instead of delete and recreation.
I get below error when I try to add securitycontext-runAsuser using “kubectl edit” .
controlplane $ k edit pod ubuntu-sleeper
Edit cancelled, no changes made.
controlplane $
Obviously, I will do it with delete/recreation but just wondering why “kubectl edit” is not working here and when I can use it (As “kubectl edit” is faster than delete/recreation) .