Goals
Deploy AKS following several methods / best practices described on the Microsoft learn website with several technologies.
Deployment status
Automatic deployment
Manual deployment
-
cd .\cloud\azure\ansible # Mount azure credentials docker run --rm -it -v C:\Users\Administrator\azure_config_ansible.cfg:/root/.azure/credentials -v "$(Get-Location):/myapp:rw" -w /myapp local/ansible bash # Use environment file docker run --rm -it --env-file C:\Users\Administrator\azure_credentials -v "$(Get-Location)/ansible:/ansible:rw" -v "$(Get-Location)/inventory:/inventory:rw" -w /ansible local/ansible bash # Create cluster ansible-playbook aks_cluster_create.yml -i /inventory/root/ # Assign permission : need User Managed identities principal id before ansible-playbook aks_cluster_permissions_assign.yml -i /inventory/root/ # Configure cluster ansible-playbook aks_cluster_configure.yml -i /inventory/root/
-
cd .\cloud\azure\powershell & .\scripts\aks\01-Deploy-AKS.ps1
Sources
- https://learn.microsoft.com/fr-fr/azure/architecture/reference-architectures/containers/aks/baseline-aks
- https://github.com/mspnp/aks-baseline
- https://github.com/mspnp/aks-fabrikam-dronedelivery
- https://stacksimplify.com/azure-aks/azure-kubernetes-service-introduction/
- https://learn.microsoft.com/fr-fr/azure/aks/operator-best-practices-storage
- https://learn.microsoft.com/fr-fr/azure/aks/azure-csi-disk-storage-provision#dynamically-provision-a-volume
Table of contents
- Prerequisites
- Create Cluster
- Configure Cluster
- Update an existing Cluster
- Deploy test application
- Deploy postgresql
- All in one debug script
- aks commands