Skip to content

Commit

Permalink
add toleration for csi-operator/volume-decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmhl authored and QianChenglong committed Mar 18, 2020
1 parent 747db99 commit 5f416ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,12 @@ func (c *Controller) genDeployment(components images.Components, svInfo *storage
Spec: corev1.PodSpec{
PriorityClassName: "system-cluster-critical",
ServiceAccountName: svcAccountName,
Tolerations: []corev1.Toleration{
{
Key: "node-role.kubernetes.io/master",
Effect: corev1.TaintEffectNoSchedule,
},
},
Containers: []corev1.Container{
{
Name: deploymentName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,12 @@ func (c *Controller) genDeployment(decorator *v1.VolumeDecorator, svInfo *storag
ServiceAccountName: svcAccountName,
HostNetwork: true,
HostPID: true,
Tolerations: []corev1.Toleration{
{
Key: "node-role.kubernetes.io/master",
Effect: corev1.TaintEffectNoSchedule,
},
},
},
},
},
Expand Down

0 comments on commit 5f416ad

Please sign in to comment.