Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. #28

Open
ScGPS opened this issue Feb 24, 2023 · 4 comments

Comments

@ScGPS
Copy link

ScGPS commented Feb 24, 2023

Install

mkdir -p ~/kubeflow_install/helm_chart_install
cd ~/kubeflow_install/helm_chart_install
wget -O values-cn.yaml https://raw.githubusercontent.com/alauda/kubeflow-chart/main/values-cn.yaml
helm install kubeflow alauda/kubeflow -f values-cn.yaml

Output

$ helm install kubeflow alauda/kubeflow -f values-cn.yaml
W0224 15:54:26.704541  154043 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0224 15:54:26.999392  154043 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0224 15:54:27.129135  154043 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0224 15:54:27.151566  154043 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0224 15:54:27.168133  154043 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0224 15:54:27.206162  154043 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0224 15:54:27.955386  154043 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0224 15:54:31.997890  154043 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
W0224 15:54:32.000794  154043 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget
W0224 15:54:32.271321  154043 warnings.go:70] rbac.authorization.k8s.io/v1beta1 ClusterRole is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 ClusterRole
W0224 15:54:32.484430  154043 warnings.go:70] rbac.authorization.k8s.io/v1beta1 ClusterRoleBinding is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 ClusterRoleBinding
W0224 15:54:32.992814  154043 warnings.go:70] admissionregistration.k8s.io/v1beta1 MutatingWebhookConfiguration is deprecated in v1.16+, unavailable in v1.22+; use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration
Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: MutatingWebhookConfiguration "cache-webhook-kubeflow" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "kubeflow"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "default"
@ScGPS ScGPS changed the title Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: MutatingWebhookConfiguration "cache-webhook-kubeflow" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "kubeflow"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "default" Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Feb 24, 2023
@ScGPS
Copy link
Author

ScGPS commented Feb 24, 2023

How to fix

sudo kubectl delete MutatingWebhookConfiguration cache-webhook-kubeflow

@typhoonzero
Copy link
Collaborator

Thanks, if you've installed kubeflow-chart or using Kubeflow's manifest, you may need to clean the resources installed previousely and install kubeflow-chart again.

@gggzzz1212
Copy link

Thanks, if you've installed kubeflow-chart or using Kubeflow's manifest, you may need to clean the resources installed previousely and install kubeflow-chart again.

但是会涉及到很多资源类型, 删了cluster role 还得删cluster role binding, balabla 有没有啥快捷的办法 不用一个个手动删呀,或者有没有啥需要删的资源清单呢

@typhoonzero
Copy link
Collaborator

使用官方 manifests repo 安装的话,可以用 manifest 输出的yaml 文件,执行kubectl delete -f xxx.yaml 删除。使用本 helm chart 安装的话,可以执行 helm delete <deploy-name>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants