Skip to content

Commit

Permalink
operator: add node selector
Browse files Browse the repository at this point in the history
Signed-off-by: Prashanth Dintyala <saiprashanth173@gmail.com>
  • Loading branch information
saiprashanth173 committed Apr 12, 2021
1 parent 31a3111 commit fef8bc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions operator/pkg/resources/proxy/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func proxyPodSpec(ais *aisv1.AIStore) corev1.PodSpec {
},
},
Affinity: cmn.NewAISPodAffinity(ais, ais.Spec.ProxySpec.Affinity, PodLabels(ais)),
NodeSelector: ais.Spec.ProxySpec.NodeSelector,
ServiceAccountName: cmn.ServiceAccountName(ais),
SecurityContext: ais.Spec.ProxySpec.SecurityContext,
Volumes: cmn.NewAISVolumes(ais, aiscmn.Proxy),
Expand Down
1 change: 1 addition & 0 deletions operator/pkg/resources/target/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func NewTargetSS(ais *aisv1.AIStore) *apiv1.StatefulSet {
ServiceAccountName: cmn.ServiceAccountName(ais),
SecurityContext: ais.Spec.TargetSpec.SecurityContext,
Affinity: cmn.NewAISPodAffinity(ais, ais.Spec.TargetSpec.Affinity, ls),
NodeSelector: ais.Spec.TargetSpec.NodeSelector,
Volumes: cmn.NewAISVolumes(ais, aiscmn.Target),
Tolerations: ais.Spec.TargetSpec.Tolerations,
},
Expand Down

0 comments on commit fef8bc0

Please sign in to comment.