Maintain your Dedicated Server
This article will introduce how to maintain your dedicated server registered with Zeabur.
If you purchased a dedicated server from Zeabur, the operation and maintenance tasks are performed by us. Please submit a ticket to let us know which project you want to maintain, and our staff will handle it for you.
Space Cleanup
If you find that the disk space on your host is insufficient, you can try cleaning up the Docker images pulled by K3s on your host (this is usually done automatically).
# Check which images have been pulled (no need to type this line)
$ sudo k3s crictl images
# Remove all unused images
$ sudo k3s crictl rmi --prune
Sometimes, the logs recorded by K3s for each container can also take up a lot of space. You can try cleaning these logs in the K3s logs directory.
Changing DNS Nameservers
By default, Zeabur’s dedicated servers use Cloudflare DNS as the DNS nameservers for the cluster (machines in mainland China use Alibaba Cloud Public DNS).
If you need to change the DNS nameservers used by the cluster (for example, to Tencent Cloud’s DNSPod Public DNS), you can edit /etc/resolv.kubelet.conf
and change the nameserver
to the DNS nameservers you want.
nameserver 119.29.29.29
Remember to restart the K3s service after making changes.
$ sudo systemctl restart k3s
Starting and Stopping K3s and Containerd
If you need to manually start or stop the K3s or containerd services, follow these steps:
- Connect to your dedicated server via SSH:
ssh <username>@<server IP>
K3s
- Stop the K3s service:
sudo systemctl disable --now k3s
- Start the K3s service:
sudo systemctl enable --now k3s
Containerd
- Stop the containerd service:
sudo systemctl disable --now containerd
- Start the containerd service:
sudo systemctl enable --now containerd
Note: Stopping these services will cause all containers and services running on the server to stop. Please proceed with caution.
Uninstallation
First, you need to remove the server and the services deployed on it from Zeabur.
The “Remove Server” step will not remove the infrastructure set up by Zeabur on your server. Zeabur’s infrastructure is primarily built on K3s, so the uninstallation steps follow the K3s uninstallation steps.
$ /usr/local/bin/k3s-uninstall.sh