---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: kube-lookout
  labels:
    app: kube-lookout
  namespace: kube-lookout
spec:
  replicas: 1
  selector:
    matchLabels:
      app: kube-lookout
  strategy:
   rollingUpdate:
     maxSurge: 1
     maxUnavailable: 0
  template:
    metadata:
      labels:
        app: kube-lookout
    spec:
      serviceAccount: kube-lookout
      containers:
      - name: kube-lookout
        image: nabadger/kube-lookout:latest
        args: ["--config", "/etc/kube-lookout/config.yml"]
        envFrom:
        - secretRef:
            name: kube-lookout
        volumeMounts:
        - name: config
          mountPath: /etc/kube-lookout
      volumes  :
      - name: config
        configMap:
          name: kube-lookout
      - name: credentials
        secret:
          secretName: kube-lookout
