From a78a0db846ba40fce86f9bf8713350490c55cb3a Mon Sep 17 00:00:00 2001 From: colben Date: Thu, 11 Aug 2022 11:53:58 +0800 Subject: [PATCH] update --- content/post/k3s-install.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/post/k3s-install.md b/content/post/k3s-install.md index 959e9fd..9c8f9a8 100644 --- a/content/post/k3s-install.md +++ b/content/post/k3s-install.md @@ -157,6 +157,11 @@ k3s agent | k3s-agent1 | RockyLinux 8.5 | docker 20.10, k3s v1.23.9 kubectl cordon k3s-server{0..1} ``` +- 设置 agent 节点的角色为 worker + ```bash + kubectl label nodes k3s-agent{0..1} kubernetes.io/role=worker --overwrite + ``` + ## 注意事项 - k3s 内部 ssl 证书有效期一年,可在到期前重启 k3s 集群轮换证书