26 lines
814 B
Markdown
26 lines
814 B
Markdown
K106e5eb70f699db4a043873e452b636cd50be9a5794ff1a912a7b96f22268eb204::server:afa9aade36b27a6eec44d47983441d59
|
|
|
|
# Agent 节点安装命令
|
|
|
|
```sh
|
|
|
|
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn K3S_URL=https://kevisual.cn:6443 K3S_TOKEN=K106e5eb70f699db4a043873e452b636cd50be9a5794ff1a912a7b96f22268eb204::server:afa9aade36b27a6eec44d47983441d59 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
|
|
|
|
```sh
|
|
kubectl label nodes <node-name> machine=<value> --overwrite
|
|
```
|
|
|
|
```
|
|
kubectl label nodes kevisual machine=kevisual --overwrite
|
|
|
|
kubectl label nodes pro machine=pro --overwrite
|
|
``` |