Skip to content

Commit 2786007

Browse files
committed
ad file
1 parent bac6925 commit 2786007

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

support/azure/azure-kubernetes/availability-performance/troubleshoot-pod-scheduling-errors.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,18 @@ The Kubernetes scheduler tries to assign the Pod to a node, but all nodes are re
101101
2. Add necessary tolerations to Pod spec. Edit your deployment or Pod YAML to include matching tolerations for the taints on your nodes. For example, if your node has the taint key=value:NoSchedule, your Pod spec must include:
102102

103103
```yml
104-
tolerations:
105-
106-
- key: "key"
107-
108-
  operator: "Equal"
109-
110-
  value: "value"
111-
112-
  effect: "NoSchedule"
104+
tolerations:
105+
106+
- key: "key"
107+
108+
  operator: "Equal"
109+
110+
  value: "value"
111+
112+
  effect: "NoSchedule"
113113
```
114114
3. If the taint isn't needed, you can remove it from the node:
115-
115+
116116
```bash
117117
kubectl taint nodes <node-name> <key>:<effect>-
118118
```
@@ -121,6 +121,3 @@ The Kubernetes scheduler tries to assign the Pod to a node, but all nodes are re
121121
```bash
122122
kubectl get pods -o wide
123123
```
124-
125-
126-

0 commit comments

Comments
 (0)