Skip to content

Commit

Permalink
[installer] Ensure ws-proxy is scheduled in different nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Feb 22, 2022
1 parent d9b9f30 commit 356c3cb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions install/installer/pkg/components/ws-proxy/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,16 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
},
},
Spec: corev1.PodSpec{
PriorityClassName: common.SystemNodeCritical,
Affinity: common.Affinity(cluster.AffinityLabelWorkspaceServices),
PriorityClassName: common.SystemNodeCritical,
Affinity: common.Affinity(cluster.AffinityLabelWorkspaceServices),
TopologySpreadConstraints: []corev1.TopologySpreadConstraint{
corev1.TopologySpreadConstraint{
LabelSelector: &metav1.LabelSelector{MatchLabels: labels},
MaxSkew: 1,
TopologyKey: "kubernetes.io/hostname",
WhenUnsatisfiable: corev1.DoNotSchedule,
},
},
EnableServiceLinks: pointer.Bool(false),
ServiceAccountName: Component,
SecurityContext: &corev1.PodSecurityContext{
Expand Down

0 comments on commit 356c3cb

Please sign in to comment.