Skip to content

Instantly share code, notes, and snippets.

@kasunsjc
Created September 29, 2021 17:39
Show Gist options
  • Select an option

  • Save kasunsjc/f56561ea8750840fc27ec67c86bc2337 to your computer and use it in GitHub Desktop.

Select an option

Save kasunsjc/f56561ea8750840fc27ec67c86bc2337 to your computer and use it in GitHub Desktop.

Revisions

  1. kasunsjc created this gist Sep 29, 2021.
    43 changes: 43 additions & 0 deletions azure-devops-agent-deploy.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,43 @@
    apiVersion: apps/v1
    kind: Deployment
    metadata:
    name: azdevops-deployment
    namespace: azure-devops-agents
    labels:
    app: azdevops-agent
    spec:
    replicas: 3 #here is the configuration for the actual agent always running
    selector:
    matchLabels:
    app: azdevops-agent
    template:
    metadata:
    labels:
    app: azdevops-agent
    spec:
    containers:
    - name: kubepodcreation
    image: cloudlifeacr.azurecr.io/devops-agent:v1
    env:
    - name: AZP_URL
    valueFrom:
    secretKeyRef:
    name: azdevops
    key: AZP_URL
    - name: AZP_TOKEN
    valueFrom:
    secretKeyRef:
    name: azdevops
    key: AZP_TOKEN
    - name: AZP_POOL
    valueFrom:
    secretKeyRef:
    name: azdevops
    key: AZP_POOL
    volumeMounts:
    - mountPath: /var/run/docker.sock
    name: docker-volume
    volumes:
    - name: docker-volume
    hostPath:
    path: /var/run/docker.sock