apiVersion: apps/v1
kind: Deployment
metadata:
  name: logging-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      name: logging-operator
  template:
    metadata:
      labels:
        name: logging-operator
    spec:
      containers:
        - name: logging-operator
          image: banzaicloud/logging-operator:latest
          command:
          - logging-operator
          imagePullPolicy: IfNotPresent
          env:
            - name: WATCH_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
          volumeMounts:
          - mountPath: /logging-operator/config
            name: config
      volumes:
      - configMap:
          name: logging-operator-config
        name: config
