NOT PORTED YET
- DevOps Bash tools for Azure, AKS, VMs etc
- Install Azure CLI
- Set up access to AKS - Azure Kubernetes Service
- VMs
- Data
Follow the install doc or paste this to run an automated install script which auto-detects and handles Mac or Linux:
git clone https://github.com/HariSekhon/DevOps-Bash-toolsbash-tools/install/install_azure_cli.shThen authenticate using one of the documented methods eg:
az loginFirst set up your Azure CLI as above.
Run the aks_kube_creds.sh script from the DevOps-Bash-tools repo's azure directory.
This will find and configure all your kubernetes clusters in the current project.
az aks get-credentials --resource-group myResourceGroup --name myAKSClusterkubectl config get-contextsswitch to the cluster you want:
kubectl config use-context <name>kubectl get pods --all-namespacesThen see Kubernetes for configs, scripts and .envrc.
Data is always replicated 3x in primary region. Options:
- LRS (locally-redundant storage)
- replicates within same AZ - not recommended for HA or durability
- 11 nines durability
- synchronously writes to all 3 replicas
- ZRS (zone-redundant storage)
- multi-zone - replicates to 3 AZs
- 12 nines durability
- synchronously writes to all 3 replicas
- app still needs transient fault handling to account for DNS failover time - retry policies with exponential back-off
- use this - price is ~50% more but still fairly trivial in overall cost compared to the compute its attached to eg. spending only $15 a month on a 100GB storage disk SSD for a $450 a month VM with 8vCPUs and 64GB RAM.
https://learn.microsoft.com/en-gb/azure/storage/common/storage-redundancy
Partial port from private Knowledge Base page 2017+