---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: external-dns
  namespace: admin
spec:
  strategy:
    type: Recreate
  selector:
    matchLabels:
      app: external-dns
  template:
    metadata:
      labels:
        app: external-dns
    spec:
      serviceAccountName: external-dns
      containers:
        - name: external-dns
          image: eu.gcr.io/k8s-artifacts-prod/external-dns/external-dns:v0.7.2
          volumeMounts:
            - name: azure-config-file
              mountPath: /etc/kubernetes
              readOnly: true
          resources:
            limits:
              cpu: 100m
              memory: 256Mi
            requests:
              cpu: 100m
              memory: 128Mi
      volumes:
        - name: azure-config-file
          secret:
            secretName: azure-config-file
