Last active
February 2, 2020 03:14
-
-
Save jeffhollan/8c16bdbc1df6adf2df721af24c82adc9 to your computer and use it in GitHub Desktop.
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
# akscreate myClusterName | |
akscreate() { | |
echo "Master password: " | |
read -s pswd | |
export BW_SESSION=$(bw unlock $pswd --raw) | |
az group create -n $1 -l ${2:-westus2} | |
az aks create \ | |
--resource-group $1 \ | |
--name $1 \ | |
--service-principal $(bw get item 5436c481-c8f9-48c9-86ce-aaca01150efc | jq -r '.notes') \ | |
--client-secret $(bw get item ee96daf2-229c-463e-9223-aaca01150efc | jq -r '.notes') \ | |
--vm-set-type VirtualMachineScaleSets \ | |
--enable-addons monitoring \ | |
--kubernetes-version 1.17.0 \ | |
--load-balancer-sku standard \ | |
--no-wait | |
unset pswd | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment