Skip to content

Instantly share code, notes, and snippets.

@jeffhollan
Last active February 2, 2020 03:14
Show Gist options
  • Save jeffhollan/8c16bdbc1df6adf2df721af24c82adc9 to your computer and use it in GitHub Desktop.
Save jeffhollan/8c16bdbc1df6adf2df721af24c82adc9 to your computer and use it in GitHub Desktop.
# 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