kubectl get pods -o wide
kubectl get pod <pod-name> -o yaml > pod.yaml
pod.yaml
file and locate the container section for the affected pod.securityContext
section to remove the setuid
and setgid
bits. For example:
pod.yaml
.kubectl apply -f pod.yaml
kubectl get pods
<pod-name>
, <container-name>
, <user-id>
, and <group-id>
with the appropriate values for your environment.