27 lines
866 B
Markdown
27 lines
866 B
Markdown
K1035ea36d4925cfd0a7f7938fb3eff1225e458c1aee4fb99bda40bb95f529913bf::server:03e3ef7d17dadc2471b0f2369248250d
|
|
|
|
|
|
# Agent 节点安装命令
|
|
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn K3S_URL=https://light.xiongxiao.me:6443 K3S_TOKEN=K1035ea36d4925cfd0a7f7938fb3eff1225e458c1aee4fb99bda40bb95f529913bf::server:03e3ef7d17dadc2471b0f2369248250d sh -
|
|
|
|
会输出类似
|
|
[INFO] systemd: Enabling k3s-agent unit
|
|
Created symlink /etc/systemd/system/multi-user.target.wants/k3s-agent.service → /etc/systemd/system/k3s-agent.service.
|
|
[INFO] systemd: Starting k3s-agent
|
|
|
|
|
|
|
|
## 设置label
|
|
|
|
|
|
kubectl label nodes library machine=library --overwrite
|
|
|
|
删除label
|
|
kubectl label nodes vm-32-6-ubuntu machine- --overwrite
|
|
|
|
|
|
### on
|
|
kubectl label nodes on machine=on --overwrite
|
|
### light
|
|
|
|
kubectl label nodes light machine=light --overwrite |