How to list all securityContext of kubernetes pod and its container

8/25/2021

Is there anyway to list all securityContext including default and defined: 1. Pod Level 2. Container Level

Using kubectl get pod -o yaml only show the defined in spec.securityContext and spec.containers[*].securityContext of manifest without the default one?

-- skystone
kubernetes

0 Answers