pulumi.azure changed the AKS API
Without this change, the AKS cluster will always try and recreate
MODIFY
azure-cs-aks/Azure.AKS.csproj
azure-cs-aks/Azure.AKS.csproj
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Pulumi.Azure" Version="1.4.0-preview" />
+ <PackageReference Include="Pulumi.Azure" Version="1.5.0-preview" />
<PackageReference Include="Pulumi.Azuread" Version="1.1.0-preview" />
<PackageReference Include="Pulumi.Random" Version="1.2.0-preview" />
<PackageReference Include="Pulumi.Tls" Version="1.1.0-preview" />

MODIFY
azure-cs-aks/Program.cs
azure-cs-aks/Program.cs
@@ -60,17 +60,13 @@ class Program
var cluster = new KubernetesCluster("aksCluster", new KubernetesClusterArgs
{
ResourceGroupName = resourceGroup.Name,
- AgentPoolProfiles =
- {
- new KubernetesClusterAgentPoolProfilesArgs
+ DefaultNodePool = new KubernetesClusterDefaultNodePoolArgs
{
Name = "aksagentpool",
- Count = 3,
+ NodeCount = 3,
VmSize = "Standard_B2s",
- OsType = "Linux",
OsDiskSizeGb = 30,
VnetSubnetId = subnet.Id,
- }
},
DnsPrefix = "sampleaks",
LinuxProfile = new KubernetesClusterLinuxProfileArgs

MODIFY
azure-py-aks-multicluster/__main__.py
azure-py-aks-multicluster/__main__.py
@@ -44,11 +44,11 @@ for config in aks_cluster_config:
"client_secret": ad_sp_password.value
},
location=config["location"],
- agent_pool_profiles=[{
+ default_node_pool={
"name": "aksagentpool",
- "count": config["node_count"],
+ "node_count": config["node_count"],
"vm_size": config["node_size"],
- }],
+ },
dns_prefix="sample-kube",
)
cluster_names.append(cluster.name)

MODIFY
azure-py-aks/__main__.py
azure-py-aks/__main__.py
@@ -42,13 +42,11 @@ aks = KubernetesCluster(
dns_prefix="dns",
linux_profile={"adminUsername": "aksuser", "ssh_key": {"keyData": SSHKEY}},
service_principal={"client_id": app.application_id, "client_secret": sppwd.value},
- agent_pool_profiles=[
- {
+ default_node_pool={
"name": "type1",
- "count": 2,
- "vmSize": "Standard_B2ms",
- }
- ],
+ "node_count": 2,
+ "vm_size": "Standard_B2ms",
+ },
)
k8s_provider = Provider(

MODIFY
azure-ts-aks-helm/cluster.ts
azure-ts-aks-helm/cluster.ts
@@ -19,11 +19,11 @@ const adSpPassword = new azuread.ServicePrincipalPassword("aksSpPassword", {
export const k8sCluster = new azure.containerservice.KubernetesCluster("aksCluster", {
resourceGroupName: config.resourceGroup.name,
location: config.location,
- agentPoolProfiles: [{
+ defaultNodePool: {
name: "aksagentpool",
- count: config.nodeCount,
+ nodeCount: config.nodeCount,
vmSize: config.nodeSize,
- }],
+ },
dnsPrefix: `${pulumi.getStack()}-kube`,
linuxProfile: {
adminUsername: "aksuser",

MODIFY
azure-ts-aks-keda/cluster.ts
azure-ts-aks-keda/cluster.ts
@@ -59,14 +59,13 @@ export class AksCluster extends pulumi.ComponentResource {
// Now allocate an AKS cluster.
this.cluster = new azure.containerservice.KubernetesCluster("aksCluster", {
resourceGroupName: args.resourceGroupName,
- agentPoolProfiles: [{
+ defaultNodePool: {
name: "aksagentpool",
- count: args.vmCount,
+ nodeCount: args.vmCount,
vmSize: args.vmSize,
- osType: "Linux",
osDiskSizeGb: 30,
vnetSubnetId: subnet.id,
- }],
+ },
dnsPrefix: name,
linuxProfile: {
adminUsername: "aksuser",

MODIFY
azure-ts-aks-mean/cluster.ts
azure-ts-aks-mean/cluster.ts
@@ -19,11 +19,11 @@ const adSpPassword = new azuread.ServicePrincipalPassword("aksSpPassword", {
export const k8sCluster = new azure.containerservice.KubernetesCluster("aksCluster", {
resourceGroupName: config.resourceGroup.name,
location: config.location,
- agentPoolProfiles: [{
+ defaultNodePool: {
name: "aksagentpool",
- count: config.nodeCount,
+ nodeCount: config.nodeCount,
vmSize: config.nodeSize,
- }],
+ },
dnsPrefix: `${pulumi.getStack()}-kube`,
linuxProfile: {
adminUsername: "aksuser",

pulumi.azure changed the AKS API (#487)

Without this change, the AKS cluster will always try and recreate