apiVersion: apps/v1
kind: Deployment
metadata:
  name: controller-manager
  namespace: system
  labels:
    control-plane: controller-manager
spec:
  selector:
    matchLabels:
      control-plane: controller-manager
  replicas: 1
  template:
    metadata:
      labels:
        control-plane: controller-manager
    spec:
      serviceAccountName: vineyard-manager
      containers:
      - command:
        - /manager
        # args:
        # - "--health-probe-bind-address=:8081"
        # - "--metrics-bind-address=127.0.0.1:8080"
        # - "--leader-elect"
        image: controller:latest
        imagePullPolicy: Always
        name: manager
        resources:
          limits:
            cpu: 100m
            memory: 30Mi
          requests:
            cpu: 100m
            memory: 20Mi
        env:
        - name: GOTRACEBACK
          value: system
      terminationGracePeriodSeconds: 10
