Fixup Azure-*-aks examples to exclude Addons as that's deprecated
Fixes:
MODIFY
azure-cs-aks/MyStack.cs
azure-cs-aks/MyStack.cs
@@ -53,10 +53,6 @@ class MyStack : Stack
var cluster = new ManagedCluster("my-aks", new ManagedClusterArgs
{
ResourceGroupName = resourceGroup.Name,
- AddonProfiles =
- {
- { "KubeDashboard", new ManagedClusterAddonProfileArgs { Enabled = true } }
- },
AgentPoolProfiles =
{
new ManagedClusterAgentPoolProfileArgs

MODIFY
azure-go-aks/main.go
azure-go-aks/main.go
@@ -88,6 +88,7 @@ func main() {
},
},
},
+ DnsPrefix: resourceGroup.Name,
ServicePrincipalProfile: &containerservice.ManagedClusterServicePrincipalProfileArgs{
ClientId: adApp.ApplicationId,
Secret: adSpPassword.Value,

MODIFY
azure-py-aks/__main__.py
azure-py-aks/__main__.py
@@ -37,11 +37,6 @@ if managed_cluster_name is None:
managed_cluster = containerservice.ManagedCluster(
managed_cluster_name,
resource_group_name=resource_group.name,
- addon_profiles={
- "KubeDashboard": {
- "enabled": True,
- },
- },
agent_pool_profiles=[{
"count": 3,
"max_pods": 110,
@@ -63,6 +58,7 @@ managed_cluster = containerservice.ManagedCluster(
}],
},
},
+ dns_prefix=resource_group.name,
node_resource_group=f"MC_azure-native-go_{managed_cluster_name}_westus",
service_principal_profile={
"client_id": ad_app.application_id,

MODIFY
azure-ts-aks/index.ts
azure-ts-aks/index.ts
@@ -42,11 +42,6 @@ const config = new pulumi.Config();
const managedClusterName = config.get("managedClusterName") || "azure-aks";
const cluster = new containerservice.ManagedCluster(managedClusterName, {
resourceGroupName: resourceGroup.name,
- addonProfiles: {
- KubeDashboard: {
- enabled: true,
- },
- },
agentPoolProfiles: [{
count: 3,
maxPods: 110,

Fixup Azure-*-aks examples to exclude Addons as that's deprecated (#984)

Fixes: #960