AKS access issue

Niren Adhikary (NAD) 146 Reputation points
2022-11-28T08:49:33.13+00:00

Hi All,

We are trying to limit user access to particular namespace in AKS . To achieve this we have assigned user the following permission.

  1. Azure Kubernetes Service Cluster User Role - To list credential or run kubectl command
  2. Azure Kubernetes Service RBAC Writer Role on the created namespace- This is to allow deployment.

But we are now getting below error message - Please suggest

PS C:\Users\abc> kubectl get pods -n namespacename
Unable to connect to the server: getting credentials: exec: executable kubelogin not found

It looks like you are trying to use a client-go credential plugin that is not installed.

To learn more about this feature, consult the documentation available at:
https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,866 questions
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Deole, Pushkar (Pushkar) 60 Reputation points
    2023-03-27T11:28:52.7366667+00:00

    @vipullag-MSFT i tried to follow the document you posted above Ref: https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-install-cli and ran the command az aks install-cli, however it is only installing kubectl.exe and not installing kubelogin.exe

    Please advise.

    0 comments No comments