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 error inside a container while trying to use managed identity #524

Open
RomanChaitanya opened this issue Sep 18, 2024 · 1 comment

Comments

@RomanChaitanya
Copy link

I am inside a pod of Cluster A
then I did
az login --identity --username xxxxx-xxx-xxx-xxxxx managed identity
az aks get-credentials --resource-group [Resource group Name] --name [ClusterB] --overwrite-existing
kubelogin convert-kubeconfig -l azurecli

Kubectl get namespaces

Error: failed to get token: expected an empty error but received: AzureCLICredential: ERROR: az: error: unrecognized arguments: --tenant 4b36e3d2-ce8b-409d-a538-f1da61732b5f
usage: az [-h] [--verbose] [--debug] [--output {json,jsonc,table,tsv,yaml}]
[--query JMESPATH]
{account} ...

Can someone please help

@weinong
Copy link
Contributor

weinong commented Oct 7, 2024

what image are you using?

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

2 participants