kind: Deployment
apiVersion: apps/v1
metadata:
  name: devops-agent 
  namespace: devops
  labels:
    app: devops-agent
spec: 
  replicas: 1
  selector:
    matchLabels:
      app: devops-agent
  template:
    metadata:
      labels:
        app: devops-agent
    spec:
      containers:
        - name: agent
          image: jorturfer/devops-agent-demo
          envFrom:
          - configMapRef:
              name: devops-agent-configmap
          - secretRef:
              name: devops-agent-secret
          resources: {}
          imagePullPolicy: IfNotPresent
      restartPolicy: Always
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 25%
      maxSurge: 25%