Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
fix: add default toleration for all taints (#1371)
Browse files Browse the repository at this point in the history
ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration
- An empty `key` with operator `Exists` matches all keys, values and effects which means this will tolerate everything.

Signed-off-by: Anish Ramasekar <[email protected]>
  • Loading branch information
aramase authored Dec 8, 2022
1 parent d90a976 commit 85c39cc
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest_staging/charts/aad-pod-identity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ The following tables list the configurable parameters of the aad-pod-identity ch
| `nmi.podAnnotations` | Pod annotations for NMI | `{}` |
| `nmi.podLabels` | Pod labels for NMI | `{}` |
| `nmi.affinity` | Affinity settings | `{}` |
| `nmi.tolerations` | List of node taints to tolerate | `[]` |
| `nmi.tolerations` | List of node taints to tolerate | `[{"operator": "Exists"}]` |
| `nmi.ipTableUpdateTimeIntervalInSeconds` | Override iptables update interval in seconds | `60` |
| `nmi.micNamespace` | Override mic namespace to short circuit MIC token requests | If not provided, default is `default` namespace |
| `nmi.probePort` | Override http liveliness probe port | If not provided, default is `8085` |
Expand Down
7 changes: 4 additions & 3 deletions manifest_staging/charts/aad-pod-identity/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,10 @@ nmi:
nodeSelector:
kubernetes.io/os: linux

tolerations: []
# - key: "CriticalAddonsOnly"
# operator: "Exists"
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
## An empty key with operator Exists matches all keys, values and effects which means this will tolerate everything.
tolerations:
- operator: "Exists"

# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
affinity: {}
Expand Down
2 changes: 2 additions & 0 deletions manifest_staging/deploy/infra/deployment-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ spec:
port: 8085
initialDelaySeconds: 10
periodSeconds: 5
tolerations:
- operator: Exists
nodeSelector:
kubernetes.io/os: linux
---
Expand Down
2 changes: 2 additions & 0 deletions manifest_staging/deploy/infra/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ spec:
port: 8085
initialDelaySeconds: 10
periodSeconds: 5
tolerations:
- operator: Exists
nodeSelector:
kubernetes.io/os: linux
---
Expand Down
2 changes: 2 additions & 0 deletions manifest_staging/deploy/infra/managed-mode-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -351,5 +351,7 @@ spec:
port: 8085
initialDelaySeconds: 10
periodSeconds: 5
tolerations:
- operator: Exists
nodeSelector:
kubernetes.io/os: linux
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,8 @@ spec:
port: 8085
initialDelaySeconds: 10
periodSeconds: 5
tolerations:
- operator: Exists
nodeSelector:
kubernetes.io/os: linux
---
Expand Down
2 changes: 2 additions & 0 deletions manifest_staging/deploy/infra/noazurejson/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ spec:
port: 8085
initialDelaySeconds: 10
periodSeconds: 5
tolerations:
- operator: Exists
nodeSelector:
kubernetes.io/os: linux
---
Expand Down

0 comments on commit 85c39cc

Please sign in to comment.