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

Feature Request: Add kubelogin for AKS authentication with Azure AD #19

Open
phamhongviet opened this issue Sep 11, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@phamhongviet
Copy link

For our official CircleCI Docker Convenience Image support policy, please see CircleCI docs.

This policy outlines the release, update, and deprecation policy for CircleCI Docker Convenience Images.


Describe the Feature Request
Add kubelogin to this docker image.

Is your feature request related to a particular problem?
AKS authentication using Azure AD require to have kubelogin installed: https://azure.github.io/kubelogin/index.html

How will this feature request benefit CircleCI jobs using this image?
Reduce execution time and complexity of config.yml file by having kubelogin pre-installed.

Describe the solution you would like to see
I like to see kubelogin installed by default in the image.

Describe alternatives you have considered
In config.yml file, before getting kube config for AKS, I use this script to install kubelogin:

wget https://github.com/Azure/kubelogin/releases/download/"$VERSION"/kubelogin-"$PLATFORM".zip
unzip kubelogin-"$PLATFORM".zip
[ -w /usr/local/bin ] && SUDO="" || SUDO=sudo
$SUDO find bin -name kubelogin -exec mv {} /usr/local/bin/kubelogin \;
kubelogin --version

After getting kube config, I run this script to patch it, enabling using kubelogin:

sed -i -e 's/devicecode/azurecli/g' "$HOME/.kube/config"

An alternative is to add these commands to azure-aks orb.

@phamhongviet phamhongviet added the enhancement New feature or request label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant