Skip to content

Commit

Permalink
Merge pull request #31 from wantedly/qnighy/amd64-affinity
Browse files Browse the repository at this point in the history
Configure appropriate affinity
  • Loading branch information
qnighy authored Jul 4, 2024
2 parents 84e16c3 + e7e8807 commit b367e2f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@ spec:
labels:
control-plane: controller-manager
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
# - arm64
# - ppc64le
# - s390x
- key: kubernetes.io/os
operator: In
values:
- linux
securityContext:
runAsNonRoot: true
containers:
Expand Down

0 comments on commit b367e2f

Please sign in to comment.