Question About Azure DevOps Agents and GitLab-Style Executors in Kubernetes

Yann ILAS 0 Reputation points
2024-11-18T12:35:26.6133333+00:00

Hello,

I’m currently working with Azure DevOps to manage CI/CD pipelines in an on-premises environment and have a question about the use of Azure DevOps agents in a Kubernetes setup.

In GitLab, it’s possible to use executors in a Kubernetes cluster to create ephemeral environments and run jobs in dedicated pods (as outlined here: GitLab Executors Kubernetes Documentation).

Does Azure DevOps offer similar functionality ? Specifically, can it dynamically create and destroy agents, or use agents to deploy ephemeral environments and execute jobs in dedicated pods within a Kubernetes cluster, particularly in an on-premises context ?

If anyone has experience or resources related to this, I’d greatly appreciate your insights.

Thank you in advance !

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,967 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Akram Kathimi 1,126 Reputation points Microsoft Employee
    2024-11-19T11:17:57.3566667+00:00

    Hi @Yann ILAS ,

    Akram from the AKS team here.

    Yes, you can run the Azure DevOps agents as pods in AKS.

    • You will need to create your own docker image from the Dockerfile mentioned here.
    • Then, follow the steps here to create the needed secrets and deployments.

    Please keep in mind that Docker in Docker (DIND) tasks will not be able to run due to the usage of containerd instead of docker in AKS.

    Hope this helps :).
    Please mark this as an answer if it did help.

    Thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.