Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions K8s-Taint-Toleration.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ spec:
containers:
- name: toleratedcontainer1
image: nginx:latest
tolerations: # pod tolerates "app=production:NoSchedule"
- key: "app"
tolerations: # pod tolerates "platform=production:NoSchedule"
- key: "platform"
operator: "Equal"
value: "production"
effect: "NoSchedule"
Expand All @@ -43,8 +43,8 @@ spec:
- name: toleratedcontainer2
image: nginx:latest
tolerations:
- key: "app" # pod tolerates "app:NoSchedule", value is not important in this pod
operator: "Exists" # pod can run on the nodes which has "app=test:NoSchedule" or "app=production:NoSchedule"
- key: "platform" # pod tolerates "platform:NoSchedule", value is not important in this pod
operator: "Exists" # pod can run on the nodes which has "platform=test:NoSchedule" or "platform=production:NoSchedule"
effect: "NoSchedule"
```

Expand Down