https://pulumi.com logo
#general
Title
# general
s

swift-island-2275

09/26/2021, 6:18 PM
Hi, I've a question regarding creation of Azure Kubernetes Services (AKS). I am able to create a cluster, however what I'd like to do next, is configure ClusterRoleBinding. The problem I face is that according to the documentation, I need to set the correct k8s context. How can I set the context of newly created AKS cluster ? Can I do it somehow in code just after the AKS cluster has been created ?
f

famous-leather-94346

09/26/2021, 6:49 PM
Hi, I successfully followed a tutorial https://www.pulumi.com/docs/tutorials/kubernetes/aks/ Finally, you can use newly created kubernetes provider (in the tutorial it is called
custom_provider
) to create k8s resources in the cluster (you have to pass it via opts argument).
s

swift-island-2275

09/26/2021, 6:59 PM
Thanks, I will give it a try.