k3s: custom built 'k3s kubectl' and 'k3s crictl' do not work

Describe the bug k3s kubectl --help returns:

Error: unknown command "kubectl" for "kubectl"
Run 'kubectl --help' for usage.
unknown command "kubectl" for "kubectl" 

k3s crictl--help returns:

No help topic for 'crictl' 

To Reproduce Steps to reproduce the behavior: Build k3s, symlink kubectl and crictl to k3s and run: k3s kubectl --help or k3s crictl --help

Expected behavior k3s kubectl should handle kubectl requests. Same for crictl.

Screenshots None

Additional context It is built from sources, v0.2.0. Maybe some flags/options are missing to enable kubectl and crictl support?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 31 (13 by maintainers)

Most upvoted comments

I guess it caused by GOPATH.