安装一命令:curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.20.15 sh -s - server
–datastore-endpoint=“mysql://root:root@tcp(192.168.0.145:3306)/k3s”
安装二命令:curl -sfL https://rancher-mirror.oss-cn-beijing.aliyuncs.com/k3s/k3s-install.sh | INSTALL_K3S_VERSION=v1.20.15 sh -s - server
–datastore-endpoint=“mysql://root:root@tcp(192.168.0.145:3306)/k3s”