 apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: azdevops-deployment
   namespace: devops
   labels:
     app: azdevops-agent
 spec:
   replicas: 1 #here is the configuration for the actual agent always running
   selector:
     matchLabels:
       app: azdevops-agent
   template:
     metadata:
       labels:
         app: azdevops-agent
     spec:
       containers:
       - name: azdevops
         image: shubhamranjan/az-devops-k8s-agent:latest
         resources:
          limits:
            cpu: 1
            memory: 1Gi
          requests:
            cpu: 42m
            memory: 100Mi
         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