kubectl get pods
command to identify the affected pod(s) and their corresponding nodes.kubectl describe pod <pod_name>
command to gather more information about the pod, such as the image being used and any suspicious activities.kubectl delete pod <pod_name>
and kubectl create -f <pod_manifest.yaml>
commands, respectively.podName
field in the event.
kubectl get pod <podName> -o yaml
remediation.yaml
) with the following content:
<namespace>
with the namespace of the affected pod(s).<labels>
with the labels of the affected pod(s).kubectl apply -f remediation.yaml
kubectl get pod -l=app=remediation-container
kubectl get pod -n <namespace>