Last active
February 21, 2020 10:00
-
-
Save matt-FFFFFF/63ca87c2fd0a25c45cfd48eb8aaf23e2 to your computer and use it in GitHub Desktop.
az aks create
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
#! /bin/bash | |
az aks create \ | |
--resource-group $RESOURCE_GROUP \ | |
--network-plugin azure \ | |
--vnet-subnet-id /subscriptions/$ARM_SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/Microsoft.Network/virtualNetworks/$VNET_NAME/subnets/$SUBNET_NAME \ | |
--docker-bridge-address 172.17.0.1/16 \ | |
--dns-service-ip 172.18.0.10 \ | |
--service-cidr 172.18.0.0/16 \ | |
--generate-ssh-keys \ | |
--vm-set-type VirtualMachineScaleSets \ | |
--node-zones 1 2 3 \ | |
--node-count 3 \ | |
--node-vm-size Standard_B2s \ | |
--enable-cluster-autoscaler \ | |
--enable-rbac \ | |
--enable-vmss \ | |
--enable-private-cluster \ | |
--enable-managed-identity \ | |
--min-count 3 \ | |
--max-count 6 \ | |
--name mawhik8s \ | |
--kubernetes-version $KUBERNETES_VERSION \ | |
--dns-name-prefix mawhik8s-dns \ | |
--load-balancer-sku Standard | |
az aks enable-addons \ | |
--resource-group $RESOURCE_GROUP \ | |
--name mawhik8s \ | |
--addons virtual-node \ | |
--subnet-name virtualnodesubnet | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment