Merge "Force loadbalancer pods to master nodes"

This commit is contained in:
Zuul 2021-07-21 21:15:49 +00:00 committed by Gerrit Code Review
commit 1f88a95a33

View File

@ -123,6 +123,15 @@ func (lb loadBalancer) generateDeploymentAndSecret(instance string, labels map[s
},
},
},
NodeSelector: map[string]string{
"node-role.kubernetes.io/master": "",
},
Tolerations: []corev1.Toleration{
{
Key: "node-role.kubernetes.io/master",
Effect: "NoSchedule",
},
},
Volumes: []corev1.Volume{
{
Name: ConfigSecretName,