kubectl get pods
to list all the pods in the cluster.kubectl edit pod <pod-name> -n <namespace>
to edit the pod’s manifest file.allowPrivilegeEscalation
field to false
to prevent privilege escalation.kubectl apply -f <path-to-manifest-file>
to apply the updated manifest file.