You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: rendered manifests contain a resource that already exists but nothing shows up on helm list --all #7418
I'm trying to helm install but helm comes back saying with following error Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: kind: CustomResourceDefinition, namespace: , name: scheduledsparkapplications.sparkoperator.k8s.io
but when I do helm list --all, nothing comes up and therefore I unable to remove any resource to proceed with installation.
Any help appreciated! Thanks!
See the attached screenshot:
Reacted by Moritz Schmitz von Hülst, Alexander Akilin, Benjamin, Nolan Emirot, Stas, B46qqq, jantomsa, Bharath Nadar, Suraj Banakar(बानकर) | スラジ, Dário and 22 more
It makes sense it exists in the cluster, but I don't see anything on helm ls --all-namespaces. I think the clue might be in that there is no namespace attached to previous installation. Not sure, how that got through.
Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: kind: CustomResourceDefinition, namespace: , name: scheduledsparkapplications.sparkoperator.k8s.io
The CRD could exist because the chart that deployed it, may not remove the CR object from the cluster. In Helm 3, this is expected behaviour as Helm will only install CRDs.
I just mentioned the --all-namespaces flag for your information.
Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: kind: CustomResourceDefinition, namespace: , name: sparkapplications.sparkoperator.k8s.io
I tried removing the CRDs manually as I cannot find any chart installed (even with --all-namespaces). Does not help. On install I get the same error message again.
EDIT: incubator/sparkoperator chart says this about CRDs:
Wether the release should install CRDs. Regardless of this value, Helm v3+ will install the CRDs if those are not present already. Use --skip-crds with helm install if you want to skip CRD creation
Setting installCrds: false will install the chart but is unexpected hehavior.
Returns just one item which was created last September and so presumably isn't relevant.
Reacted by Mohit Tilwani, Abhijit Choudhury, Madaditya, digthatfish, Jesus Diaz, ShadowTemplate, RicoToothless, Brian Horakh, Ghulam Abbas and milnomada
Tried repeating the first three steps of the tutorial using the original namespace from the tutorial. I.e. ingress-basic. Got the same error, so whatever leaked, it isn't namespaced.
Getting the same error.
helm version
version.BuildInfo{Version:"v3.0.3", GitCommit:"ac925eb7279f4a6955df663a0128044a8a6b7593", GitTreeState:"clean", GoVersion:"go1.13.7"}
--skip-crds also doesnt help.. Also, is there a way to make this operation idempotent instead of passing different flags each time? Example - Say I have a chart to deploy an application and this chart also has some crds in crds/ directory. Now if I want to install 2 instances of this application, I cannot do it as second install gives a resource conflict with kind : CustomResourceDefinition
Reacted by Dário, duyetpt, taotao, blumir5862 and Tobias Vetter
same issue. It started with deleting namespace without uninstalling chart.
After I removed my CRD definitions, I was able to install chart.
However, if I remove and install chart again, the installation fails again with same message.
Even though symptoms are the same for @boxcee@misterspeedy@vaishali-prophecy@sehz, the main issue is some resource that is in the cluster conflicting with trying to deploy a chart. In this case, if they chart release no longer exists (for whatever reason) and resources are left behind in the cluster, then manually removing them using kubectl is the best approach.
This is pretty much the approach used b y @ieciura and @scbizu.
@shaneutt I face same problems. But I add same label and annotation for my detailed ds and service account, it doesn't work. should I label and annotation for all the resources?
Activity
hickeyma commentedon Jan 17, 2020
@saicharanduppati It seems like CRD
scheduledsparkapplications.sparkoperator.k8s.ioalready exists in your cluster. This is causing the conflict.BTW, to get all releases in all namespaces, use
--all-namespacesflag withhelm ls.saicharanduppati commentedon Jan 17, 2020
Thanks for the quick response, @hickeyma
It makes sense it exists in the cluster, but I don't see anything on
helm ls --all-namespaces. I think the clue might be in that there is no namespace attached to previous installation. Not sure, how that got through.Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: kind: CustomResourceDefinition, namespace: , name: scheduledsparkapplications.sparkoperator.k8s.iohickeyma commentedon Jan 20, 2020
The CRD could exist because the chart that deployed it, may not remove the CR object from the cluster. In Helm 3, this is expected behaviour as Helm will only install CRDs.
I just mentioned the
--all-namespacesflag for your information.boxcee commentedon Jan 22, 2020
I have the same problem.
Helm:
Command I run:
Error message:
I tried removing the CRDs manually as I cannot find any chart installed (even with
--all-namespaces). Does not help. On install I get the same error message again.EDIT: incubator/sparkoperator chart says this about CRDs:
Setting
installCrds: falsewill install the chart but is unexpected hehavior.misterspeedy commentedon Feb 4, 2020
Same issue here.
Followed the steps in https://docs.microsoft.com/en-us/azure/aks/ingress-basic.
Then deleted the namespace:
Then performed the steps again, got the 'resource that already exists' error at the
helm install nginx-ingress...step.If I do
...I get an empty list.
I'm a beginner at all of these but it seems to me the process should be idempotent.
misterspeedy commentedon Feb 4, 2020
Further to the above
Returns just one item which was created last September and so presumably isn't relevant.
misterspeedy commentedon Feb 4, 2020
Adding
--skip-crdsto thehelm install...command gives the same error.misterspeedy commentedon Feb 4, 2020
Tried repeating the first three steps of the tutorial using the original namespace from the tutorial. I.e.
ingress-basic. Got the same error, so whatever leaked, it isn't namespaced.vaishali-prophecy commentedon Feb 14, 2020
Getting the same error.
helm version
version.BuildInfo{Version:"v3.0.3", GitCommit:"ac925eb7279f4a6955df663a0128044a8a6b7593", GitTreeState:"clean", GoVersion:"go1.13.7"}
--skip-crds also doesnt help.. Also, is there a way to make this operation idempotent instead of passing different flags each time? Example - Say I have a chart to deploy an application and this chart also has some crds in crds/ directory. Now if I want to install 2 instances of this application, I cannot do it as second install gives a resource conflict with kind : CustomResourceDefinition
sehz commentedon Feb 20, 2020
same issue. It started with deleting namespace without uninstalling chart.
After I removed my CRD definitions, I was able to install chart.
However, if I remove and install chart again, the installation fails again with same message.
I tried both Helm v3.0 and V3.10. Same problem
scbizu commentedon Feb 25, 2020
kubectl get alland delete the reported conflict resource(or all related resources if needed? ) works for me.hickeyma commentedon Feb 25, 2020
This initial issue opened by @saicharanduppati was resolved in #7418 (comment).
Even though symptoms are the same for @boxcee @misterspeedy @vaishali-prophecy @sehz, the main issue is some resource that is in the cluster conflicting with trying to deploy a chart. In this case, if they chart release no longer exists (for whatever reason) and resources are left behind in the cluster, then manually removing them using
kubectlis the best approach.This is pretty much the approach used b y @ieciura and @scbizu.
hickeyma commentedon Feb 25, 2020
Going to close this PR because it was resolved for the person who raised it.
If you have issues similar to these symptoms, raise a new issue putting in the details of how it fails for you.
7 remaining items
Upgrade HELM3_VERSION to 3.2.0
slavaaaaaaaaaa commentedon May 8, 2020
I was having the same issue running 3.2.0. I finally figured out that my ingress had no name defined. Pretty embarrassing.
Celakanth-VSI commentedon Jan 26, 2021
I just gave it a new name helm install nginx-ingressdv ingress-nginx/ingress-nginx seemed to work
chetanagrawal commentedon Mar 16, 2021
Just go on deleting the conflicting resources (as you see in the error message) and it should work. In my case I had to delete 3 resources:
kubectl delete rolebinding -n kube-system aws-load-balancer-controller-leader-election-rolebinding
kubectl delete mutatingwebhookconfiguration aws-load-balancer-webhook
kubectl delete validatingwebhookconfiguration aws-load-balancer-webhook
maniankara commentedon Mar 30, 2021
Wondering why there is suggestions and lot of support for deletion of resources 🤔 Atleast I cannot do it straight into my production clusters.. 😃
pnutmath commentedon May 11, 2021
kubectl get CustomResourceDefinition --all-namespacesworks for me to get the CustomResourceDefinition attached to no namespaceYougigun commentedon Jun 3, 2021
this works also for some similiar issue. thx a lot.
shaneutt commentedon Oct 19, 2021
I encountered this problem with CRDs in a situation where deletion was not an option and solved the problem with the following script:
Run with:
$ GROUP=<your crd group> HELM_RELEASE=<your release name> HELM_RELEASE_NAMESPACE=<your release namespace> importCRDs.shAfter that the upgrade succeeded and the CRDs became managed by the release. I was using Helm
v3.7.0.JornShen commentedon Dec 10, 2021
@shaneutt I face same problems. But I add same label and annotation for my detailed ds and service account, it doesn't work. should I label and annotation for all the resources?
er-jagdish commentedon Jan 26, 2022
for me, its same issue and helm ls --all-namespaces is not listing the namespace that i am looking.
you can delete the duplicate one.
TorvaldsDB commentedon Mar 2, 2022
I guess you have installed the servers by Helm2, and now you are using Helm3.
I did the following scripts, and it works now:
jribmartins commentedon Mar 9, 2022
In my case I had some generateName instead of names in metadata:
after changing this to name I could install the chart again
CharlyPierce commentedon Dec 2, 2022
In my case add:
kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admissionmb250351 commentedon Feb 3, 2023
you are a Genious and saved my life. thank you.
joaquin-izaguirre-uvi commentedon Sep 21, 2024
Hi, I had have the same problem with ingress-nginx but I could resolver delete:
kubectl delete ClusterRole ingress-nginx
kubectl delete ClusterRoleBinding ingress-nginx
kubectl delete IngressClass nginx