Upgrade is failing because of microsoft defender?
Root Cause
Most likely a Microsoft Defender running on the machine blocks the containerd image pull.
Resolution
- Run the below command to check if Microsoft defender/mdatp is running:
Ps -f - Add the following exception in Defender:
sudo mdatp exclusion folder add --path "/var/lib/rancher/k3s/agent/containerd/tmpmounts/*" - Run the following command to check if all the pods are in running state:
Kubectl get pods -A - We can just delete the pod which is in imagepull backoff state:
kubectl -n uipath delete pod subsitute_pod_name - Then monitor if the pod comes back up and ends up in running state.
- Re-run the upgrade operation.