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

Commit

Permalink
ingress: add nodepool edge node taints tolerations (#38)
Browse files Browse the repository at this point in the history
When nginx ingress controller is orchestrated to the related nodepools by YurtIngress,
it can not be orchestrated successfully to the nodepool edge nodes with taints for the
related deployment didn't add the related tolerations. As a system component, we keep
it tranparent to users and set it to tolerate all taints for the nodepool nodes.

Signed-off-by: zhenggu1 <zhengguang.zhang@intel.com>
  • Loading branch information
zzguang authored Feb 15, 2022
1 parent 4eb0982 commit 5dc7d07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/yurtappmanager/constant/nginx-ingress-controller-tmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ spec:
apps.openyurt.io/nodepool: {{.nodepool_name}}
serviceAccountName: ingress-nginx
terminationGracePeriodSeconds: 300
tolerations:
- operator: Exists
`
NginxIngressAdmissionWebhookDeployment = `
# Source: ingress-nginx/templates/controller-deployment.yaml
Expand Down

0 comments on commit 5dc7d07

Please sign in to comment.