Skip to content

Commit f78cfed

Browse files
committed
Add node affinity
- Node affinity will tell the kubernetes scheduler which types of nodes this installation "prefers" to be installed on. In this case, all we care about is that the nodes are Linux and either arm or x86. This will prevent the scheduler from attempting to install the controller on a Windows node. Signed-off-by: Brady Siegel <[email protected]>
1 parent 39c653a commit f78cfed

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

charts/aws-pca-issuer/values.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,19 @@ tolerations: []
9999
# - master
100100
#+docs:property
101101
affinity:
102+
nodeAffinity:
103+
requiredDuringSchedulingIgnoredDuringExecution:
104+
nodeSelectorTerms:
105+
- matchExpressions:
106+
- key: kubernetes.io/os
107+
operator: In
108+
values:
109+
- linux
110+
- key: kubernetes.io/arch
111+
operator: In
112+
values:
113+
- amd64
114+
- arm64
102115
podAntiAffinity:
103116
preferredDuringSchedulingIgnoredDuringExecution:
104117
- podAffinityTerm:

0 commit comments

Comments
 (0)