kubelogin icon indicating copy to clipboard operation
kubelogin copied to clipboard

Error: unknown command "oidc-login" for "kubectl"

Open epicjpr opened this issue 2 years ago • 2 comments

Describe the issue

A clear and concise description of what the issue is.
I installed oidc-login in my mac using krew via the command "kubectl krew install oidc-login". When I try to connect to my cluster using Lens IDE I am getting the error as mentioned in the title.

To reproduce

A console log or steps to reproduce the issue.

Your environment

  • OS: macOS
  • kubectl version: v1.13.1

epicjpr avatar Jan 25 '22 12:01 epicjpr

The same issue on Arch linux

karmicdude avatar Feb 03 '22 07:02 karmicdude

You can fix the issue by installing kubectl using Nix:

$ nix-env -iA nixpkgs.kubectl nixpkgs.kubelogin nixpkgs.kubelogin-oidc

demsking avatar Jan 05 '23 12:01 demsking