https://pulumi.com logo
#azure
Title
# azure
m

miniature-leather-70472

03/30/2023, 12:41 PM
Has anyone done any work around deploying resources to an AKS cluster that has local accounts disabled? How are you getting the credentials to connect to the cluster given you can't use the local admin?
b

best-quill-31250

03/31/2023, 12:29 AM
Copy code
pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
KUBECONFIG=./kubeconfig.yaml kubectl get nodes
r

rhythmic-optician-96353

04/01/2023, 7:52 AM
If I remember correctly we use az cli to login with sp and the new kubelogin plugin to get kubectl access. If we run this before pulumi, pulumi can use the default kubecontext on the machine. It is a chicken and egg problem, since you can't login unless the cluster is created.
You might be able to run the az login steps from the pulumi script to be sure that the cluster is up
3 Views