mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 16:37:34 +00:00
Fix mermaid syntax and update K8s taint labels
This commit is contained in:
@@ -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
|
||||
|
||||
...
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
...
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user