Home Gitesh Portfolio Blog About Me Gallery Contact

Lens: Missing KubeLogin client-go-credential-plugins

If you are using containers for Sitecore you would have used Lens for connecting to AKS (Azure kubernetes Service). With the latest version of Lens & latest version of AKS (1.24+), it will break and show you and error "It looks like you are trying to use a client-go credential plugin that is not installled."

Error:


 

Solution:

Install Kubelogin from here: https://github.com/Azure/kubelogin
You can just run the below commands from powershell, make sure you Close and Open Lens after running the below PS scripts.:

az aks install-cli $targetDir="$env:USERPROFILE\.azure-kubelogin" $oldPath = [System.Environment]::GetEnvironmentVariable("Path","User") $oldPathArray=($oldPath) -split ";" if(-Not($oldPathArray -Contains "$targetDir")) { write-host "Permanently adding $targetDir to User Path" $newPath = "$oldPath;$targetDir" -replace ";+", ";" [System.Environment]::SetEnvironmentVariable("Path",$newPath,"User") $env:Path = [System.Environment]::GetEnvironmentVariable("Path","User"),[System.Environment]::GetEnvironmentVariable("Path","Machine") -join ";" }

OR

winget install --id=Kubernetes.kubectl  -e
winget install --id=Microsoft.Azure.Kubelogin  -e
Posted: 16/03/2023 5:19:26 p.m. by Gitesh Shah | with 0 comments