Install Kubelogin on Windows Subsystem for Linux (WSL)

  1. Launch your WSL terminal.
  2. Update the package repositories by running the following command: sudo apt update
  3. Install the necessary dependencies by executing the following command:
    sudo apt install curl wget unzip
  4. Download the latest Kubelogin release by running the following command:
    curl -LO https://github.com/int128/kubelogin/releases/latest/download/kubelogin_linux_amd64.zip
  5. Unzip the downloaded file using the following command:
    unzip kubelogin_linux_amd64.zip
  6. Move the extracted binary to a directory in your system’s PATH. For example:
    sudo mv kubelogin /usr/local/bin/kubelogin
  7. Add executable permissions to the binary by running the following command:
    sudo chmod +x /usr/local/bin/kubelogin
  8. Verify that Kubelogin is installed successfully by running the following command:
    kubelogin version

    You should see the version information printed if the installation was successful.
Advertisement