apiVersion: apps/v1
kind: Deployment
metadata:
  name: reaper-operator
  labels:
    control-plane: reaper-operator
spec:
  selector:
    matchLabels:
      control-plane: reaper-operator
  replicas: 1
  template:
    metadata:
      labels:
        control-plane: reaper-operator
    spec:
      containers:
      - command:
        - /manager
        args:
        - --enable-leader-election
        image: controller:latest
        name: manager
        resources:
          limits:
            cpu: 100m
            memory: 30Mi
          requests:
            cpu: 100m
            memory: 20Mi
        env:
          - name: WATCH_NAMESPACE
            valueFrom:
              fieldRef:
                fieldPath: metadata.namespace
      terminationGracePeriodSeconds: 10
