Created
December 18, 2018 21:11
-
-
Save jgardner04/11c36c56ba0e27ffde6e756c12a0d7cf to your computer and use it in GitHub Desktop.
Azure DevOps Linux Build Agent Kubernetes Deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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