Uninstallation
Depending on the installation method, the uninstallation methods vary as follows.
Ocboot Installation
Ocboot quick installation refers to installing a K3s or Kubernetes cluster on a server in an All in One manner, and then deploying the AI Cloud platform in the cluster.
Therefore, uninstalling AI Cloud only requires uninstalling the installed K3s or Kubernetes cluster and the related packages installed on the server.
- K3s
- Kubernetes
卸载 K3s 服务
$ k3s-uninstall.sh
$ k3s-agent-uninstall.sh
停止并禁用相关服务:
$ systemctl disable --now yunion-executor
卸载Kubernetes服务
$ kubeadm reset --force
$ ipvsadm --clear
停止并禁用相关服务:
$ systemctl disable --now docker.socket docker kubelet yunion-executor
卸载kubelet, yunion-executor等包,并清除相关的数据目录,下面以 centos 举例:
$ rpm -qa |grep kube |xargs -I {} yum -y remove {}
$ rpm -qa |grep yunion |xargs -I {} yum -y remove {}
$ rm -rf /etc/kubernetes/ /var/lib/etcd/ /root/.kube/ /opt/cloud/
Uninstall GPU drivers (optional):
# Check installed NVIDIA packages
$ rpm -qa | grep nvidia
# or
$ dpkg -l | grep nvidia
# Uninstall NVIDIA drivers (CentOS/OpenEuler example)
$ yum -y remove nvidia-driver* cuda*
Uninstall database (CentOS/OpenEuler example):
$ yum -y remove mariadb*
$ rm -rf /var/lib/mysql # To keep original data, run: mv -f /var/lib/mysql /var/lib/mysql.$(date +"%Y%m%d-%H%M").bak
$ rm -rf /etc/my.conf
Clean up model data (optional):
# If you no longer need the downloaded model files
$ rm -rf /opt/cloud/workspace/llm_models
Reboot the machine to restore the previous network:
$ reboot
Uninstall openvswitch (reboot first, then uninstall openvswitch to avoid potential network disconnection):
$ systemctl disable --now openvswitch
$ yum -y remove openvswitch-*
$ rm -rf /etc/openvswitch