This azure cli script and ARM template deploys two AKS clusters, each in a different region. Each cluster has a private VNET attached, and VNET peering is established. Containers running in Site1 can talk to containers running in Site2 across the VNET
-
As the azure cli does not yet allow for OMS Workspace creation, you will need to create that manually (or via powershell) and update the script with the corresponding values before deployment
-
install docker client on local host:
sudo apt-get install docker
- install the json query tool on local host:
sudo apt-get install jq
- install the azure cli on local host:
sudo apt-get install azure-cli
- install kubectl on local host:
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
- Amend the script to use a unique name for your deployment:
declare uniqueName="sunday"
- Amend the script and add a kubernetes admin password:
declare secret="YOUR_PASSWORD_HERE"
- Amend the script and provide your OMS workspace parameters:
declare workspaceName="YOUR_WORKSPACE_HERE"
declare omsWorkspaceId="YOUR_WORKSPACE_ID_HERE"
declare workspaceRegion="YOUR_WORKSPACE_REGION_HERE"
- Run the script:
./aks-dual-clusher.sh