Fix mermaid syntax and update K8s taint labels

This commit is contained in:
yeasy
2026-04-18 15:17:56 -07:00
parent 6a876694a9
commit b0d4b23744
3 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -261,15 +261,15 @@ $ kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/v0.28.2/
如果用 `kubeadm` 部署一个单节点集群默认情况下无法使用请执行以下命令解除限制
```bash
$ kubectl taint nodes --all node-role.kubernetes.io/master-
$ kubectl taint nodes --all node-role.kubernetes.io/control-plane-
# 部分较新版本使用 control-plane taint
# 较旧版本使用 master taint
# $ kubectl taint nodes --all node-role.kubernetes.io/control-plane-
# $ kubectl taint nodes --all node-role.kubernetes.io/master-
# 恢复默认值
# $ kubectl taint nodes NODE_NAME node-role.kubernetes.io/master=true:NoSchedule
# $ kubectl taint nodes NODE_NAME node-role.kubernetes.io/control-plane=true:NoSchedule
...
```
+4 -4
View File
@@ -278,15 +278,15 @@ $ kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/v0.28.2/
如果用 `kubeadm` 部署一个单节点集群默认情况下无法使用请执行以下命令解除限制
```bash
$ kubectl taint nodes --all node-role.kubernetes.io/master-
$ kubectl taint nodes --all node-role.kubernetes.io/control-plane-
# 部分较新版本使用 control-plane taint
# 较旧版本使用 master taint
# $ kubectl taint nodes --all node-role.kubernetes.io/control-plane-
# $ kubectl taint nodes --all node-role.kubernetes.io/master-
# 恢复默认值
# $ kubectl taint nodes NODE_NAME node-role.kubernetes.io/master=true:NoSchedule
# $ kubectl taint nodes NODE_NAME node-role.kubernetes.io/control-plane=true:NoSchedule
...
```