Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Goals

Deploy AKS following several methods / best practices described on the Microsoft learn website with several technologies.

Deployment status

Automatic deployment

Azure DevOps pipeline : Build Status

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


Table of contents