Skip to content

Instantly share code, notes, and snippets.

Created January 6, 2019 19:11
What would you like to do?
echo "Creating AKS Cluster"
az aks create \
--resource-group $resourceGroupName \
--name kube-api-$envName \
--node-count 2 \
--node-vm-size Standard_A2_v2 \
--enable-addons monitoring \
--network-plugin azure \
--service-cidr \
--dns-service-ip \
--docker-bridge-address \
--vnet-subnet-id $subnetResourceId \
--service-principal $spId \
--client-secret $spPass \
--aad-server-app-id $serverApplicationId \
--aad-server-app-secret $serverApplicationSecret \
--aad-client-app-id $clientApplicationId \
--aad-tenant-id $tenantId \
az extension add --source --yes
az aks enable-addons \
--resource-group $resourceGroupName \
--name kube-api-$envName \
--addons virtual-node \
--subnet-name $nodeSubnetName
az aks get-credentials --resource-group $resourceGroupName --name kube-api-$envName --admin
kubectl apply -f helm-rbac.yaml
helm init --service-account tiller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment