apiVersion: apps/v1
kind: Deployment
metadata:
  name: operator
spec:
  replicas: 1
  strategy:
    type: Recreate
  selector:
    matchLabels:
      name: operator
  template:
    metadata:
      labels:
        name: operator
    spec:
      serviceAccountName: operator
      containers:
      - name: operator
        image: quay.io/dmace/dowser:latest
        resources:
          requests:
            cpu: 10m
            memory: 20Mi
        env:
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        command:
        - "dowser"
        - "start"
        - "--namespace=$(NAMESPACE)"
