kubectl get pods
. Then, inspect the logs of the suspicious pod using: kubectl logs <pod_name>
.kubectl get pods
command to list all the pods in the cluster.kubectl patch
command to update the pod’s security context.securityContext
field to disable the ptrace
capability for the container.
kubectl apply
command to apply the updated manifest file.ptrace
capability for the affected container.<pod-name>
, <namespace>
, <container-name>
, and <path-to-modified-manifest-file>
with the appropriate values for your environment.