-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebased from main to dev branch (#17081)
- Loading branch information
Tong Chen
authored
Dec 15, 2021
1 parent
29ab2d7
commit ac1a400
Showing
3 changed files
with
320 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
...crosoft.ContainerService/preview/2021-11-01-preview/examples/AgentPoolsAssociate_CRG.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-01-preview", | ||
"subscriptionId": "subid1", | ||
"resourceGroupName": "rg1", | ||
"resourceName": "clustername1", | ||
"agentPoolName": "agentpool1", | ||
"parameters": { | ||
"properties": { | ||
"orchestratorVersion": "", | ||
"count": 3, | ||
"vmSize": "Standard_DS2_v2", | ||
"osType": "Linux", | ||
"capacityReservationGroupID": "/subscriptions/subid1/resourcegroups/rg1/providers//Microsoft.Compute/CapacityReservationGroups/crg1" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1", | ||
"type": "Microsoft.ContainerService/managedClusters/agentPools", | ||
"name": "agentpool1", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"orchestratorVersion": "1.9.6", | ||
"count": 3, | ||
"vmSize": "Standard_DS2_v2", | ||
"maxPods": 110, | ||
"osType": "Linux", | ||
"capacityReservationGroupID": "/subscriptions/subid1/resourcegroups/rg1/providers//Microsoft.Compute/CapacityReservationGroups/crg1" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1", | ||
"type": "Microsoft.ContainerService/managedClusters/agentPools", | ||
"name": "agentpool1", | ||
"properties": { | ||
"provisioningState": "Creating", | ||
"orchestratorVersion": "1.9.6", | ||
"count": 3, | ||
"vmSize": "Standard_DS2_v2", | ||
"maxPods": 110, | ||
"osType": "Linux", | ||
"capacityReservationGroupID": "/subscriptions/subid1/resourcegroups/rg1/providers//Microsoft.Compute/CapacityReservationGroups/crg1" | ||
} | ||
} | ||
} | ||
} | ||
} |
254 changes: 254 additions & 0 deletions
254
...ft.ContainerService/preview/2021-11-01-preview/examples/ManagedClustersAssociate_CRG.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,254 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-11-01-preview", | ||
"subscriptionId": "subid1", | ||
"resourceGroupName": "rg1", | ||
"resourceName": "clustername1", | ||
"parameters": { | ||
"location": "location1", | ||
"tags": { | ||
"tier": "production", | ||
"archv2": "" | ||
}, | ||
"sku": { | ||
"name": "Basic", | ||
"tier": "Free" | ||
}, | ||
"properties": { | ||
"kubernetesVersion": "", | ||
"dnsPrefix": "dnsprefix1", | ||
"agentPoolProfiles": [ | ||
{ | ||
"name": "nodepool1", | ||
"count": 3, | ||
"vmSize": "Standard_DS2_v2", | ||
"osType": "Linux", | ||
"type": "VirtualMachineScaleSets", | ||
"enableNodePublicIP": true, | ||
"mode": "System", | ||
"capacityReservationGroupID": "/subscriptions/subid1/resourcegroups/rg1/providers//Microsoft.Compute/capacityReservationGroups/crg1" | ||
} | ||
], | ||
"linuxProfile": { | ||
"adminUsername": "azureuser", | ||
"ssh": { | ||
"publicKeys": [ | ||
{ | ||
"keyData": "keydata" | ||
} | ||
] | ||
} | ||
}, | ||
"networkProfile": { | ||
"loadBalancerSku": "standard", | ||
"outboundType": "loadBalancer", | ||
"loadBalancerProfile": { | ||
"managedOutboundIPs": { | ||
"count": 2 | ||
} | ||
} | ||
}, | ||
"autoScalerProfile": { | ||
"scan-interval": "20s", | ||
"scale-down-delay-after-add": "15m" | ||
}, | ||
"windowsProfile": { | ||
"adminUsername": "azureuser", | ||
"adminPassword": "replacePassword1234$" | ||
}, | ||
"servicePrincipalProfile": { | ||
"clientId": "clientid", | ||
"secret": "secret" | ||
}, | ||
"addonProfiles": {}, | ||
"enableRBAC": true, | ||
"diskEncryptionSetID": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des", | ||
"enablePodSecurityPolicy": true | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1", | ||
"location": "location1", | ||
"name": "clustername1", | ||
"tags": { | ||
"archv2": "", | ||
"tier": "production" | ||
}, | ||
"type": "Microsoft.ContainerService/ManagedClusters", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"maxAgentPools": 1, | ||
"kubernetesVersion": "1.9.6", | ||
"dnsPrefix": "dnsprefix1", | ||
"agentPoolProfiles": [ | ||
{ | ||
"name": "nodepool1", | ||
"count": 3, | ||
"vmSize": "Standard_DS2_v2", | ||
"maxPods": 110, | ||
"osType": "Linux", | ||
"provisioningState": "Succeeded", | ||
"orchestratorVersion": "1.9.6", | ||
"type": "VirtualMachineScaleSets", | ||
"enableNodePublicIP": true, | ||
"mode": "System", | ||
"nodeImageVersion": "AKSUbuntu:1604:2020.03.11", | ||
"capacityReservationGroupID": "/subscriptions/subid1/resourcegroups/rg1/providers//Microsoft.Compute/capacityReservationGroups/crg1" | ||
} | ||
], | ||
"linuxProfile": { | ||
"adminUsername": "azureuser", | ||
"ssh": { | ||
"publicKeys": [ | ||
{ | ||
"keyData": "keydata" | ||
} | ||
] | ||
} | ||
}, | ||
"windowsProfile": { | ||
"adminUsername": "azureuser" | ||
}, | ||
"servicePrincipalProfile": { | ||
"clientId": "clientid" | ||
}, | ||
"nodeResourceGroup": "MC_rg1_clustername1_location1", | ||
"enableRBAC": true, | ||
"diskEncryptionSetID": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des", | ||
"enablePodSecurityPolicy": true, | ||
"fqdn": "dnsprefix1-abcd1234.hcp.eastus.azmk8s.io", | ||
"networkProfile": { | ||
"loadBalancerSku": "basic", | ||
"networkPlugin": "kubenet", | ||
"podCidr": "10.244.0.0/16", | ||
"serviceCidr": "10.0.0.0/16", | ||
"dnsServiceIP": "10.0.0.10", | ||
"dockerBridgeCidr": "172.17.0.1/16", | ||
"outboundType": "loadBalancer", | ||
"podCidrs": [ | ||
"10.244.0.0/16" | ||
], | ||
"serviceCidrs": [ | ||
"10.0.0.0/16" | ||
], | ||
"ipFamilies": [ | ||
"IPv4" | ||
], | ||
"loadBalancerProfile": { | ||
"allocatedOutboundPorts": 2000, | ||
"idleTimeoutInMinutes": 10, | ||
"managedOutboundIPs": { | ||
"count": 2 | ||
}, | ||
"effectiveOutboundIPs": [ | ||
{ | ||
"id": "/subscriptions/subid1/resourceGroups/MC_rg1/providers/Microsoft.Network/publicIPAddresses/mgdoutboundip1" | ||
}, | ||
{ | ||
"id": "/subscriptions/subid1/resourceGroups/MC_rg1/providers/Microsoft.Network/publicIPAddresses/mgdoutboundip2" | ||
} | ||
] | ||
} | ||
}, | ||
"autoScalerProfile": { | ||
"scan-interval": "20s", | ||
"scale-down-delay-after-add": "15m" | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1", | ||
"location": "location1", | ||
"name": "clustername1", | ||
"tags": { | ||
"archv2": "", | ||
"tier": "production" | ||
}, | ||
"type": "Microsoft.ContainerService/ManagedClusters", | ||
"properties": { | ||
"provisioningState": "Creating", | ||
"maxAgentPools": 1, | ||
"kubernetesVersion": "1.9.6", | ||
"dnsPrefix": "dnsprefix1", | ||
"agentPoolProfiles": [ | ||
{ | ||
"name": "nodepool1", | ||
"count": 3, | ||
"vmSize": "Standard_DS2_v2", | ||
"maxPods": 110, | ||
"osType": "Linux", | ||
"provisioningState": "Creating", | ||
"orchestratorVersion": "1.9.6", | ||
"type": "VirtualMachineScaleSets", | ||
"enableNodePublicIP": true, | ||
"mode": "System", | ||
"proximityPlacementGroupID": "/subscriptions/subid1/resourcegroups/rg1/providers//Microsoft.Compute/proximityPlacementGroups/ppg1" | ||
} | ||
], | ||
"linuxProfile": { | ||
"adminUsername": "azureuser", | ||
"ssh": { | ||
"publicKeys": [ | ||
{ | ||
"keyData": "keydata" | ||
} | ||
] | ||
} | ||
}, | ||
"windowsProfile": { | ||
"adminUsername": "azureuser" | ||
}, | ||
"servicePrincipalProfile": { | ||
"clientId": "clientid" | ||
}, | ||
"nodeResourceGroup": "MC_rg1_clustername1_location1", | ||
"enableRBAC": true, | ||
"diskEncryptionSetID": "/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des", | ||
"enablePodSecurityPolicy": true, | ||
"networkProfile": { | ||
"networkPlugin": "kubenet", | ||
"podCidr": "10.244.0.0/16", | ||
"serviceCidr": "10.0.0.0/16", | ||
"dnsServiceIP": "10.0.0.10", | ||
"dockerBridgeCidr": "172.17.0.1/16", | ||
"loadBalancerSku": "standard", | ||
"outboundType": "loadBalancer", | ||
"podCidrs": [ | ||
"10.244.0.0/16" | ||
], | ||
"serviceCidrs": [ | ||
"10.0.0.0/16" | ||
], | ||
"ipFamilies": [ | ||
"IPv4" | ||
], | ||
"loadBalancerProfile": { | ||
"allocatedOutboundPorts": 2000, | ||
"idleTimeoutInMinutes": 10, | ||
"managedOutboundIPs": { | ||
"count": 2 | ||
}, | ||
"effectiveOutboundIPs": [ | ||
{ | ||
"id": "/subscriptions/subid1/resourceGroups/MC_rg1/providers/Microsoft.Network/publicIPAddresses/mgdoutboundip1" | ||
}, | ||
{ | ||
"id": "/subscriptions/subid1/resourceGroups/MC_rg1/providers/Microsoft.Network/publicIPAddresses/mgdoutboundip2" | ||
} | ||
] | ||
} | ||
}, | ||
"autoScalerProfile": { | ||
"scan-interval": "20s", | ||
"scale-down-delay-after-add": "15m" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters