I have got one more question, which is w.r.t securityContext. This contains two parts. Questions are
- if I add securityContext to an existing pod with “kubectl edit …” option, its not getting applied. I tried to delete the pod and recreated the pod with modified/edited yaml file. Still it doesn’t work. It works only if I recreate the pod with altogether a fresh yaml file.
- Lets say I created a pod with a new yaml file with securityContext added to it. But, when I wanted to see the details with “kubectl edit …”, it doesn’t show the details.
Would you please educate me on those points…!!! Thanks in advance.