We need to completely remove Kubernetes from Ubuntu 18.04 server.
For that we tried
kubeadm reset
sudo apt-get purge kubeadm kubectl kubelet kubernetes-cni kube*
It gives
Package 'kubeadm' is not installed, so not removed
Package 'kubectl' is not installed, so not removed
Package 'kubelet' is not installed, so not removed
Package 'kubernetes-cni' is not installed, so not removed
If we run kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe34773c74f79527be4afd95bf39", GitTreeState:"clean", BuildDate:"2021-07-15T21:03:28Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}
which kubeadm
/usr/local/bin/kubeadm
dpkg -S /usr/local/bin/kubeadm
dpkg-query: no path found matching pattern /usr/local/bin/kubeadm
snap list --all
No snaps are installed yet. Try 'snap install hello-world'
We had installed Kubernetes using no source compiling locally.
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key
add
sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"
sudo apt update
sudo apt install kubeadm kubelet kubectl
sudo apt-mark hold kubeadm kubelet kubectl
What is the issue here? How can I properly remove Kubernetes from this node?