-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Sporadic kubelogin command not found #32313
Copy link
Copy link
Closed
Labels
AKSaz aks/acs/openshiftaz aks/acs/openshiftAuto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
AKSaz aks/acs/openshiftaz aks/acs/openshiftAuto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
We're getting sporadic
kubelogin: command not founderror on our self-hosted VMSS ADO build agents.kubeloginandkubectlare being installed withaz aks install-clicommand as part of the custom scripts on the agents.Most of our jobs have we set the kube context for kubectl with the following code and run kubectl and helm commands subsequently.
It used to work without any issues. But, in the recent past we have been encountering the following error -
Related command
Errors
Issue script & Debug output
NA
Expected behavior
kubelogin should be found to run set the kube config
Environment Summary
/usr/bin/az --version
azure-cli 2.78.0
core 2.78.0
telemetry 1.1.0
Extensions:
azure-devops 1.0.2
Dependencies:
msal 1.34.0b1
azure-mgmt-resource 23.3.0
Python location '/opt/az/bin/python3'
Config directory '/home/AzDevOps/.azure'
Extensions directory '/home/AzDevOps/.azure/cliextensions'
Python (Linux) 3.13.7 (main, Oct 9 2025, 05:49:51) [GCC 11.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response