diff --git a/config/samples/k6_v1alpha1_k6_with_topologyspreadconstraints.yaml b/config/samples/k6_v1alpha1_k6_with_topologyspreadconstraints.yaml new file mode 100644 index 00000000..194ff7da --- /dev/null +++ b/config/samples/k6_v1alpha1_k6_with_topologyspreadconstraints.yaml @@ -0,0 +1,24 @@ +apiVersion: k6.io/v1alpha1 +kind: TestRun +metadata: + name: testrun-sample +spec: + parallelism: 4 + script: + configMap: + name: k6-test + file: test.js + runner: + metadata: + labels: + testrun: sample + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchExpressions: + - key: testrun + operator: "In" + values: + - sample