Helm Error: UPGRADE FAILED: rendered manifests contain a new resource that already exists

4/21/2020

I have this error when the previous upgrade failed.

I cannot upgrade without deleting manually all my pods and services.

Error: UPGRADE FAILED: rendered manifests contain a new resource that already exists.
Unable to continue with update: existing resource conflict: namespace: ns-xy, name: svc-xy, existing_kind: /v1, Kind=Service, new_kind: /v1, Kind=Service

I tried with helm upgrade --force but with no success.

One solution is to delete all the services and deployments updated, but that's long and creates a long interruption.

How can I force the upgrade?

-- Vincent J
kubernetes-helm

1 Answer

5/21/2020
  • List the services
kubectl get service
  • Delete them in the following sequence
kubectl delete service  <service-name>

And them run helm upgrade as normally

-- Rub21
Source: StackOverflow