Created
September 29, 2021 17:39
-
-
Save kasunsjc/f56561ea8750840fc27ec67c86bc2337 to your computer and use it in GitHub Desktop.
Revisions
-
kasunsjc created this gist
Sep 29, 2021 .There are no files selected for viewing
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 charactersOriginal 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