Skip to content

Instantly share code, notes, and snippets.

@saamalik
Last active June 27, 2023 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saamalik/926a862205fd9b0a3be1095e4a533982 to your computer and use it in GitHub Desktop.
Save saamalik/926a862205fd9b0a3be1095e4a533982 to your computer and use it in GitHub Desktop.

Linux

curl -O -L https://github.com/int128/kubelogin/releases/download/v1.21.0/kubelogin_linux_amd64.zip
unzip kubelogin*
sudo cp kubelogin /usr/local/bin/kubectl-oidc_login

Or copy kubelogin to ~/bin if the directory is path of $PATH

macOS

Need Homebrew as a pre-requisite. Run inside a shell.

brew install int128/kubelogin/kubelogin

Windows

Run inside PowerShell

$url = "https://github.com/int128/kubelogin/releases/download/v1.28.0/kubelogin_windows_amd64.zip"
Invoke-WebRequest -Uri $url -OutFile kubelogin.zip
Expand-Archive -Path kubelogin.zip
Move-Item -Path kubelogin\kubelogin.exe -Destination C:\Windows\kubectl-oidc_login.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment