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]>
Co-authored-by: Shachar Sharon <[email protected]>
  • Loading branch information
2 people authored and mergify[bot] committed Feb 14, 2024
1 parent abfb931 commit 3af87a2
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 3af87a2

Please sign in to comment.