Hey everyone,
I’m trying to use K6 operator to run a distributed load test on AWS. I want all of the runners to run on separate nodes of a specific node group in my EKS cluster. I’ve tried to setup a nodeSelector
but I’m getting the following error.
error validating data: ValidationError(K6.spec.runner): unknown field "nodeSelector" in io.k6.v1alpha1.K6.spec.runner
Is it not possible to use nodeSelector? Here’s what my CRD looks like:
apiVersion: k6.io/v1alpha1
kind: K6
metadata:
name: k6-edamame-test
spec:
parallelism: 4
script:
configMap:
name: '18'
file: test1.js
separate: true
arguments: '--out distributed-statsd'
runner:
image: lukeoguro/xk6-statsd:latest
env:
- name: K6_STATSD_ADDR
value: statsd-service:8125
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: K6_STATSD_GAUGE_NAMESPACE
value: $(POD_NAME).
- name: K6_STATSD_NAMESPACE
value: '18.'
nodeSelector:
alpha.eksctl.io/nodegroup-name: load-generators
Any help would be appreciated!