Skip to content

Instantly share code, notes, and snippets.

@MattMencel
Created September 30, 2020 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MattMencel/3fd097a14289bb39a42cad8dcf0f458f to your computer and use it in GitHub Desktop.
Save MattMencel/3fd097a14289bb39a42cad8dcf0f458f to your computer and use it in GitHub Desktop.
azdo-pipeline-template kustomize manifest
apiVersion: v1
kind: Namespace
metadata:
labels:
azure-key-vault-env-injection: enabled
name: azure-pipelines-agent
---
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
annotations:
fluxcd.io/automated: "true"
fluxcd.io/tag.config: glob:*
name: azure-pipelines-agent
namespace: azure-pipelines-agent
spec:
chart:
git: git@ssh.dev.azure.com:v3/ORGANIZATION/PROJECT/azure-pipelines-agent
path: helm/azure-pipelines-agent
ref: master
helmVersion: v3
releaseName: azure-pipelines-agent
rollback:
enable: true
values:
image:
repository: ACRNAME.azurecr.io/aks-build-agent
tag: latest
pipelines:
pat: azure-pipelines-agent-pat-token@azurekeyvault
pool: AGENT_POOL_NAME
url: https://dev.azure.com/ORGANIZATION/
resources:
limits:
cpu: 2
memory: 4Gi
requests:
cpu: 100m
memory: 192Mi
---
apiVersion: spv.no/v1
kind: AzureKeyVaultSecret
metadata:
name: azure-pipelines-agent-pat-token
namespace: azure-pipelines-agent
spec:
vault:
name: __KEYVAULTNAME__
object:
name: azure-pipelines-agent-pat-token
type: secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment