#!/bin/bash
function kube_uninstall()
{
#kubectl cleanup
kubectl delete -f https://docs.projectcalico. org/v3.3/getting-started/ kubernetes/installation/ hosted/rbac-kdd.yaml
function kube_uninstall()
{
#kubectl cleanup
kubectl delete -f https://docs.projectcalico.
kubectl delete -f https://docs.projectcalico. org/v3.3/getting-started/ kubernetes/installation/ hosted/kubernetes-datastore/ calico-networking/1.7/calico. yaml
#kubeadm
reset
kubeadm reset
ETCDCTL_API=3 etcdctl del "" --prefix
#Uninstall kubeadm
sudo yum remove kubeadm kubectl kubelet kubernetes-cni kube*
#centos
sudo yum autoremove
#Remove kube config
sudo rm -rf ~/.kube
}
kubeadm reset
ETCDCTL_API=3 etcdctl del "" --prefix
#Uninstall kubeadm
sudo yum remove kubeadm kubectl kubelet kubernetes-cni kube*
#centos
sudo yum autoremove
#Remove kube config
sudo rm -rf ~/.kube
}