This message was deleted.
# general
s
This message was deleted.
b
hey! can you share a snippet of the code you're using to create the cluster?
c
Hi. Thanks for responding.
Copy code
aciConnectorArgs := containerservice.KubernetesClusterAddonProfileAciConnectorLinuxArgs{
			Enabled:    pulumi.Bool(true),
			SubnetName: vNodeSubnet.Name,
		}

		aciConnectorPtrInput := containerservice.KubernetesClusterAddonProfileAciConnectorLinuxPtr(&aciConnectorArgs)

		profileArgs := containerservice.KubernetesClusterAddonProfileArgs{
			AciConnectorLinux: aciConnectorPtrInput,
		}

		// Allocate an AKS cluster.
		clusterArgs := containerservice.KubernetesClusterArgs{
			ResourceGroupName:      resourceGroup.Name,
			DefaultNodePool:        defaultNodePoolArgs,
			DnsPrefix:              pulumi.String(fmt.Sprintf("cia-%s", ctx.Stack())),
			LinuxProfile:           linuxProfileArgs,
			ServicePrincipal:       spArgs,
			KubernetesVersion:      pulumi.String(kubernetesVersion),
			RoleBasedAccessControl: roleArgs,
			NetworkProfile:         networkArgs,
			AddonProfile:           profileArgs,
		}
		cluster, err := containerservice.NewKubernetesCluster(ctx, clusterName, &clusterArgs,
			pulumi.DependsOn([]pulumi.Resource{vnet, vNodeSubnet}))
I’m really new to pulumi so I’m sure I’ve made a fundamental mistake here.
a
I am new as well but -- do you get any weird errors when running
pulumi preview
?
c
No, no errors. All seems to execute perfectly - but when I check the cluster with kubectl get nodes I do not see the virtual node listed.
Seems like it’s missing a stage - it doesn’t seem to execute the az aks enable-addons for the virtual node
If I have time I might go deep diving into the golang code for the kubernetes cluster pulumi stuff.
Maybe this is a bug and I should create a pull request if it’s open to any user to contribute.
I just dumped out the aks details using az cli and can see the addon is there, and I'm unable to enable it again using the cli, so I guess it's there - but I expected to be able to see a new node in my cluster:
Copy code
"addonProfiles": {
    "KubeDashboard": {
      "config": null,
      "enabled": false,
      "identity": null
    },
    "aciConnectorLinux": {
      "config": {
        "SubnetName": "ciaVNodeSubNet"
      },
      "enabled": true,
      "identity": null
    }
  }
i just cant make it work - so i'm going to run the aci addon azure cli command either manually once pulumi executes or figure out how to run az using pulumi sdk cmd api