Skip to content

Instantly share code, notes, and snippets.

@jgardner04
Created December 18, 2018 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jgardner04/11c36c56ba0e27ffde6e756c12a0d7cf to your computer and use it in GitHub Desktop.
Save jgardner04/11c36c56ba0e27ffde6e756c12a0d7cf to your computer and use it in GitHub Desktop.
Azure DevOps Linux Build Agent Kubernetes Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: vstslinuxbuild
spec:
replicas: 3
selector:
matchLabels:
app: vstslinuxbuild
template:
metadata:
labels:
app: vstslinuxbuild
spec:
containers:
- name: vstslinuxbuild
image: <my vsts build agent image>
ports:
- containerPort: 443
env:
- name: VSTS_ACCOUNT
valueFrom:
secretKeyRef:
name: vsts
key: account
- name: VSTS_TOKEN
valueFrom:
secretKeyRef:
name: vsts
key: token
- name: VSTS_POOL
valueFrom:
secretKeyRef:
name: vsts
key: pool
volumeMounts:
- name: docker-graph-storage
mountPath: /var/lib/docker
volumes:
- name: docker-graph-storage
emptyDir: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment