jx
jx copied to clipboard
Uninstall instructions not working
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?
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
I also would like to know more and see the documentation updated
You don't say what uninstall instructions you are referring to