Created
September 29, 2021 17:39
-
-
Save kasunsjc/f56561ea8750840fc27ec67c86bc2337 to your computer and use it in GitHub Desktop.
Azure DevOps agent deployment
This file contains hidden or 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: 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