Skip to content

Commit

Permalink
example Microsoft Azure configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
wkusmirek committed Jan 3, 2022
1 parent d25887d commit e98b0e5
Show file tree
Hide file tree
Showing 4 changed files with 257 additions and 0 deletions.
24 changes: 24 additions & 0 deletions kubernetes/azure/example_cloud_configuration/agent_pools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"id": "/subscriptions/resourcegroups/test/providers/Microsoft.ContainerService/managedClusters/CNVind/agentPools/agentpool",
"name": "agentpool",
"type": "Microsoft.ContainerService/managedClusters/agentPools",
"properties": {
"count": 1,
"vmSize": "Standard_DS2_v2",
"osDiskSizeGB": 128,
"osDiskType": "Managed",
"maxPods": 110,
"type": "VirtualMachineScaleSets",
"maxCount": 6,
"minCount": 4,
"enableAutoScaling": true,
"provisioningState": "Succeeded",
"powerState": {
"code": "Running"
},
"orchestratorVersion": "1.20.9",
"mode": "System",
"osType": "Linux",
"nodeImageVersion": "AKSUbuntu-1804gen2containerd-2021.11.06"
}
}
120 changes: 120 additions & 0 deletions kubernetes/azure/example_cloud_configuration/kubernetes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"id": "/subscriptions/resourcegroups/test/providers/Microsoft.ContainerService/managedClusters/CNVind",
"location": "switzerlandnorth",
"name": "CNVind",
"type": "Microsoft.ContainerService/ManagedClusters",
"properties": {
"provisioningState": "Succeeded",
"powerState": {
"code": "Running"
},
"kubernetesVersion": "1.20.9",
"dnsPrefix": "CNVind-dns",
"fqdn": "cnvind-dns-2d8e565d.hcp.switzerlandnorth.azmk8s.io",
"agentPoolProfiles": [
{
"name": "agentpool",
"count": 1,
"vmSize": "Standard_DS2_v2",
"osDiskSizeGB": 128,
"osDiskType": "Managed",
"maxPods": 110,
"type": "VirtualMachineScaleSets",
"maxCount": 6,
"minCount": 4,
"enableAutoScaling": true,
"provisioningState": "Succeeded",
"powerState": {
"code": "Running"
},
"orchestratorVersion": "1.20.9",
"mode": "System",
"osType": "Linux",
"nodeImageVersion": "AKSUbuntu-1804gen2containerd-2021.11.06"
}
],
"servicePrincipalProfile": {
"clientId": "msi"
},
"addonProfiles": {
"azurepolicy": {
"enabled": false,
"config": null
},
"httpApplicationRouting": {
"enabled": false,
"config": null
},
"omsAgent": {
"enabled": true,
"config": {
"logAnalyticsWorkspaceResourceID": "/subscriptions/resourceGroups/DefaultResourceGroup-CHN/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-8260e0da-941c-41dc-a161-365edb53c575-CHN"
},
"identity": {
"resourceId": "/subscriptions/resourcegroups/MC_test_CNVind_switzerlandnorth/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-cnvind",
"clientId": "5f79ae4b-c153-4d25-ba69-3ddc8ec844f0",
"objectId": "b3cf6aca-cb4f-41ed-b248-1f9c664119e2"
}
}
},
"nodeResourceGroup": "MC_test_CNVind_switzerlandnorth",
"enableRBAC": true,
"networkProfile": {
"networkPlugin": "kubenet",
"loadBalancerSku": "Standard",
"loadBalancerProfile": {
"managedOutboundIPs": {
"count": 1
},
"effectiveOutboundIPs": [
{
"id": "/subscriptions/resourceGroups/MC_test_CNVind_switzerlandnorth/providers/Microsoft.Network/publicIPAddresses/6e5514e0-d3d2-4759-91b6-920de22e0b26"
}
]
},
"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"
},
"maxAgentPools": 100,
"apiServerAccessProfile": {
"enablePrivateCluster": false
},
"identityProfile": {
"kubeletidentity": {
"resourceId": "/subscriptions/resourcegroups/MC_test_CNVind_switzerlandnorth/providers/Microsoft.ManagedIdentity/userAssignedIdentities/CNVind-agentpool",
"clientId": "4b7e5da2-7cea-49b2-9600-1c706e624d48",
"objectId": "d92e6b0e-d822-4023-b113-dc84b1494f46"
}
},
"autoScalerProfile": {
"balance-similar-node-groups": "false",
"expander": "random",
"max-empty-bulk-delete": "10",
"max-graceful-termination-sec": "600",
"max-total-unready-percentage": "45",
"new-pod-scale-up-delay": "0s",
"ok-total-unready-count": "3",
"scale-down-delay-after-add": "10m",
"scale-down-delay-after-delete": "10s",
"scale-down-delay-after-failure": "3m",
"scale-down-unneeded-time": "10m",
"scale-down-unready-time": "20m",
"scale-down-utilization-threshold": "0.5",
"scan-interval": "10s",
"skip-nodes-with-local-storage": "false",
"skip-nodes-with-system-pods": "true"
}
},
"identity": {
"type": "SystemAssigned",
"principalId": "6b970dc3-b04c-4d89-9ef8-bd9109c661cf",
"tenantId": "3b50229c-cd78-4588-9bcf-97b7629e2f0f"
},
"sku": {
"name": "Basic",
"tier": "Free"
}
}
64 changes: 64 additions & 0 deletions kubernetes/azure/example_cloud_configuration/load_balancer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "kubernetes",
"id": "/subscriptions/resourceGroups/MC_test_CNVind_switzerlandnorth/providers/Microsoft.Network/loadBalancers/kubernetes",
"etag": "W/\"2fc4af9e-83ef-46e9-b112-7d8ad5c075ba\"",
"type": "Microsoft.Network/loadBalancers",
"location": "switzerlandnorth",
"tags": {},
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "99546798-44e5-45c8-8028-bfd372bd3f5b",
"frontendIPConfigurations": [
{
"name": "6e5514e0-d3d2-4759-91b6-920de22e0b26",
"id": "/subscriptions/resourceGroups/MC_test_CNVind_switzerlandnorth/providers/Microsoft.Network/loadBalancers/kubernetes/frontendIPConfigurations/6e5514e0-d3d2-4759-91b6-920de22e0b26",
"etag": "W/\"2fc4af9e-83ef-46e9-b112-7d8ad5c075ba\"",
"type": "Microsoft.Network/loadBalancers/frontendIPConfigurations",
"properties": {
"provisioningState": "Succeeded",
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "/subscriptions/resourceGroups/MC_test_CNVind_switzerlandnorth/providers/Microsoft.Network/publicIPAddresses/6e5514e0-d3d2-4759-91b6-920de22e0b26"
}
}
}
],
"backendAddressPools": [
{
"name": "aksOutboundBackendPool",
"id": "/subscriptions/resourceGroups/MC_test_CNVind_switzerlandnorth/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/aksOutboundBackendPool",
"etag": "W/\"2fc4af9e-83ef-46e9-b112-7d8ad5c075ba\"",
"properties": {
"provisioningState": "Succeeded",
"backendIPConfigurations": [
{
"id": "/subscriptions/resourceGroups/MC_test_CNVind_switzerlandnorth/providers/Microsoft.Compute/virtualMachineScaleSets/aks-agentpool-17503143-vmss/virtualMachines/0/networkInterfaces/aks-agentpool-17503143-vmss/ipConfigurations/ipconfig1"
}
]
},
"type": "Microsoft.Network/loadBalancers/backendAddressPools"
},
{
"name": "kubernetes",
"id": "/subscriptions/resourceGroups/MC_test_CNVind_switzerlandnorth/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/kubernetes",
"etag": "W/\"2fc4af9e-83ef-46e9-b112-7d8ad5c075ba\"",
"properties": {
"provisioningState": "Succeeded",
"backendIPConfigurations": [
{
"id": "/subscriptions/resourceGroups/MC_test_CNVind_switzerlandnorth/providers/Microsoft.Compute/virtualMachineScaleSets/aks-agentpool-17503143-vmss/virtualMachines/0/networkInterfaces/aks-agentpool-17503143-vmss/ipConfigurations/ipconfig1"
}
]
},
"type": "Microsoft.Network/loadBalancers/backendAddressPools"
}
],
"loadBalancingRules": [],
"probes": [],
"inboundNatRules": [],
"inboundNatPools": []
},
"sku": {
"name": "Standard"
}
}
49 changes: 49 additions & 0 deletions kubernetes/azure/example_cloud_configuration/storage_account.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "StorageV2",
"id": "/subscriptions/resourceGroups/mc_test_cnvind_switzerlandnorth/providers/Microsoft.Storage/storageAccounts/ff2e9eb9395b74438968bb4",
"name": "ff2e9eb9395b74438968bb4",
"type": "Microsoft.Storage/storageAccounts",
"location": "switzerlandnorth",
"tags": {
"created-by": "azure"
},
"properties": {
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"enabled": true,
"lastEnabledTime": "2021-12-06T11:12:49.2052503Z"
},
"blob": {
"enabled": true,
"lastEnabledTime": "2021-12-06T11:12:49.2052503Z"
}
},
"keySource": "Microsoft.Storage"
},
"accessTier": "Hot",
"provisioningState": "Succeeded",
"creationTime": "2021-12-06T11:12:49.1427187Z",
"primaryEndpoints": {
"dfs": "https://ff2e9eb9395b74438968bb4.dfs.core.windows.net/",
"web": "https://ff2e9eb9395b74438968bb4.z1.web.core.windows.net/",
"blob": "https://ff2e9eb9395b74438968bb4.blob.core.windows.net/",
"queue": "https://ff2e9eb9395b74438968bb4.queue.core.windows.net/",
"table": "https://ff2e9eb9395b74438968bb4.table.core.windows.net/",
"file": "https://ff2e9eb9395b74438968bb4.file.core.windows.net/"
},
"primaryLocation": "switzerlandnorth",
"statusOfPrimary": "available"
}
}

0 comments on commit e98b0e5

Please sign in to comment.