jx icon indicating copy to clipboard operation
jx copied to clipboard

Uninstall instructions not working

Open chrislovecnm opened this issue 3 years ago • 1 comments

It is a known bug that terraform destroy with the EKS module does not do a full cleanup.

But

kubectl delete -R -f config-root/namespaces
kubectl delete -R -f config-root/cluster

Does not work either. You can run into a race condition with the jx-boot job, and the instructions don't really work well in general.

I would recommend

kubectl delete ns jx-git-operator
kubectl delete ns jx-git-operator
kubectl delete -R -f config-root/namespaces
kubectl delete -R -f config-root/cluster

Thoughts?

chrislovecnm avatar May 12 '22 18:05 chrislovecnm

Also the CRDs are not being cleaned up as well.

$ k get customresourcedefinitions.apiextensions.k8s.io | grep tekton
clustertasks.tekton.dev                        2022-05-11T20:48:58Z
conditions.tekton.dev                          2022-05-11T20:48:58Z
pipelineresources.tekton.dev                   2022-05-11T20:48:59Z
pipelineruns.tekton.dev                        2022-05-11T20:48:59Z
pipelines.tekton.dev                           2022-05-11T20:48:59Z
runs.tekton.dev                                2022-05-11T20:48:59Z
taskruns.tekton.dev                            2022-05-11T20:48:59Z
tasks.tekton.dev                               2022-05-11T20:48:59Z
$ k get customresourcedefinitions.apiextensions.k8s.io | grep jenkins
environments.jenkins.io                        2022-05-11T20:48:58Z
lighthousebreakpoints.lighthouse.jenkins.io    2022-05-11T20:48:58Z
lighthousejobs.lighthouse.jenkins.io           2022-05-11T20:48:58Z
pipelineactivities.jenkins.io                  2022-05-11T20:48:58Z
previews.preview.jenkins.io                    2022-05-11T20:48:58Z
releases.jenkins.io                            2022-05-11T20:48:58Z
sourcerepositories.jenkins.io                  2022-05-11T20:48:58Z

I did this

k get customresourcedefinitions.apiextensions.k8s.io -o custom-columns=":metadata.name" | grep jenkins | xargs kubectl delete customresourcedefinition.apiextensions.k8s.io
k get customresourcedefinitions.apiextensions.k8s.io -o custom-columns=":metadata.name" | grep tekton | xargs kubectl delete customresourcedefinition.apiextensions.k8s.io

chrislovecnm avatar May 12 '22 18:05 chrislovecnm

I also would like to know more and see the documentation updated

FranLucchini avatar Dec 23 '22 13:12 FranLucchini

You don't say what uninstall instructions you are referring to

msvticket avatar Dec 19 '23 15:12 msvticket