Troubleshooting the Protegrity Policy Manager
Helm upgrade fails due to existing Kubernetes jobs
Issue: Helm upgrade fails because existing jobs, such as hubcontroller-init and kmgw-create-keystore, cannot be patched.
Description: Helm upgrade cannot modify or replace existing Kubernetes jobs if fields such as image registry, environment variables, args, and volumes are changed. This happens because the pod template of a job is immutable. So, the existing pods cannot be replaced when their template changes. As a result, the Helm upgrade fails.
Workaround:
Delete the existing jobs manually and then run the Helm upgrade command.
To manually delete the jobs, run the following commands:
kubectl delete job hubcontroller-init -n policy-workbench
kubectl delete job kmgw-create-keystore -n policy-workbench
Feedback
Was this page helpful?