apiVersion: apps/v1
kind: Deployment
metadata:
  name: azdo-win-agents-deployment
  labels:
    app: azdow
spec:
  replicas: 1
  selector:
    matchLabels:
      app: azdow
  template:
    metadata:
      labels:
        app: azdow
    spec:
      containers:
      - name: azdo
        image: pypk8sdemo552841.azurecr.io/azure-pipelines-agent/windows/dotnet-core:latest
        env:
          - name: AZP_URL
            valueFrom:
              configMapKeyRef:
                name: azurepipeline-config
                key: azurepipeline-url
          - name: AZP_TOKEN
            valueFrom:
              secretKeyRef:
                name: azurepipeline-token
                key: azurepipeline-token
          - name: AZP_POOL
            valueFrom:
              configMapKeyRef:
                name: azurepipeline-config
                key: azurepipeline-pool
          - name: AZP_AGENT_NAME
            valueFrom:
              fieldRef:
                fieldPath: metadata.name
      nodeSelector:
        kubernetes.io/os: windows


