The k6 Kubernetes Job fails with `The moduleSpecifier "/scripts/test.js" couldn't be found on local disk`.
BeginnerTroubleshootingk6 Load Testing
Answer
Likely causes → The ConfigMap with the script is not mounted, mounted at a different path, or the key name differs from test.js.
Diagnose →
kubectl get cm -n loadtest k6-script -o yaml | head -20
kubectl get job -n loadtest k6-run -o yaml | yq '.spec.template.spec.volumes, .spec.template.spec.containers[0].volumeMounts'
Fix → Create the ConfigMap with the expected key (kubectl create configmap k6-script --from-file=test.js) and mount it at /scripts.
Prevent → Use the k6 Operator TestRun resource, which handles script ConfigMaps consistently.
More on k6 Load Testing
k6 prints `WARN[0030] Insufficient VUs, reached 100 active VUs and cannot initialize more executor=constant-arrival-rate scenario=steady`.AdvancedCI fails with `ERRO[0602] thresholds on metrics 'http_req_duration' have been crossed` and exit code 99.BeginnerEvery request fails with `dial tcp: lookup checkout on 10.96.0.10:53: no such host`.BeginnerMany requests fail with `request timeout` after exactly 60 seconds.IntermediateThe test starts fine, then errors switch to `dial tcp 10.96.41.12:8080: connect: connection refused`.IntermediateThe k6 load generator logs `socket: too many open files`.Intermediate