Score:0

How to reinstall consul on a different namespace?

cn flag

I have installed consul on default namespace using helm.

helm install -f config.yaml consul hashicorp/consul --version "0.32.1"

I tried uninstall of consul using

helm delete consul

And installing again using.

kubectl create namespace consul
helm install -f config.yaml consul hashicorp/consul --version "0.32.1" --namespace consul

Now, getting error as below.

error

I followed this approach

Score:0
us flag

Resource already used in some namespace You need to clean up first and then install it again

Please check the topic:

https://stackoverflow.com/questions/62964532/helm-not-creating-the-resources

Sara June avatar
cn flag
helm delete should do that clean up right? What we need to do if any resources exist? Because it is hard to identify the bread crumbs if there are many deployments on the cluster.
MohammadReza moeini avatar
us flag
Did you try --debug with helm install
MohammadReza moeini avatar
us flag
there is a lot of commands to find resource used one of them is using kubectl get all -n <namespace> | grep ... Solution number 2 is: helm list for more info check: https://helm.sh/docs/helm/helm_list/
Score:0
cn flag

There are some CustomResourceDefinition which are showing

kubectl get CustomResourceDefinition

But didn't see any when I type.

kubectl get all

Now, as it is test environment, I deleted them using.

kubectl delete CustomResourceDefinition --all

Now, it is working.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.