This commit is contained in:
2025-11-27 11:17:42 +08:00
parent d581131b8b
commit 5d788be63d
4 changed files with 71 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
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
```