k6-docs
k6-docs copied to clipboard
Documentation feedback: /docs/sources/k6/v1.1.x/get-started/running-k6.md
I walked through this tutorial, could run the script with 'k6 run script.js', but after I created k6-testrun-resource.yaml and entered 'kubectl apply -f /path/to/k6-testrun-resource.yaml', this command failed: 'kubectl apply -f /path/to/k6-testrun-resource.yaml' with:
$ kubectl apply -f k6-testrun-resource.yaml
error: resource mapping not found for name: "k6-sample" namespace: "" from "k6-testrun-resource.yaml": no matches for kind "TestRun" in version "k6.io/v1alpha1"
ensure CRDs are installed first
I found another tutorial about setting up CRDs: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/ but that seems to be a lot of work compared to that it is not even mentioned in the k6-testrun tutorial. So I would rather like to know if I should really walk through all of that or if there could be anything else missing?