Skip to content

Commit 3af87a2

Browse files
tiferreisynarete
authored andcommitted
config: restrict deployments to amd64 nodes
Until samba-operator supports other architectures (namely, ARM64), restrict its deployment to AMD64 nodes (e.g., in cases of non x86_64 or mixed ARCH clusters) via standard K8s node-selector mechanism [1]. [1] https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ Signed-off-by: Tiago Ferreira <[email protected]> Co-authored-by: Shachar Sharon <[email protected]>
1 parent abfb931 commit 3af87a2

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

config/manager-full/auth_proxy_patch.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ metadata:
88
spec:
99
template:
1010
spec:
11+
affinity:
12+
nodeAffinity:
13+
requiredDuringSchedulingIgnoredDuringExecution:
14+
nodeSelectorTerms:
15+
- matchExpressions:
16+
- key: kubernetes.io/arch
17+
operator: In
18+
values:
19+
- amd64
1120
containers:
1221
- name: kube-rbac-proxy
1322
# this is apparently the same code as

config/manager/manager.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ spec:
3131
kubectl.kubernetes.io/default-logs-container: manager
3232
kubectl.kubernetes.io/default-container: manager
3333
spec:
34+
affinity:
35+
nodeAffinity:
36+
requiredDuringSchedulingIgnoredDuringExecution:
37+
nodeSelectorTerms:
38+
- matchExpressions:
39+
- key: kubernetes.io/arch
40+
operator: In
41+
values:
42+
- amd64
3443
containers:
3544
- command:
3645
- /manager

0 commit comments

Comments
 (0)