kubectl exec
command to access the container and inspect the file system for any hidden files or directories. For example: kubectl exec -it <pod_name> -- /bin/bash
remediation.yaml
) with the following content:
<pod-name>
and <namespace>
with the actual values from step 1.runAsNonRoot
field is set to true
and runAsUser
is set to 1000
.