Skip to content

Commit

Permalink
Use anti affinity instead of affinity
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschuch committed Mar 28, 2019
1 parent d13c2fd commit 2a3d4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/kubernetes/core/v1/pod/expand.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func Expand(in []interface{}) (corev1.PodTemplateSpec, error) {

// Also apply an anti affinity rule to this pod based on the labels.
template.Spec.Affinity = &corev1.Affinity{
PodAffinity: &corev1.PodAffinity{
PodAntiAffinity: &corev1.PodAntiAffinity{
PreferredDuringSchedulingIgnoredDuringExecution: []corev1.WeightedPodAffinityTerm{
{
Weight: 100,
Expand Down

0 comments on commit 2a3d4b1

Please sign in to comment.