The test starts fine, then errors switch to `dial tcp 10.96.41.12:8080: connect: connection refused`.
IntermediateTroubleshootingk6 Load Testing
Answer
Likely causes → Pods crashed or restarted under load (OOMKilled, liveness probe failures), leaving no ready endpoints, or the Service points to a port nobody listens on after a restart.
Diagnose →
kubectl get pods -n shop -w
kubectl describe pod -n shop -l app=checkout | grep -A5 "Last State"
kubectl get endpointslices -n shop -l kubernetes.io/service-name=checkout
Fix → Fix the crash cause: memory limits, liveness probe too aggressive under load (use a cheap endpoint, longer timeouts), or startup time.
Prevent → Load tests should also assert pod restarts are zero; liveness probes should never depend on downstream services.
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 k6 load generator logs `socket: too many open files`.IntermediateAt high rates, k6 errors with `dial tcp 10.0.3.15:443: connect: cannot assign requested address`.Advanced