---
# Source: rook-ceph/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: rook-ceph-operator
  labels:
    operator: rook
    storage-backend: ceph
    chart: "rook-ceph-0.0.1"
spec:
  replicas: 1
  selector:
    matchLabels:
      app: rook-ceph-operator
  template:
    metadata:
      labels:
        app: rook-ceph-operator
        chart: "rook-ceph-0.0.1"
    spec:
      containers:
      - name: rook-ceph-operator
        image: "quay.io/cybozu/rook:1.7.5.0"
        imagePullPolicy: IfNotPresent
        args: ["ceph", "operator"]
        volumeMounts:
        - mountPath: /var/lib/rook
          name: rook-config
        - mountPath: /etc/ceph
          name: default-config-dir
        env:
        - name: ROOK_CURRENT_NAMESPACE_ONLY
          value: "true"
        - name: ROOK_HOSTPATH_REQUIRES_PRIVILEGED
          value: "false"
        - name: ROOK_LOG_LEVEL
          value: INFO
        - name: ROOK_ENABLE_SELINUX_RELABELING
          value: "true"
        - name: ROOK_DISABLE_DEVICE_HOTPLUG
          value: "false"
        - name: ROOK_CSI_ENABLE_RBD
          value: "true"
        - name: ROOK_CSI_ENABLE_CEPHFS
          value: "false"
        - name: CSI_ENABLE_CEPHFS_SNAPSHOTTER
          value: "false"
        - name: CSI_ENABLE_RBD_SNAPSHOTTER
          value: "true"
        - name: CSI_PLUGIN_PRIORITY_CLASSNAME
          value: ""
        - name: CSI_PROVISIONER_PRIORITY_CLASSNAME
          value: ""
        - name: CSI_ENABLE_OMAP_GENERATOR
          value: "false"
        - name: CSI_ENABLE_VOLUME_REPLICATION
          value: "false"
        - name: CSI_RBD_FSGROUPPOLICY
          value: "ReadWriteOnceWithFSType"
        - name: CSI_CEPHFS_FSGROUPPOLICY
          value: "None"
        - name: ROOK_CSI_ENABLE_GRPC_METRICS
          value: "false"
        - name: CSI_RBD_GRPC_METRICS_PORT
          value: "29090"
        - name: CSI_RBD_LIVENESS_METRICS_PORT
          value: "29080"
        - name: CSI_FORCE_CEPHFS_KERNEL_CLIENT
          value: "true"
        - name: CSI_PROVISIONER_REPLICAS
          value: "2"
        - name: ROOK_ENABLE_FLEX_DRIVER
          value: "false"
        - name: ROOK_ENABLE_DISCOVERY_DAEMON
          value: "false"
        - name: ROOK_CEPH_COMMANDS_TIMEOUT_SECONDS
          value: "300"
        - name: ROOK_OBC_WATCH_OPERATOR_NAMESPACE
          value: "true"

        - name: NODE_NAME
          valueFrom:
            fieldRef:
              fieldPath: spec.nodeName
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        - name: ROOK_UNREACHABLE_NODE_TOLERATION_SECONDS
          value: "5"
        resources:
          requests:
            cpu: 100m
            memory: 128Mi
      serviceAccountName: rook-ceph-system
      volumes:
      - name: rook-config
        emptyDir: {}
      - name: default-config-dir
        emptyDir: {}
