azure-pipelines-agent

by jhidalgo3

Helm chartv2.2.20App 2.2.20Verified publisher

A Helm chart for Azure Pipelines Agent

About this chart

Azure Pipelines Agent

Azure Pipelines Agent is self-hosted agent that you can run in a container with Docker.

Supports amd64

Agent Version

This image will automatically pull and install the latest Azure DevOps version at startup.

Support

If you need help or found a bug, please feel free to open an issue on the jhidalgo3/docker-azure-pipelines-agent GitHub project.

Deployment

The Azure Pipeliens agent can be deployed in Docker using either docker run or docker compose or in Kubernetes using Helm (recommended).

Deployment in docker

docker run -d -e AZP_AGENT_NAME="<agent name>" -e AZP_URL="https://dev.azure.com/<your org.>" -e AZP_POOL="<agent pool>" -e AZP_TOKEN="<PAT>" jhidalgo3/azure-pipelines-agent

Deployment in Kubernetes using Helm

Use Helm to install the latest released chart:

$ helm repo add jhidalgo3 https://jhidalgo3.github.io/helm-charts
$ helm repo update
$ helm upgrade --install azure-pipelines-agent jhidalgo3/azure-pipelines-agent

You can customize the values of the helm deployment by using the following Values:

ParameterDescriptionDefault
nameOverrideOverrides release name""
fullnameOverrideOverrides release fullname""
image.repositoryContainer image repositoryjhidalgo3/azure-pipelines-agent
image.tagContainer image tag"" (same version as the chart)
image.pullPolicyContainer image pull policyAlways if image.tag is latest, else IfNotPresent
pipelines.urlThe Azure base URL for your organization""
pipelines.pat.valuePersonal Access Token (PAT) used by the agent to connect.""
pipelines.pat.secretRefThe reference to the secret storing the Personal Access Token (PAT) used by the agent to connect.""
pipelines.poolAgent pool to which the Agent should register.""
pipelines.agent.mountDockerEnable to mount the host docker.sockfalse
pipelines.agent.workDirThe work directory the agent should use_work
serviceAccount.createCreate ServiceAccounttrue
serviceAccount.nameServiceAccount namerelease name
serviceAccount.clusterAdminSets the service account as a cluster adminrelease name
resourcesResource limits{}
nodeSelectorNode labels for pod assignment{}
tolerationsToleration labels for pod assignment[]
affinityNode affinity for pod assignment{}
additionalEnvAdditional environment variables for the agent container.[]
extraVolumesAdditional volumes for the agent pod.[]
extraVolumeMountsAdditional volume mounts for the agent container.[]
initContainersInitContainers for the agent pod.[]

Find us on Artifact Hub

Deploy azure-pipelines-agent with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has azure-pipelines-agent on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartazure-pipelines-agent is pinned at v2.2.20 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply