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.

  4. Feodor Fitsner closed this discussion on 11 Jul, 2021 09:03 PM.

Comments are currently closed for this discussion. You can start a new one.

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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM