From e98b0e5912fb666f6f70b651c366cdef1b3aaf36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Ku=C5=9Bmirek?= Date: Mon, 3 Jan 2022 17:42:56 +0100 Subject: [PATCH] example Microsoft Azure configuration --- .../agent_pools.json | 24 ++++ .../kubernetes.json | 120 ++++++++++++++++++ .../load_balancer.json | 64 ++++++++++ .../storage_account.json | 49 +++++++ 4 files changed, 257 insertions(+) create mode 100644 kubernetes/azure/example_cloud_configuration/agent_pools.json create mode 100644 kubernetes/azure/example_cloud_configuration/kubernetes.json create mode 100644 kubernetes/azure/example_cloud_configuration/load_balancer.json create mode 100644 kubernetes/azure/example_cloud_configuration/storage_account.json diff --git a/kubernetes/azure/example_cloud_configuration/agent_pools.json b/kubernetes/azure/example_cloud_configuration/agent_pools.json new file mode 100644 index 0000000..3dfbcd2 --- /dev/null +++ b/kubernetes/azure/example_cloud_configuration/agent_pools.json @@ -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" + } +} diff --git a/kubernetes/azure/example_cloud_configuration/kubernetes.json b/kubernetes/azure/example_cloud_configuration/kubernetes.json new file mode 100644 index 0000000..160974e --- /dev/null +++ b/kubernetes/azure/example_cloud_configuration/kubernetes.json @@ -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" + } +} diff --git a/kubernetes/azure/example_cloud_configuration/load_balancer.json b/kubernetes/azure/example_cloud_configuration/load_balancer.json new file mode 100644 index 0000000..64f0238 --- /dev/null +++ b/kubernetes/azure/example_cloud_configuration/load_balancer.json @@ -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" + } +} diff --git a/kubernetes/azure/example_cloud_configuration/storage_account.json b/kubernetes/azure/example_cloud_configuration/storage_account.json new file mode 100644 index 0000000..092c44e --- /dev/null +++ b/kubernetes/azure/example_cloud_configuration/storage_account.json @@ -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" + } +}