Is there any integration/documentation for AKS

Nicolas's Avatar

Nicolas

10 May, 2021 01:38 PM

We are planning to migrate from VM to a contenirazed environment with kubernettes in AKS but I am strugling to find documentation especifically for this migration on AppVeyor.

Is there such a kind of documentation or is there any kind of integration?

  1. Support Staff 1 Posted by Feodor Fitsner on 10 May, 2021 09:38 PM

    Feodor Fitsner's Avatar

    Do you mean deploying to AKS from a build?

  2. 2 Posted by Nicolas on 11 May, 2021 05:00 AM

    Nicolas's Avatar

    Hi Feodor,

    thanks for reaching back, yes, from repo (bitbucket) to the container in AKS cluster

  3. Support Staff 3 Posted by Feodor Fitsner on 11 May, 2021 05:05 PM

    Feodor Fitsner's Avatar

    OK, I don't have a full guide for you, but from my perspective the most "essential" part you can start from is pushing containers to Azure Container Registry (ACR).

    You can use az CLI for that which is available on Linux and Windows build images. This is the excerpt from our build scripts for Linux images:

    az login --service-principal -u ${azure_client_id} -p ${azure_client_secret} --tenant ${azure_tenant_id} &> /dev/null
    az account set --subscription ${azure_subscription_id}
    sleep 3
    az acr login --name ${acr_name}
    docker push ${acr_name}.azurecr.io/appveyor/appveyor-web:${product_version}
    docker push ${acr_name}.azurecr.io/appveyor/appveyor-worker:${product_version}
    

    There azure_client_id, azure_client_secret, azure_tenant_id, azure_subscription_id are secure variables in project settings.

    We are not deploying from ACR yet, but presumably you can further use az tool or kubectl to create/update k8s deployment from ACR image.

    Let me know if you have any questions.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac