azure-pipelines-agent
by jhidalgo3
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:
| Parameter | Description | Default |
|---|---|---|
nameOverride | Overrides release name | "" |
fullnameOverride | Overrides release fullname | "" |
image.repository | Container image repository | jhidalgo3/azure-pipelines-agent |
image.tag | Container image tag | "" (same version as the chart) |
image.pullPolicy | Container image pull policy | Always if image.tag is latest, else IfNotPresent |
pipelines.url | The Azure base URL for your organization | "" |
pipelines.pat.value | Personal Access Token (PAT) used by the agent to connect. | "" |
pipelines.pat.secretRef | The reference to the secret storing the Personal Access Token (PAT) used by the agent to connect. | "" |
pipelines.pool | Agent pool to which the Agent should register. | "" |
pipelines.agent.mountDocker | Enable to mount the host docker.sock | false |
pipelines.agent.workDir | The work directory the agent should use | _work |
serviceAccount.create | Create ServiceAccount | true |
serviceAccount.name | ServiceAccount name | release name |
serviceAccount.clusterAdmin | Sets the service account as a cluster admin | release name |
resources | Resource limits | {} |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Toleration labels for pod assignment | [] |
affinity | Node affinity for pod assignment | {} |
additionalEnv | Additional environment variables for the agent container. | [] |
extraVolumes | Additional volumes for the agent pod. | [] |
extraVolumeMounts | Additional volume mounts for the agent container. | [] |
initContainers | InitContainers 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartazure-pipelines-agent is pinned at v2.2.20 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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