azure-pipelines-agent

by Helm

Helm chartv0.0.1App 0.0.1

Azure Pipelines Agent

About this chart

Azure Pipelines Agent

Prerequisites

  • Kubernetes 1.11+
  • Helm 3

Installing the Chart

To install the chart with the release name my-release in namespace my-namespace:

$ helm repo add fermosit https://harbor.fermosit.es/chartrepo/library
$ helm upgrade --install --namespace my-namespace my-release
    --set azp.token=aksjdfjkhadfsjkhkjsdgfjkhagsdf \
    --set azp.url=https://dev.azure.com/yourazuregroup \
    fermosit/.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

The following table lists the configurable parameters of the Azure Pipelines Agent chart and their default values.

ParameterDescriptionDefault
azp.urlAzure Pipelines grouphttps://dev.azure.com/yourazuregroup (mandatory)
azp.tokenAzure Pipelines tokenmyverysecuretoken (mandatory
azp.agent_nameAzure Pipelines agent namelatest
azp.poolAzure Pipelines poolDefault
azp.workAzure Pipelines work directory (workspace used by agent)_work
secretsList of secrets that will be environment vars in the running azure pipelines agent pod[]
image.registryImage registrydocker.io
image.repositoryImage namejmferrer/azure-devops-agent
image.tagImage taglatest
image.pullPolicyImage pull policyAlways
image.pullSecretsImage pull secret name[]
nameOverrideString to partially override azure-devops-agent.fullname template (will maintain the release name)null
fullnameOverrideString to fully override azure-devops-agent.fullname templatenull
replicaCountNumber of agents in statefulset1
resourcesConfigure resource requests and limits{}
http_proxyHTTP proxy endpoint to use for containersnull
https_proxyHTTPS proxy endpoint to use for containersnull
no_proxyBlacklist of addresses to skip the proxy when reachingnull
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
affinityAffinity for pod assignment{}
podAnnotationsPod annotations{}
sidecarsAdd sidecars to the podnull

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install --name my-release \
    --set azp.token=aksjdfjkhadfsjkhkjsdgfjkhagsdf \
    --set azp.url=https://dev.azure.com/yourazuregroup \
    .

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml .

Tip: You can use the default values.yaml but you need to specify azp.url and azp.token to connect the agent to some Azure Devops service

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 v0.0.1 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