Hi
I installed Jenkins-x on a private kubernetes cluster. Mistakenly I tried to install the nginx load balancer, and it timed out trying to get a external IP.
I tried to uninstall, and get this error:
? Are you sure you wish to remove the Jenkins X platform from the 'jx' namespace on cluster 'https://api.internal.priv-k8s.aws.twg.co.nz'? : (y/N) y
Error: Command failed helm delete --purge jenkins-x
error: exit status 1
Running this manually, I get this:
helm delete --purge jenkins-x
Error: jobs.batch "cleanup" already exists
That job doesnt finish ;(
kubectl --namespace=jx get all
NAME DESIRED SUCCESSFUL AGE
jobs/cleanup 1 0 15h
deleted that job manually, but now I get this:
helm del --purge jenkins-x
Error: timed out waiting for the condition
The above process kicks off the clean up job again which never finishes, and im now going around in circles.
I found my error, Not sure how to fix this though
Warning FailedCreate 28s (x3 over 58s) job-controller Error creating: pods "cleanup-" is forbidden: service account jx/cleanup was not found, retry after the service account is created
Update: I just created a service account in the namespace calld cleanup, this allow thigns to be deleted, such I could then re-deploy again.
kubectl -n jx create serviceaccount cleanup
Most helpful comment