Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubelogin Installation on Ubuntu 22.04 #173

Open
ddodoo opened this issue Dec 19, 2022 · 7 comments
Open

kubelogin Installation on Ubuntu 22.04 #173

ddodoo opened this issue Dec 19, 2022 · 7 comments

Comments

@ddodoo
Copy link

ddodoo commented Dec 19, 2022

I want to ask if there is any support for Linux Os, Ubuntu 22.04 machine

I installed the https://github.com/Azure/kubelogin/releases/download/v0.0.24/kubelogin-linux-amd64.zip release on Ubuntu OS, 22.04

I doesn't seem to work

@weinong

@weinong
Copy link
Contributor

weinong commented Dec 21, 2022

It seems to work for me. How did it not work for you?

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy

$ uname -a
Linux ubuntu2 5.15.0-1029-azure #36-Ubuntu SMP Mon Dec 5 19:31:08 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ ./kubelogin -h
login to azure active directory and populate kubeconfig with AAD tokens

Usage:
  kubelogin [flags]
  kubelogin [command]

Available Commands:
  completion         Generate the autocompletion script for the specified shell
  convert-kubeconfig convert kubeconfig to use exec auth module
  get-token          get AAD token
  help               Help about any command
  remove-tokens      Remove all cached tokens from filesystem

Flags:
  -h, --help          help for kubelogin
      --logtostderr   log to standard error instead of files (default true)
  -v, --v Level       number for the log level verbosity
      --version       version for kubelogin

Use "kubelogin [command] --help" for more information about a command.

$ ./kubelogin --version
kubelogin version
git hash: v0.0.24/bbb308d4255c4a29a17c9bec0f2f89586d084c42
Go version: go1.18.8
Build time: 2022-11-18T22:37:01Z
Platform: linux/amd64

@ddodoo
Copy link
Author

ddodoo commented Dec 21, 2022

Can you kindly outline how to run the installation?

I moved the kubelogin file to /usr/local/bin directory after unzipping the packaged zip file

When I type out kubelogin on my terminal, I have no response

@weinong

@weinong
Copy link
Contributor

weinong commented Dec 22, 2022

what does kubelogin -h show? running kubelogin alone yielding nothing is expected. though, there is definitely room to improve to return some useful message

@ddodoo
Copy link
Author

ddodoo commented Dec 22, 2022

Hello @weinong

kubelogin -h does work, thank you for your input

@dgroh
Copy link

dgroh commented Feb 24, 2023

How do I install it on linux?

@Tatsinnit
Copy link
Member

Tatsinnit commented Feb 26, 2023

💡Hiya, one way I can think of is to install via azure-cli route - https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt

fyi @weinong if this is not entirely correct, thank you so much 🙏❤️

@rtsisyk
Copy link

rtsisyk commented Mar 31, 2023

# Install `kubelogin` for AKS authentication
if [[ ! -f /usr/local/bin/kubelogin ]]; then
    curl -fsSLO https://github.com/Azure/kubelogin/releases/download/v0.0.28/kubelogin-linux-amd64.zip
    unzip -ojd /usr/local/bin kubelogin-linux-amd64.zip bin/linux_amd64/kubelogin
    rm -f kubelogin-linux-amd64.zip
    kubelogin --version
fi

torreymicrosoft added a commit to torreymicrosoft/kubelogin-issue-fix that referenced this issue Sep 26, 2023
Per email thread with weinong, proposing a PR to provide additional pathway to install kubelogin on Linux via https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-install-cli(). Providing suggested additional pathway, since asdf seems to encounter installation difficulty on Linux and with AKS.

This is also briefly discussed at the bottom of the issue Azure#173
weinong pushed a commit that referenced this issue Sep 26, 2023
Per email thread with weinong, proposing a PR to provide additional pathway to install kubelogin on Linux via https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-install-cli(). Providing suggested additional pathway, since asdf seems to encounter installation difficulty on Linux and with AKS.

This is also briefly discussed at the bottom of the issue #173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants