This message was deleted.
# azure
s
This message was deleted.
b
There are a few options. If it's an AKS cluster, you can pull out credentials with: https://www.pulumi.com/docs/reference/pkg/azure-native/containerservice/listmanagedclusteradmincredentials/
I'm also presuming you're using the kubernetes provider for the kubernetes stuff? If so, you should configure the provider specifically to go towards the cluster you just got the credentials for:
Copy code
const kubeConf = new azure-native.containerservice.listManagedClusterAdminCredentials({
  resourceGroupName: "yourRG",
  resourceName: "name-of-cluster"
});
const cluster = new k8s.Provider("clusterProvider", {
  kubeconfig: kubeConf.kubeconfigs
})
then when you do your k8s stuff later, you just add "cluster" as your provider
Copy code
const mysvc = k8s.core.v1.Service("myService",{
  name: "My-Service"
},{
  cluster
})
t
This C# example shows how to do that with Helm. You can use same approach to deploy k8s resources. https://github.com/pulumi/examples/tree/master/azure-cs-aks-helm
j
Thanks @tall-librarian-49374 and @better-shampoo-48884 really appreciate the advice super helpful. Cheers for you taking the time to help the newbie 🙂 🍻
t
Happy to help! Enjoy!