How to stop & exit jenkins from Kubernetes cluster

2/7/2022

I have installed Jenkins through Helm with below commands.

$ chart=jenkinsci/jenkins
$ helm install jenkins -n jenkins -f jenkins-values.yaml $chart

Now how do i stop & exit Jenkins completely from my kubernetes cluster?

# kubectl delete pod jenkins-0 -n jenkins
pod "jenkins-0" deleted

After delete pod command, still it creates new pod.

# kubectl get pods -n jenkins
NAME        READY   STATUS     RESTARTS   AGE
jenkins-0   0/2     Init:0/1   0          6s
-- user4948798
helm3
jenkins
kubernetes
kubernetes-helm

1 Answer

2/7/2022

Since I have Jenkins installed through helm. So I have removed the pod and complete deployment inside my namespace using # helm uninstall jenkins -n jenkins.

-- user4948798
Source: StackOverflow