Issue
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
Solution
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
.
Answered By - user4948798
Answer Checked By - Clifford M. (JavaFixing Volunteer)