Am I doing wrong ?, Strange thing is while creating pod with security context , . . .

Pranav Lakhani:
Am I doing wrong ?, Strange thing is while creating pod with security context , pod is created but security context are not reflected , I have exported yaml from existing pod and then just remove status lines and added security context on spec level , but that is not reflected.(attaching my yaml)

Adeola Adefolaju:
I think its because there’s another security context at the container level. Scroll down to see it. Although, it has an empty curly bracket. You may have to delete it since you need the security context at the Pod level. I remember having the same issue, it worked when I deleted it and recreated the Pod.

Adeola Adefolaju:

image.png

Pranav Lakhani:
Yes, it make sense now, earlier one is override with trailing one. :slightly_smiling_face: Thanks.