creamy-fall-88031
03/25/2022, 5:16 PMinterface ManagedClusterLoadBalancerProfileOutboundIPsArgs {
/**
* A list of public IP resources.
*/
publicIPs?: pulumi.Input<pulumi.Input<inputs.containerservice.ResourceReferenceArgs>[]>;
so... publicIPs: what_exactly
??
The following is clearly not correct:
{
publicIPs: ipresource.id
}
witty-candle-66007
03/25/2022, 5:20 PMpublicIPs: [ipresource.id]
creamy-fall-88031
03/25/2022, 5:20 PMaz aks update \
--resource-group myResourceGroup \
--name myAKSCluster \
--load-balancer-outbound-ips <publicIpId1>,<publicIpId2>
i'm confused.witty-candle-66007
03/25/2022, 5:42 PMcreamy-fall-88031
03/25/2022, 6:05 PMconst cluster = new containerservice.ManagedCluster(managedClusterName, {
resourceGroupName: resourceGroup.name,
resourceName: `aks-${environmentLabel}`,
agentPoolProfiles: [{
count: 2,
maxPods: 110,
mode: "System",
name: "agentpool",
nodeLabels: {},
osDiskSizeGB: 30,
osType: "Linux",
type: "VirtualMachineScaleSets",
vmSize: "Standard_B2s",
vnetSubnetID: aksSubnet.id,
}],
dnsPrefix: resourceGroup.name,
enableRBAC: true,
kubernetesVersion: "1.23.3",
linuxProfile: {
adminUsername: "testuser",
ssh: {
publicKeys: [{
keyData: sshKey.publicKeyOpenssh,
}],
},
},
networkProfile: {
networkPlugin: "azure",
serviceCidr: "10.10.0.0/24",
dnsServiceIP: "10.10.0.10",
dockerBridgeCidr: "172.17.0.1/16",
loadBalancerProfile: {
outboundIPs: {
publicIPs: publicStaticIPAddress.id
},
},
},
// nodeResourceGroup: `MC_azure-go_${managedClusterName}`,
nodeResourceGroup: `mc_${managedClusterName}`,
servicePrincipalProfile: {
clientId: adApp.applicationId,
secret: adSpPassword.value,
},
},
witty-candle-66007
03/25/2022, 6:12 PMpublicStaticIpAddress
declared elsewhere as a PublicIpAddress
via https://www.pulumi.com/registry/packages/azure-native/api-docs/network/publicipaddress/#creamy-fall-88031
03/25/2022, 6:17 PMwitty-candle-66007
03/25/2022, 6:32 PMpublicIPs: [<azure_native.types.input.containerservice.ResourceReferenceArgs>publicStaticIPAddress.id]
pulumi up
pulumi up
is throwing an error …publicIPs: [<azure_native.types.input.containerservice.ResourceReferenceArgs>{id: publicIPAddress.id}]
Note the object {id: publicIpAddress.id}
(and note resource names are different)creamy-fall-88031
03/25/2022, 6:50 PMpublicIPs: {
id: publicIPAddress.id
}
publicIpAddress
is just a name for the constructor, you can name it however you want to...witty-candle-66007
03/25/2022, 6:54 PMloadBalancerProfile: {
outboundIPs: {
publicIPs: [{id: publicStaticIPAddress.id}]
},
},
},
{id: IPADDRESS_ID}
creamy-fall-88031
03/25/2022, 6:55 PMwitty-candle-66007
03/25/2022, 6:56 PMcreamy-fall-88031
03/25/2022, 6:59 PMwitty-candle-66007
03/25/2022, 7:01 PMcreamy-fall-88031
03/25/2022, 7:10 PM