# Export the VIP_SERVICE_IP in the VM
# Replace with the actual IP
export VIP_SERVICE_IP=<ip>
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="server" sh -
systemctl enable rke2-server.service
Add tls-sans to /etc/rancher/rke2/config.yaml before starting the service to make sure that kubectl works in load-balanced environment.