I have a kubernetes cluster installed using kubeadm on centos7. I am trying to stop the whole cluster I've drained all the nodes including the master, stopped kubelet service on all nodes, but kube-system pods are still running, I see no systemd services aside from kubelet, and cant find anything on the internet and documentation that helps me.
Any tips on how to achieve this?
Make sure you stop kubelet on the master node as well, and if you really want to be certain stop the container runtime service. If you are using Docker, just do:
sudo sytemctl stop docker
on all the nodes, including the master.
Kubectl should stop working at that point, since the Kube API is one of those system pods that will stop when Docker stops.