Hi Team,
We have a kubelogin enabled AKS and after downloading the config file when we try to execute kubectl get ns command.
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- get-token
- --login
- devicecode
per above it forces to authenticate device via a code.
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code GLHKGGU9X to authenticate.
At this step, it picks up CLIENT ID from env variable "AZURE_CLIENT_ID" instead of taking up the value for Config file. Due to this we faced lots of trouble in logging in to k8 cluster, please let me know if any questions.
MSFT support team helped fix the issue by removing the env variable, however I was advised to raise this ticket to get this fixed.
Hi Team,
We have a kubelogin enabled AKS and after downloading the config file when we try to execute kubectl get ns command.
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- get-token
- --login
- devicecode
per above it forces to authenticate device via a code.
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code GLHKGGU9X to authenticate.
At this step, it picks up CLIENT ID from env variable "AZURE_CLIENT_ID" instead of taking up the value for Config file. Due to this we faced lots of trouble in logging in to k8 cluster, please let me know if any questions.
MSFT support team helped fix the issue by removing the env variable, however I was advised to raise this ticket to get this fixed.