Error: UPGRADE FAILED: failed to create resource: namespaces "pr-1627-app " not found

0 votes

Hi Guys,

I am trying to upgrade my environment in my Minikube Cluster using Helm. But it is showing me the below error.

$ helm upgrade --install pr-1627-app-pull-secret cloudposse-incubator/dockercfg --version 0.1.0 --namespace pr-1627-app --wait --timeout=600 --force --reset-values --kube -context us-west-2-staging-example-com
Error: UPGRADE FAILED: failed to create resource: namespaces "pr-1627-app " not found

How can I solve this error?

Jul 9 in Kubernetes by akhtar
• 18,250 points
28 views

1 answer to this question.

0 votes

Hi@akhtar,

This usually happens when the state of the resources in the Kubernetes cluster does not match what Helm knows about. Here the namespace had been deleted without first deleting the helm releases. So helm attempted to perform an upgrade on a non-existent resource.

To fix this, simply delete the errant helm release. In this case, we would run the following command to delete the pr-1627-app helm release.

$ helm delete --purge pr-1627-app

I hope this will help.

answered Jul 9 by MD
• 42,420 points

Related Questions In Kubernetes

0 votes
1 answer
0 votes
1 answer

Failed to create cluster-role

To overcome this, you must grant your ...READ MORE

answered Aug 30, 2018 in Kubernetes by Kalgi
• 51,890 points
100 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
7,619 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 51,890 points

reshown Apr 12, 2019 by Kalgi 2,239 views
0 votes
1 answer