如何卸载k8s?
-
卸载docker
yum remove docker*
-
卸载K8s
yum remove -y kubelet kubeadm kubectl kubeadm reset -f modprobe -r ipip lsmod rm -rf ~/.kube/ rm -rf /etc/kubernetes/ rm -rf /etc/systemd/system/kubelet.service.d rm -rf /etc/systemd/system/kubelet.service rm -rf /usr/bin/kube* rm -rf /etc/cni rm -rf /opt/cni rm -rf /var/lib/etcd rm -rf /var/etcd
3.更新镜像
yum clean all yum -y update yum makecache
笔记:
pvc创建的时候,
有状态服务,使用单个节点读写;
无状态服务,使用多节点读写;