Skip to content

Commit 7a2ac64

Browse files
committed
Add affinity for some knative resources that have pdb
1 parent c975eff commit 7a2ac64

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

infra/knative/crd.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,31 @@ spec:
2525
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "ip"
2626
service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
2727
service.beta.kubernetes.io/aws-load-balancer-attributes: deletion_protection.enabled=true
28-
28+
workloads:
29+
- name: webhook
30+
affinity:
31+
nodeAffinity:
32+
requiredDuringSchedulingIgnoredDuringExecution:
33+
nodeSelectorTerms:
34+
- matchExpressions:
35+
- key: karpenter.sh/nodepool
36+
operator: DoesNotExist
37+
- name: activator
38+
affinity:
39+
nodeAffinity:
40+
requiredDuringSchedulingIgnoredDuringExecution:
41+
nodeSelectorTerms:
42+
- matchExpressions:
43+
- key: karpenter.sh/nodepool
44+
operator: DoesNotExist
45+
- name: 3scale-kourier-gateway
46+
affinity:
47+
nodeAffinity:
48+
requiredDuringSchedulingIgnoredDuringExecution:
49+
nodeSelectorTerms:
50+
- matchExpressions:
51+
- key: karpenter.sh/nodepool
52+
operator: DoesNotExist
2953
config:
3054
features:
3155
kubernetes.podspec-tolerations: "Allowed"

0 commit comments

Comments
 (0)