kubectl describe
command on the corresponding pod. Look for any containers with privileged access.kubectl get pods -o wide
kubectl get pod <pod-name> -n <namespace> -o yaml > pod.yaml
pod.yaml
file and locate the container that is running in privileged mode.securityContext
section or set privileged: false
for the container.pod.yaml
file.kubectl apply -f pod.yaml