Skip to content

Commit 2a6eded

Browse files
committed
syz-cluster: enforce pod to node assignment
On GKE, we use a separate node pool that supports nested virtualization. Taints and tolerations (that were used before) only make sure that no other pods are scheduled there, but are not enough to make sure that the pods that do need nested virtualization will end up there. Use nodeSelector to force the affinity.
1 parent 229db4c commit 2a6eded

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

syz-cluster/overlays/gke/kustomization.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resources:
1313
patches:
1414
- target:
1515
kind: WorkflowTemplate
16-
name: boot-step-template
16+
name: (boot|fuzz)-step-template
1717
patch: |-
1818
- op: replace
1919
path: /spec/templates/0/tolerations
@@ -24,12 +24,9 @@ patches:
2424
effect: "NoSchedule"
2525
- target:
2626
kind: WorkflowTemplate
27-
name: fuzz-step-template
27+
name: (boot|fuzz)-step-template
2828
patch: |-
2929
- op: replace
30-
path: /spec/templates/0/tolerations
30+
path: /spec/templates/0/nodeSelector
3131
value:
32-
- key: "workload"
33-
operator: "Equal"
34-
value: "nested-vm"
35-
effect: "NoSchedule"
32+
cloud.google.com/gke-nodepool: nested-vm-pool

0 commit comments

Comments
 (0)