kubectl get pods -n <namespace>
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
within the container’s definition.pod.yaml
file.kubectl apply -f pod.yaml -n <namespace>