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 binary not included in Docker image for AKS Cluster with Azure AD RBAC #49

Open
kylelee24 opened this issue Jan 26, 2023 · 0 comments

Comments

@kylelee24
Copy link

When you connect to an Azure Kubernetes Service (AKS) cluster through Azure CLI using az aks get-credentials, the ~/.kube/config file will use kubelogin in the command resulting in the following error:

$ ./k8sviz.sh
Unable to find image 'mkimuram/k8sviz:0.3.4' locally
0.3.4: Pulling from mkimuram/k8sviz
e95f33c60a64: Pull complete
088e93cd104e: Pull complete
958b7c45c0e1: Pull complete
dc0b27e2e540: Pull complete
Digest: sha256:abe3a75529e31d5e1d4065fb3d7f98d8329e6db583cb4e2e2e9eb25be691b797
Status: Downloaded newer image for mkimuram/k8sviz:0.3.4
Failed to get namespace "default": Get "https://aks-my-cluster-dns-68fac263.hcp.eastus.azmk8s.io:443/api/v1/namespaces/default": getting credentials: exec: executable kubelogin not found

NOTE: This behaviour is the same when using kubectl.

I ended up just downloading kubelogin locally and then updating the Dockerfile and added it to the image and PATH. The code is not worth sharing.

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

1 participant