adamant-kite-43734
10/03/2023, 2:27 PMcreamy-pencil-82913
10/03/2023, 5:08 PMwide-author-74384
10/03/2023, 7:01 PMIn K3s 1.23- it is working as expected
ps-k8s-test helm chart yaml file is in /var/lib/rancher/k3s/server/manifests
[root@test1 ~]# kubectl get pods -A | grep test
kube-system helm-install-ps-k8s-test-misc-tctpv 0/1 Completed 0 15m
Now Deleting the ps-k8s-test job
[root@test1 ~]# kubectl delete job helm-install-ps-k8s-test-misc -n kube-system
job.batch "helm-install-ps-k8s-test-misc" deleted
then ps-k8s-test helm install job created immediately since respective helm chart in manifest folder
[root@test1 ~]# kubectl get pods -A | grep test
kube-system helm-install-ps-k8s-test-misc-2mhrz 0/1 ContainerCreating 0 2s
********************************
But k3s 1.26.7 its not creating deleted job k8s resources autimatically
[root@trest2 ~]# kubectl get pods -A | grep test
kube-system helm-delete-ps-k8s-test-misc-qcfdb 0/1 Completed 0 51m
[root@trest2 ~]#
Deleting job
[root@trest2 ~]# kubectl delete job helm-delete-ps-k8s-test-misc -n kube-system
job.batch "helm-delete-ps-k8s-test-misc" deleted
[root@trest2 ~]#
[root@trest2 ~]# kubectl get pods -A | grep test
[root@trest2 ~]#
[root@trest2 ~]# kubectl get pods -A | grep test
[root@trest2 ~]#
[root@test2 ~]# kubectl get pods -A | grep test
it did not recreated the job automatically. it is creating it when we restart k3s though.
creamy-pencil-82913
10/03/2023, 7:21 PMwide-author-74384
10/03/2023, 7:25 PM