[ 
https://issues.apache.org/jira/browse/SUBMARINE-644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17618064#comment-17618064
 ] 

cdmikechen commented on SUBMARINE-644:
--------------------------------------

Since helm doesn't automatically delete the crds, I'm closing this issue for 
now.

[https://helm.sh/docs/topics/charts/#limitations-on-crds]

 

> Helm charts deletion won't delete CRD and may have CRD object leaked
> --------------------------------------------------------------------
>
>                 Key: SUBMARINE-644
>                 URL: https://issues.apache.org/jira/browse/SUBMARINE-644
>             Project: Apache Submarine
>          Issue Type: Improvement
>          Components: Backend Server
>            Reporter: Zhankun Tang
>            Assignee: Wanqiang Ji
>            Priority: Major
>
> There're a bunch of issues in helm charts found:
> 1. If the user has CRD "tfjobs.kubeflow.org", 
> "podgroups.scheduling.incubator.k8s.io", "pytorchjobs.kubeflow.org" already 
> exists in K8s cluster. It will report below errors:
> {code:java}
> $ helm install submarine ./helm-charts/submarine
> Error: rendered manifests contain a resource that already exists. Unable to 
> continue with install: existing resource conflict: namespace: , name: 
> podgroups.scheduling.incubator.k8s.io, existing_kind: 
> apiextensions.k8s.io/v1beta1, Kind=CustomResourceDefinition, new_kind: 
> apiextensions.k8s.io/v1beta1, Kind=CustomResourceDefinition
> {code}
> Delete the crd like this will resolve this issue:
> kubectl delete crd/tfjobs.kubeflow.org && kubectl delete 
> crd/podgroups.scheduling.incubator.k8s.io && kubectl delete 
> crd/pytorchjobs.kubeflow.org
> 2. helm delete won't delete all resources created by submarine. Like tfjob, 
> pytorchjob, notebook, and ingress. We should clean up these CRD objects when 
> uninstallation. Otherwise, the user can only delete the whole k8s namespace 
> to clean up the pod.
> 3. We should make the CRD scope to "namespace" scope and delete them when 
> uninstallation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to