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.
Azure DevOps agent deployment
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment