Skip to content

Commit

Permalink
build: add csv envs to rook deploy envs
Browse files Browse the repository at this point in the history
moving all the default envs which were part of
ocs-op rook csv to operator deployment.

Signed-off-by: subhamkrai <srai@redhat.com>
  • Loading branch information
subhamkrai committed Mar 19, 2024
1 parent caaefc9 commit a573581
Showing 1 changed file with 87 additions and 52 deletions.
139 changes: 87 additions & 52 deletions deploy/examples/operator-openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -678,76 +678,111 @@ spec:
name: default-config-dir
env:
- name: ROOK_CURRENT_NAMESPACE_ONLY
valueFrom:
configMapKeyRef:
key: ROOK_CURRENT_NAMESPACE_ONLY
name: ocs-operator-config
- name: CSI_REMOVE_HOLDER_PODS
valueFrom:
configMapKeyRef:
key: CSI_REMOVE_HOLDER_PODS
name: ocs-operator-config
- name: ROOK_ALLOW_MULTIPLE_FILESYSTEMS
value: "false"

# Whether to start pods as privileged that mount a host path, which includes the Ceph mon and osd pods.
# Set this to true if SELinux is enabled (e.g. OpenShift) to workaround the anyuid issues.
# For more details see https://github.com/rook/rook/issues/1314#issuecomment-355799641
- name: ROOK_LOG_LEVEL
value: INFO
- name: ROOK_CEPH_STATUS_CHECK_INTERVAL
value: 60s
- name: ROOK_MON_HEALTHCHECK_INTERVAL
value: 45s
- name: ROOK_MON_OUT_TIMEOUT
value: 600s
- name: ROOK_DISCOVER_DEVICES_INTERVAL
value: 60m
- name: ROOK_HOSTPATH_REQUIRES_PRIVILEGED
value: "true"
# Provide customised regex as the values using comma. For eg. regex for rbd based volume, value will be like "(?i)rbd[0-9]+".
# In case of more than one regex, use comma to separate between them.
# Default regex will be "(?i)dm-[0-9]+,(?i)rbd[0-9]+,(?i)nbd[0-9]+"
# add regex expression after putting a comma to blacklist a disk
# If value is empty, the default regex will be used.
- name: DISCOVER_DAEMON_UDEV_BLACKLIST
value: "(?i)dm-[0-9]+,(?i)rbd[0-9]+,(?i)nbd[0-9]+"

# Whether to start machineDisruptionBudget and machineLabel controller to watch for the osd pods and MDBs.
- name: ROOK_ENABLE_SELINUX_RELABELING
value: "true"
- name: ROOK_ENABLE_FSGROUP
value: "true"
- name: ROOK_ENABLE_FLEX_DRIVER
value: "false"
- name: ROOK_ENABLE_DISCOVERY_DAEMON
value: "false"
- name: ROOK_ENABLE_MACHINE_DISRUPTION_BUDGET
value: "false"

# - name: DISCOVER_DAEMON_RESOURCES
# value: |
# resources:
# limits:
# memory: 512Mi
# requests:
# cpu: 100m
# memory: 128Mi

# Time to wait until the node controller will move Rook pods to other
# nodes after detecting an unreachable node.
# Pods affected by this setting are:
# mgr, rbd, mds, rgw, nfs, PVC based mons and osds, and ceph toolbox
# The value used in this variable replaces the default value of 300 secs
# added automatically by k8s as Toleration for
# <node.kubernetes.io/unreachable>
# The total amount of time to reschedule Rook pods in healthy nodes
# before detecting a <not ready node> condition will be the sum of:
# --> node-monitor-grace-period: 40 seconds (k8s kube-controller-manager flag)
# --> ROOK_UNREACHABLE_NODE_TOLERATION_SECONDS: 5 seconds
- name: ROOK_UNREACHABLE_NODE_TOLERATION_SECONDS
- name: ROOK_DISABLE_DEVICE_HOTPLUG
value: "true"
- name: ROOK_CSI_ALLOW_UNSUPPORTED_VERSION
value: "true"
- name: ROOK_DISABLE_ADMISSION_CONTROLLER
value: "true"
- name: ROOK_CSIADDONS_IMAGE
value: quay.io/csiaddons/k8s-sidecar:v0.6.0
- name: ROOK_OBC_PROVISIONER_NAME_PREFIX
value: openshift-storage
- name: CSI_ENABLE_METADATA
value: "false"
- name: CSI_PLUGIN_PRIORITY_CLASSNAME
value: system-node-critical
- name: CSI_PROVISIONER_PRIORITY_CLASSNAME
value: system-cluster-critical
- name: CSI_CLUSTER_NAME
valueFrom:
configMapKeyRef:
key: CSI_CLUSTER_NAME
name: ocs-operator-config
- name: CSI_DRIVER_NAME_PREFIX
value: openshift-storage
- name: CSI_ENABLE_TOPOLOGY
valueFrom:
configMapKeyRef:
key: CSI_ENABLE_TOPOLOGY
name: ocs-operator-config
- name: CSI_TOPOLOGY_DOMAIN_LABELS
valueFrom:
configMapKeyRef:
key: CSI_TOPOLOGY_DOMAIN_LABELS
name: ocs-operator-config
- name: ROOK_CSI_ENABLE_NFS
valueFrom:
configMapKeyRef:
key: ROOK_CSI_ENABLE_NFS
name: ocs-operator-config
- name: CSI_PROVISIONER_TOLERATIONS
value: |2-
- key: node.ocs.openshift.io/storage
operator: Equal
value: "true"
effect: NoSchedule
- name: CSI_PLUGIN_TOLERATIONS
value: |2-
- key: node.ocs.openshift.io/storage
operator: Equal
value: "true"
effect: NoSchedule
- name: CSI_LOG_LEVEL
value: "5"

# The name of the node to pass with the downward API
- name: CSI_SIDECAR_LOG_LEVEL
value: "1"
- name: CSI_ENABLE_CSIADDONS
value: "true"
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
# The pod name to pass with the downward API
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
# The pod namespace to pass with the downward API
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace

# Recommended resource requests and limits, if desired
#resources:
# limits:
# memory: 512Mi
# requests:
# cpu: 100m
# memory: 128Mi

# Uncomment it to run lib bucket provisioner in multithreaded mode
#- name: LIB_BUCKET_PROVISIONER_THREADS
# value: "5"

- name: ROOK_OBC_WATCH_OPERATOR_NAMESPACE
value: "true"
volumes:
- name: rook-config
emptyDir: {}
Expand Down

0 comments on commit a573581

Please sign in to comment.