docs(readme): remove example node taints and related effects
这个提交包含在:
@@ -100,31 +100,6 @@ kubectl get nodes
|
|||||||
| `node_labels` | dict | - | 自定义标签 |
|
| `node_labels` | dict | - | 自定义标签 |
|
||||||
| `node_taints` | list | - | 节点污点 (格式: key=value:effect) |
|
| `node_taints` | list | - | 节点污点 (格式: key=value:effect) |
|
||||||
|
|
||||||
### 节点污点示例
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
masters:
|
|
||||||
hosts:
|
|
||||||
master1:
|
|
||||||
ansible_host: 10.0.0.1
|
|
||||||
node_taints:
|
|
||||||
- "node-role.kubernetes.io/control-plane:NoSchedule"
|
|
||||||
- "dedicated=gpu:NoSchedule"
|
|
||||||
|
|
||||||
agents:
|
|
||||||
hosts:
|
|
||||||
gpu-node:
|
|
||||||
ansible_host: 10.0.0.10
|
|
||||||
node_taints:
|
|
||||||
- "nvidia.com/gpu:NoSchedule"
|
|
||||||
```
|
|
||||||
|
|
||||||
常用污点效果(Effect):
|
|
||||||
- **NoSchedule**: 不允许新 Pod 调度到此节点
|
|
||||||
- **PreferNoSchedule**: 尽量不调度(软限制)
|
|
||||||
- **NoExecute**: 驱逐已有 Pod 并禁止新 Pod
|
|
||||||
| `kubelet_reserved` | string | - | 资源预留: cpu=500m,memory=512Mi |
|
|
||||||
|
|
||||||
## 环境变量
|
## 环境变量
|
||||||
|
|
||||||
| 变量 | 必须 | 说明 |
|
| 变量 | 必须 | 说明 |
|
||||||
|
|||||||
在新议题中引用
屏蔽一个用户