yato-consulting

Untitled

Jun 12th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.18 KB | None | 0 0
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4.   name: rook-ceph-operator
  5.   namespace: rook-ceph
  6.   labels:
  7.     operator: rook
  8.     storage-backend: ceph
  9. spec:
  10.   selector:
  11.     matchLabels:
  12.       app: rook-ceph-operator
  13.   replicas: 1
  14.   template:
  15.     metadata:
  16.       labels:
  17.         app: rook-ceph-operator
  18.     spec:
  19.       serviceAccountName: rook-ceph-system
  20.       containers:
  21.         - name: rook-ceph-operator
  22.           image: rook/ceph:v1.0.2
  23.           args: ["ceph", "operator"]
  24.           volumeMounts:
  25.             - mountPath: /var/lib/rook
  26.               name: rook-config
  27.             - mountPath: /etc/ceph
  28.               name: default-config-dir
  29.           env:
  30.             - name: ROOK_CURRENT_NAMESPACE_ONLY
  31.               value: "true"
  32.             # CSI enablement
  33.             - name: ROOK_CSI_ENABLE_CEPHFS
  34.               value: "true"
  35.             - name: ROOK_CSI_CEPHFS_IMAGE
  36.               value: "quay.io/cephcsi/cephfsplugin:v1.0.0"
  37.             - name: ROOK_CSI_ENABLE_RBD
  38.               value: "true"
  39.             - name: ROOK_CSI_RBD_IMAGE
  40.               value: "quay.io/cephcsi/rbdplugin:v1.0.0"
  41.             - name: ROOK_CSI_REGISTRAR_IMAGE
  42.               value: "quay.io/k8scsi/csi-node-driver-registrar:v1.0.2"
  43.             - name: ROOK_CSI_PROVISIONER_IMAGE
  44.               value: "quay.io/k8scsi/csi-provisioner:v1.0.1"
  45.             - name: ROOK_CSI_SNAPSHOTTER_IMAGE
  46.               value: "quay.io/k8scsi/csi-snapshotter:v1.0.1"
  47.             - name: ROOK_CSI_ATTACHER_IMAGE
  48.               value: "quay.io/k8scsi/csi-attacher:v1.0.1"
  49.             - name: ROOK_ALLOW_MULTIPLE_FILESYSTEMS
  50.               value: "false"
  51.             # The logging level for the operator: INFO | DEBUG
  52.             - name: ROOK_LOG_LEVEL
  53.               value: "INFO"
  54.             # The interval to check the health of the ceph cluster and update the status in the custom resource.
  55.             - name: ROOK_CEPH_STATUS_CHECK_INTERVAL
  56.               value: "60s"
  57.             # The interval to check if every mon is in the quorum.
  58.             - name: ROOK_MON_HEALTHCHECK_INTERVAL
  59.               value: "45s"
  60.             # The duration to wait before trying to failover or remove/replace the
  61.             # current mon with a new mon (useful for compensating flapping network).
  62.             - name: ROOK_MON_OUT_TIMEOUT
  63.               value: "600s"
  64.             # The duration between discovering devices in the rook-discover daemonset.
  65.             - name: ROOK_DISCOVER_DEVICES_INTERVAL
  66.               value: "60m"
  67.             # The name of the node to pass with the downward API
  68.             - name: NODE_NAME
  69.               valueFrom:
  70.                 fieldRef:
  71.                   fieldPath: spec.nodeName
  72.             # The pod name to pass with the downward API
  73.             - name: POD_NAME
  74.               valueFrom:
  75.                 fieldRef:
  76.                   fieldPath: metadata.name
  77.             # The pod namespace to pass with the downward API
  78.             - name: POD_NAMESPACE
  79.               valueFrom:
  80.                 fieldRef:
  81.                   fieldPath: metadata.namespace
  82.       volumes:
  83.         - name: rook-config
  84.           emptyDir: {}
  85.         - name: default-config-dir
  86.           emptyDir: {}
Advertisement
Add Comment
Please, Sign In to add comment