Skip to content

Commit

Permalink
config: restrict deployments to amd64 nodes
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Shachar Sharon <[email protected]>
  • Loading branch information
tiferrei authored and synarete committed Feb 13, 2024
1 parent 96e4f3b commit 8b8e13c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/manager-full/auth_proxy_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ metadata:
spec:
template:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
containers:
- name: kube-rbac-proxy
# this is apparently the same code as
Expand Down
9 changes: 9 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ spec:
kubectl.kubernetes.io/default-logs-container: manager
kubectl.kubernetes.io/default-container: manager
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
containers:
- command:
- /manager
Expand Down

0 comments on commit 8b8e13c

Please sign in to comment.