Hi Team,
I’m trying to install k6 operator in k8 cluster environment. Can I have help resolving the following issue.?
I got the following issue when running ‘make deploy’ command.
I have installed all Prerequisites.
go version:
go version go1.20 windows/amd64
controller-gen --version:
Version: v0.3.0
make deploy
:-
process_begin: CreateProcess(NULL, which controller-gen, …) failed.
Makefile:114: pipe: Bad file descriptor
process_begin: CreateProcess(NULL, which kustomize, …) failed.
Makefile:129: pipe: Bad file descriptor
process_begin: CreateProcess(NULL, { set -e ;CONTROLLER_GEN_TMP_DIR=$(mktemp -d) ;cd $CONTROLLER_GEN_TMP_DIR ;go mod init tmp ;go install
sigs.k8s.io/controller-tools/cmd/controller-gen@v0.3.0
;rm -rf $CONTROLLER_GEN_TMP_DIR ;}, …) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:115: controller-gen] Error 2
Hi
@vikum1407
Welcome to the community forums
Are you following the guide
Running distributed k6 tests on Kubernetes
? Or
GitHub - javaducky/demo-k6-operator: Project for demonstrating the use of k6-operator within Kubernetes clusters.
? If you an share the instructions you are following it will help.
You mentioned all
prerequisites
are in place, can you double-check all of them? You shared
go version
and
controller-gen version
. Can you also check
kustomize
is installed and in the
PATH
? The message
The system cannot find the file specified
suggests that required tools might not be installed or on the
PATH
environment variable.
It could also be something related to Windows that we should look into. Can you share the Windows version you are running?
Cheers!
Hi Eyeveebe,
I followed
Running distributed k6 tests on Kubernetes
and the following are the other installed version,
kustomize
is installed →
kustomize/v4.5.5
Windows 10
Thank you.
Hi
@vikum1407
Thanks for the additional details.
This type of error is usually found when the pre-requisites are not on the system
PATH
. Can you double-check that?
echo %PATH%
in the
command line
, or similar with
Powershell
I believe it’s
Get-ChildItem Env:Path
.
If you have them on the system
PATH
, we’ll keep digging.
Cheers!
Hi
@ignatiusdamai
Sorry to hear you are hitting the same issue. Can you share the error you are getting, is it the same?
Can you also share the contents of
PATH
, and the exact Windows version you use?
Thanks!
Hi, I’m also experiencing the same issue. Has there been a resolution to the issue?
Windows 11 Pro
kubectl Client Version: v1.25.4
Kustomize Version: v4.5.7
Thanks for reporting this. Allow me some time to try and reproduce this on Windows and I’ll get back here with my findings.
Cheers!
I’ve reproduced the issue with Windows,
make deploy
fails for me with the same error. We are looking into this and will report back here when we know more.
Thanks everyone for reporting this, and apologies for our delay.
Cheers!
We have an open issue to document troubleshooting the operator on Windows, and I added a note there to look into this:
Check and confirm the installation and execution on Windows · Issue #94 · grafana/k6-operator · GitHub
Feel free to follow that issue and
to help prioritize it.
I’ll try to find the time to further troubleshoot Windows instructions, and get back here when I do.
Cheers!