Skip to content

Commit

Permalink
Make antrea-agent tolerant of NoExecute taints (antrea-io#815)
Browse files Browse the repository at this point in the history
As a node-critical Pod, antrea-agent should be tolerant of all NoExecute
taints regardless of their keys like kube-proxy and other CNIs do,
otherwise workload Pods' network won't work once antrea-agent is evicted.
  • Loading branch information
tnqn authored and GraysonWu committed Sep 18, 2020
1 parent c376326 commit c483d89
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/yamls/antrea-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,8 @@ spec:
operator: Exists
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- configMap:
name: antrea-config-hmd2mdhg89
Expand Down
2 changes: 2 additions & 0 deletions build/yamls/antrea-gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,8 @@ spec:
operator: Exists
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- configMap:
name: antrea-config-ff5ff2btgc
Expand Down
2 changes: 2 additions & 0 deletions build/yamls/antrea-ipsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,8 @@ spec:
operator: Exists
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- configMap:
name: antrea-config-fggkd66d2h
Expand Down
2 changes: 2 additions & 0 deletions build/yamls/antrea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,8 @@ spec:
operator: Exists
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- configMap:
name: antrea-config-mf4t8c67c8
Expand Down
3 changes: 3 additions & 0 deletions build/yamls/base/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
# Make sure it gets scheduled on all nodes.
- effect: NoSchedule
operator: Exists
# Make sure it doesn't get evicted.
- effect: NoExecute
operator: Exists
nodeSelector:
kubernetes.io/os: linux
serviceAccountName: antrea-agent
Expand Down

0 comments on commit c483d89

Please sign in to comment.