Updates for Rook 1.6.2 and Ceph 15.2.11
This PS is to update the Rook yaml files for version v1.6.2. Additionally, the version of Ceph is upgraded to v15.2.11 and Ceph-CSI is upgraded to v3.3.1. v1.6 provides a few features the storage team wants: * The operator supports upgrading multiple OSDs in parallel * LVM no longer used to provision OSDs by default * Monitor failover can be disabled if needed * Operator support for Ceph Pacific (v16) * Ceph 15.2.11 by default * CephClient CRD standardized to controller-runtime library (kubebuilder) https://github.com/kubernetes-sigs/controller-runtime * Pod Disruption Budgets enabled by default. https://github.com/rook/rook/blob/master/design/ceph/ceph-managed-disruptionbudgets.md More notes: * There are many indentation changes in common.yaml * There is now a variable in operator.yaml for enabling host networking for the CSI pods. Default is to use host network. * CSI image updates: ROOK_CSI_CEPH_IMAGE: "quay.io/cephcsi/cephcsi:v3.3.1" ROOK_CSI_SNAPSHOTTER_IMAGE: "k8s.gcr.io/sig-storage/csi-snapshotter:v4.0.0" * There is a very large update to crds.yaml largely due to the controller-runtime being employed. * Ceph 15.2.11 needed for CVE-2021-20288 Change-Id: I5cf0cf63bfcf4b0ea1d242d6eae2f53adda7be5e
This commit is contained in:
parent
2946a13806
commit
e7130f4301
@ -27,7 +27,6 @@ spec:
|
|||||||
preserveFilesystemOnDelete: true
|
preserveFilesystemOnDelete: true
|
||||||
# The metadata service (mds) configuration
|
# The metadata service (mds) configuration
|
||||||
metadataServer:
|
metadataServer:
|
||||||
|
|
||||||
# The affinity rules to apply to the mds deployment
|
# The affinity rules to apply to the mds deployment
|
||||||
placement:
|
placement:
|
||||||
# nodeAffinity:
|
# nodeAffinity:
|
||||||
@ -72,4 +71,3 @@ spec:
|
|||||||
# A key/value list of labels
|
# A key/value list of labels
|
||||||
labels:
|
labels:
|
||||||
# key: value
|
# key: value
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ spec:
|
|||||||
# quota in bytes and/or objects, default value is 0 (unlimited)
|
# quota in bytes and/or objects, default value is 0 (unlimited)
|
||||||
# see https://docs.ceph.com/en/latest/rados/operations/pools/#set-pool-quotas
|
# see https://docs.ceph.com/en/latest/rados/operations/pools/#set-pool-quotas
|
||||||
# quotas:
|
# quotas:
|
||||||
# maxSize: "10Gi" # valid suffixes include K, M, G, T, P, Ki, Mi, Gi, Ti, Pi
|
# maxSize: "10Gi" # valid suffixes include k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi, Ei
|
||||||
# maxObjects: 1000000000 # 1 billion objects
|
# maxObjects: 1000000000 # 1 billion objects
|
||||||
# A key/value list of annotations
|
# A key/value list of annotations
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -8,5 +8,5 @@ spec:
|
|||||||
replicated:
|
replicated:
|
||||||
size: 2
|
size: 2
|
||||||
quotas:
|
quotas:
|
||||||
maxSize: "10Gi" # valid suffixes include K, M, G, T, P, Ki, Mi, Gi, Ti, Pi
|
maxSize: "10Gi" # valid suffixes include k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi, Ei
|
||||||
maxObjects: 1000000000 # 1 billion objects
|
maxObjects: 1000000000 # 1 billion objects
|
@ -8,6 +8,5 @@ spec:
|
|||||||
replicated:
|
replicated:
|
||||||
size: 3
|
size: 3
|
||||||
quotas:
|
quotas:
|
||||||
maxSize: "0" # valid suffixes include K, M, G, T, P, Ki, Mi, Gi, Ti, Pi, eg: "10Gi"
|
maxSize: "0" # e.g. "10Gi" - valid suffixes include k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi, Ei
|
||||||
# "0" means no quotas. Since rook 1.5.9 you must use string as a value's type
|
|
||||||
maxObjects: 0 # 1000000000 = billion objects, 0 means no quotas
|
maxObjects: 0 # 1000000000 = billion objects, 0 means no quotas
|
@ -9,7 +9,6 @@
|
|||||||
#
|
#
|
||||||
# Most of the sections are prefixed with a 'OLM' keyword which is used to build our CSV for an OLM (Operator Life Cycle manager)
|
# Most of the sections are prefixed with a 'OLM' keyword which is used to build our CSV for an OLM (Operator Life Cycle manager)
|
||||||
###################################################################################################################
|
###################################################################################################################
|
||||||
|
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
@ -63,7 +62,7 @@ metadata:
|
|||||||
operator: rook
|
operator: rook
|
||||||
storage-backend: ceph
|
storage-backend: ceph
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
- apps
|
- apps
|
||||||
- extensions
|
- extensions
|
||||||
@ -94,7 +93,7 @@ metadata:
|
|||||||
operator: rook
|
operator: rook
|
||||||
storage-backend: ceph
|
storage-backend: ceph
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- pods
|
- pods
|
||||||
@ -108,7 +107,7 @@ rules:
|
|||||||
- create
|
- create
|
||||||
- update
|
- update
|
||||||
- delete
|
- delete
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- apps
|
- apps
|
||||||
- extensions
|
- extensions
|
||||||
resources:
|
resources:
|
||||||
@ -122,6 +121,12 @@ rules:
|
|||||||
- create
|
- create
|
||||||
- update
|
- update
|
||||||
- delete
|
- delete
|
||||||
|
- apiGroups:
|
||||||
|
- batch
|
||||||
|
resources:
|
||||||
|
- cronjobs
|
||||||
|
verbs:
|
||||||
|
- delete
|
||||||
---
|
---
|
||||||
# The cluster role for managing the Rook CRDs
|
# The cluster role for managing the Rook CRDs
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
@ -132,7 +137,7 @@ metadata:
|
|||||||
operator: rook
|
operator: rook
|
||||||
storage-backend: ceph
|
storage-backend: ceph
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
# Pod access is needed for fencing
|
# Pod access is needed for fencing
|
||||||
@ -145,7 +150,7 @@ rules:
|
|||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- events
|
- events
|
||||||
@ -161,7 +166,7 @@ rules:
|
|||||||
- create
|
- create
|
||||||
- update
|
- update
|
||||||
- delete
|
- delete
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- storage.k8s.io
|
- storage.k8s.io
|
||||||
resources:
|
resources:
|
||||||
- storageclasses
|
- storageclasses
|
||||||
@ -169,10 +174,11 @@ rules:
|
|||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- batch
|
- batch
|
||||||
resources:
|
resources:
|
||||||
- jobs
|
- jobs
|
||||||
|
- cronjobs
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
@ -180,19 +186,19 @@ rules:
|
|||||||
- create
|
- create
|
||||||
- update
|
- update
|
||||||
- delete
|
- delete
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ceph.rook.io
|
- ceph.rook.io
|
||||||
resources:
|
resources:
|
||||||
- "*"
|
- "*"
|
||||||
verbs:
|
verbs:
|
||||||
- "*"
|
- "*"
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- rook.io
|
- rook.io
|
||||||
resources:
|
resources:
|
||||||
- "*"
|
- "*"
|
||||||
verbs:
|
verbs:
|
||||||
- "*"
|
- "*"
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- policy
|
- policy
|
||||||
- apps
|
- apps
|
||||||
- extensions
|
- extensions
|
||||||
@ -204,7 +210,7 @@ rules:
|
|||||||
- replicasets
|
- replicasets
|
||||||
verbs:
|
verbs:
|
||||||
- "*"
|
- "*"
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- healthchecking.openshift.io
|
- healthchecking.openshift.io
|
||||||
resources:
|
resources:
|
||||||
- machinedisruptionbudgets
|
- machinedisruptionbudgets
|
||||||
@ -215,7 +221,7 @@ rules:
|
|||||||
- create
|
- create
|
||||||
- update
|
- update
|
||||||
- delete
|
- delete
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- machine.openshift.io
|
- machine.openshift.io
|
||||||
resources:
|
resources:
|
||||||
- machines
|
- machines
|
||||||
@ -226,7 +232,7 @@ rules:
|
|||||||
- create
|
- create
|
||||||
- update
|
- update
|
||||||
- delete
|
- delete
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- storage.k8s.io
|
- storage.k8s.io
|
||||||
resources:
|
resources:
|
||||||
- csidrivers
|
- csidrivers
|
||||||
@ -235,7 +241,7 @@ rules:
|
|||||||
- delete
|
- delete
|
||||||
- get
|
- get
|
||||||
- update
|
- update
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- k8s.cni.cncf.io
|
- k8s.cni.cncf.io
|
||||||
resources:
|
resources:
|
||||||
- network-attachment-definitions
|
- network-attachment-definitions
|
||||||
@ -251,7 +257,7 @@ metadata:
|
|||||||
operator: rook
|
operator: rook
|
||||||
storage-backend: ceph
|
storage-backend: ceph
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- configmaps
|
- configmaps
|
||||||
@ -261,7 +267,7 @@ rules:
|
|||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- events
|
- events
|
||||||
@ -280,14 +286,14 @@ metadata:
|
|||||||
operator: rook
|
operator: rook
|
||||||
storage-backend: ceph
|
storage-backend: ceph
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
verbs:
|
verbs:
|
||||||
- "*"
|
- "*"
|
||||||
resources:
|
resources:
|
||||||
- secrets
|
- secrets
|
||||||
- configmaps
|
- configmaps
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- storage.k8s.io
|
- storage.k8s.io
|
||||||
resources:
|
resources:
|
||||||
- storageclasses
|
- storageclasses
|
||||||
@ -295,7 +301,7 @@ rules:
|
|||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- "objectbucket.io"
|
- "objectbucket.io"
|
||||||
verbs:
|
verbs:
|
||||||
- "*"
|
- "*"
|
||||||
@ -333,7 +339,7 @@ roleRef:
|
|||||||
kind: Role
|
kind: Role
|
||||||
name: rook-ceph-system
|
name: rook-ceph-system
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-system
|
name: rook-ceph-system
|
||||||
namespace: rook-ceph # namespace:operator
|
namespace: rook-ceph # namespace:operator
|
||||||
---
|
---
|
||||||
@ -350,7 +356,7 @@ roleRef:
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: rook-ceph-global
|
name: rook-ceph-global
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-system
|
name: rook-ceph-system
|
||||||
namespace: rook-ceph # namespace:operator
|
namespace: rook-ceph # namespace:operator
|
||||||
# OLM: END OPERATOR ROLEBINDING
|
# OLM: END OPERATOR ROLEBINDING
|
||||||
@ -399,19 +405,19 @@ metadata:
|
|||||||
name: rook-ceph-osd
|
name: rook-ceph-osd
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["configmaps"]
|
resources: ["configmaps"]
|
||||||
verbs: [ "get", "list", "watch", "create", "update", "delete" ]
|
verbs: ["get", "list", "watch", "create", "update", "delete"]
|
||||||
- apiGroups: ["ceph.rook.io"]
|
- apiGroups: ["ceph.rook.io"]
|
||||||
resources: ["cephclusters", "cephclusters/finalizers"]
|
resources: ["cephclusters", "cephclusters/finalizers"]
|
||||||
verbs: [ "get", "list", "create", "update", "delete" ]
|
verbs: ["get", "list", "create", "update", "delete"]
|
||||||
---
|
---
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: rook-ceph-osd
|
name: rook-ceph-osd
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- nodes
|
- nodes
|
||||||
@ -425,7 +431,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||||||
metadata:
|
metadata:
|
||||||
name: rook-ceph-mgr-system
|
name: rook-ceph-mgr-system
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- configmaps
|
- configmaps
|
||||||
@ -441,7 +447,7 @@ metadata:
|
|||||||
name: rook-ceph-mgr
|
name: rook-ceph-mgr
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- pods
|
- pods
|
||||||
@ -451,8 +457,10 @@ rules:
|
|||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
|
- create
|
||||||
|
- update
|
||||||
- delete
|
- delete
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- batch
|
- batch
|
||||||
resources:
|
resources:
|
||||||
- jobs
|
- jobs
|
||||||
@ -463,7 +471,7 @@ rules:
|
|||||||
- create
|
- create
|
||||||
- update
|
- update
|
||||||
- delete
|
- delete
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ceph.rook.io
|
- ceph.rook.io
|
||||||
resources:
|
resources:
|
||||||
- "*"
|
- "*"
|
||||||
@ -478,7 +486,7 @@ metadata:
|
|||||||
name: rook-ceph-cmd-reporter
|
name: rook-ceph-cmd-reporter
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- pods
|
- pods
|
||||||
@ -504,7 +512,7 @@ roleRef:
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: rook-ceph-cluster-mgmt
|
name: rook-ceph-cluster-mgmt
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-system
|
name: rook-ceph-system
|
||||||
namespace: rook-ceph # namespace:operator
|
namespace: rook-ceph # namespace:operator
|
||||||
---
|
---
|
||||||
@ -519,7 +527,7 @@ roleRef:
|
|||||||
kind: Role
|
kind: Role
|
||||||
name: rook-ceph-osd
|
name: rook-ceph-osd
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-osd
|
name: rook-ceph-osd
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
---
|
---
|
||||||
@ -534,7 +542,7 @@ roleRef:
|
|||||||
kind: Role
|
kind: Role
|
||||||
name: rook-ceph-mgr
|
name: rook-ceph-mgr
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-mgr
|
name: rook-ceph-mgr
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
---
|
---
|
||||||
@ -549,7 +557,7 @@ roleRef:
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: rook-ceph-mgr-system
|
name: rook-ceph-mgr-system
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-mgr
|
name: rook-ceph-mgr
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
---
|
---
|
||||||
@ -563,7 +571,7 @@ roleRef:
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: rook-ceph-mgr-cluster
|
name: rook-ceph-mgr-cluster
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-mgr
|
name: rook-ceph-mgr
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
|
|
||||||
@ -578,7 +586,7 @@ roleRef:
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: rook-ceph-osd
|
name: rook-ceph-osd
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-osd
|
name: rook-ceph-osd
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
|
|
||||||
@ -595,7 +603,7 @@ roleRef:
|
|||||||
kind: Role
|
kind: Role
|
||||||
name: rook-ceph-cmd-reporter
|
name: rook-ceph-cmd-reporter
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-cmd-reporter
|
name: rook-ceph-cmd-reporter
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
# OLM: END CMD REPORTER ROLEBINDING
|
# OLM: END CMD REPORTER ROLEBINDING
|
||||||
@ -613,8 +621,8 @@ metadata:
|
|||||||
# need to be renamed with a value that will match before others.
|
# need to be renamed with a value that will match before others.
|
||||||
name: 00-rook-privileged
|
name: 00-rook-privileged
|
||||||
annotations:
|
annotations:
|
||||||
seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'runtime/default'
|
seccomp.security.alpha.kubernetes.io/allowedProfileNames: "runtime/default"
|
||||||
seccomp.security.alpha.kubernetes.io/defaultProfileName: 'runtime/default'
|
seccomp.security.alpha.kubernetes.io/defaultProfileName: "runtime/default"
|
||||||
spec:
|
spec:
|
||||||
privileged: true
|
privileged: true
|
||||||
allowedCapabilities:
|
allowedCapabilities:
|
||||||
@ -682,7 +690,7 @@ spec:
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: 'psp:rook'
|
name: "psp:rook"
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- policy
|
- policy
|
||||||
@ -700,7 +708,7 @@ metadata:
|
|||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: 'psp:rook'
|
name: "psp:rook"
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-system
|
name: rook-ceph-system
|
||||||
@ -716,7 +724,7 @@ roleRef:
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: psp:rook
|
name: psp:rook
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: default
|
name: default
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
---
|
---
|
||||||
@ -730,7 +738,7 @@ roleRef:
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: psp:rook
|
name: psp:rook
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-osd
|
name: rook-ceph-osd
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
---
|
---
|
||||||
@ -744,7 +752,7 @@ roleRef:
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: psp:rook
|
name: psp:rook
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-mgr
|
name: rook-ceph-mgr
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
---
|
---
|
||||||
@ -758,7 +766,7 @@ roleRef:
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: psp:rook
|
name: psp:rook
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-ceph-cmd-reporter
|
name: rook-ceph-cmd-reporter
|
||||||
namespace: rook-ceph # namespace:cluster
|
namespace: rook-ceph # namespace:cluster
|
||||||
# OLM: END CLUSTER POD SECURITY POLICY BINDINGS
|
# OLM: END CLUSTER POD SECURITY POLICY BINDINGS
|
||||||
@ -893,7 +901,7 @@ metadata:
|
|||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: 'psp:rook'
|
name: "psp:rook"
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-csi-cephfs-plugin-sa
|
name: rook-csi-cephfs-plugin-sa
|
||||||
@ -906,7 +914,7 @@ metadata:
|
|||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: 'psp:rook'
|
name: "psp:rook"
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-csi-cephfs-provisioner-sa
|
name: rook-csi-cephfs-provisioner-sa
|
||||||
@ -1065,7 +1073,19 @@ rules:
|
|||||||
verbs: ["update", "patch"]
|
verbs: ["update", "patch"]
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["configmaps"]
|
resources: ["configmaps"]
|
||||||
verbs: [ "get"]
|
verbs: ["get"]
|
||||||
|
- apiGroups: ["replication.storage.openshift.io"]
|
||||||
|
resources: ["volumereplications", "volumereplicationclasses"]
|
||||||
|
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]
|
||||||
|
- apiGroups: ["replication.storage.openshift.io"]
|
||||||
|
resources: ["volumereplications/finalizers"]
|
||||||
|
verbs: ["update"]
|
||||||
|
- apiGroups: ["replication.storage.openshift.io"]
|
||||||
|
resources: ["volumereplications/status"]
|
||||||
|
verbs: ["get", "patch", "update"]
|
||||||
|
- apiGroups: ["replication.storage.openshift.io"]
|
||||||
|
resources: ["volumereplicationclasses/status"]
|
||||||
|
verbs: ["get"]
|
||||||
# OLM: END CSI RBD CLUSTER ROLE
|
# OLM: END CSI RBD CLUSTER ROLE
|
||||||
# OLM: BEGIN CSI RBD CLUSTER ROLEBINDING
|
# OLM: BEGIN CSI RBD CLUSTER ROLEBINDING
|
||||||
---
|
---
|
||||||
@ -1076,7 +1096,7 @@ metadata:
|
|||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: 'psp:rook'
|
name: "psp:rook"
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-csi-rbd-plugin-sa
|
name: rook-csi-rbd-plugin-sa
|
||||||
@ -1089,7 +1109,7 @@ metadata:
|
|||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: 'psp:rook'
|
name: "psp:rook"
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: rook-csi-rbd-provisioner-sa
|
name: rook-csi-rbd-provisioner-sa
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -29,6 +29,11 @@ data:
|
|||||||
ROOK_CSI_ENABLE_RBD: "true"
|
ROOK_CSI_ENABLE_RBD: "true"
|
||||||
ROOK_CSI_ENABLE_GRPC_METRICS: "false"
|
ROOK_CSI_ENABLE_GRPC_METRICS: "false"
|
||||||
|
|
||||||
|
# Set to true to enable host networking for CSI CephFS and RBD nodeplugins. This may be necessary
|
||||||
|
# in some network configurations where the SDN does not provide access to an external cluster or
|
||||||
|
# there is significant drop in read/write performance.
|
||||||
|
# CSI_ENABLE_HOST_NETWORK: "true"
|
||||||
|
|
||||||
# Set logging level for csi containers.
|
# Set logging level for csi containers.
|
||||||
# Supported values from 0 to 5. 0 for general useful logs, 5 for trace level verbosity.
|
# Supported values from 0 to 5. 0 for general useful logs, 5 for trace level verbosity.
|
||||||
# CSI_LOG_LEVEL: "0"
|
# CSI_LOG_LEVEL: "0"
|
||||||
@ -64,11 +69,11 @@ data:
|
|||||||
# The default version of CSI supported by Rook will be started. To change the version
|
# The default version of CSI supported by Rook will be started. To change the version
|
||||||
# of the CSI driver to something other than what is officially supported, change
|
# of the CSI driver to something other than what is officially supported, change
|
||||||
# these images to the desired release of the CSI driver.
|
# these images to the desired release of the CSI driver.
|
||||||
ROOK_CSI_CEPH_IMAGE: "quay.io/cephcsi/cephcsi:v3.2.1"
|
ROOK_CSI_CEPH_IMAGE: "quay.io/cephcsi/cephcsi:v3.3.1"
|
||||||
ROOK_CSI_REGISTRAR_IMAGE: "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.0.1"
|
ROOK_CSI_REGISTRAR_IMAGE: "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.0.1"
|
||||||
ROOK_CSI_RESIZER_IMAGE: "k8s.gcr.io/sig-storage/csi-resizer:v1.0.1"
|
ROOK_CSI_RESIZER_IMAGE: "k8s.gcr.io/sig-storage/csi-resizer:v1.0.1"
|
||||||
ROOK_CSI_PROVISIONER_IMAGE: "k8s.gcr.io/sig-storage/csi-provisioner:v2.0.4"
|
ROOK_CSI_PROVISIONER_IMAGE: "k8s.gcr.io/sig-storage/csi-provisioner:v2.0.4"
|
||||||
ROOK_CSI_SNAPSHOTTER_IMAGE: "k8s.gcr.io/sig-storage/csi-snapshotter:v3.0.2"
|
ROOK_CSI_SNAPSHOTTER_IMAGE: "k8s.gcr.io/sig-storage/csi-snapshotter:v4.0.0"
|
||||||
ROOK_CSI_ATTACHER_IMAGE: "k8s.gcr.io/sig-storage/csi-attacher:v3.0.2"
|
ROOK_CSI_ATTACHER_IMAGE: "k8s.gcr.io/sig-storage/csi-attacher:v3.0.2"
|
||||||
|
|
||||||
# (Optional) set user created priorityclassName for csi plugin pods.
|
# (Optional) set user created priorityclassName for csi plugin pods.
|
||||||
@ -274,6 +279,16 @@ data:
|
|||||||
# Whether the OBC provisioner should watch on the operator namespace or not, if not the namespace of the cluster will be used
|
# Whether the OBC provisioner should watch on the operator namespace or not, if not the namespace of the cluster will be used
|
||||||
ROOK_OBC_WATCH_OPERATOR_NAMESPACE: "true"
|
ROOK_OBC_WATCH_OPERATOR_NAMESPACE: "true"
|
||||||
|
|
||||||
|
# Whether to enable the flex driver. By default it is enabled and is fully supported, but will be deprecated in some future release
|
||||||
|
# in favor of the CSI driver.
|
||||||
|
ROOK_ENABLE_FLEX_DRIVER: "false"
|
||||||
|
# Whether to start the discovery daemon to watch for raw storage devices on nodes in the cluster.
|
||||||
|
# This daemon does not need to run if you are only going to create your OSDs based on StorageClassDeviceSets with PVCs.
|
||||||
|
ROOK_ENABLE_DISCOVERY_DAEMON: "false"
|
||||||
|
# Enable volume replication controller
|
||||||
|
CSI_ENABLE_VOLUME_REPLICATION: "false"
|
||||||
|
# CSI_VOLUME_REPLICATION_IMAGE: "quay.io/csiaddons/volumereplication-operator:v0.1.0"
|
||||||
|
|
||||||
# (Optional) Admission controller NodeAffinity.
|
# (Optional) Admission controller NodeAffinity.
|
||||||
# ADMISSION_CONTROLLER_NODE_AFFINITY: "role=storage-node; storage=rook, ceph"
|
# ADMISSION_CONTROLLER_NODE_AFFINITY: "role=storage-node; storage=rook, ceph"
|
||||||
# (Optional) Admission controller tolerations list. Put here list of taints you want to tolerate in YAML format.
|
# (Optional) Admission controller tolerations list. Put here list of taints you want to tolerate in YAML format.
|
||||||
@ -308,7 +323,7 @@ spec:
|
|||||||
serviceAccountName: rook-ceph-system
|
serviceAccountName: rook-ceph-system
|
||||||
containers:
|
containers:
|
||||||
- name: rook-ceph-operator
|
- name: rook-ceph-operator
|
||||||
image: rook/ceph:v1.5.9
|
image: rook/ceph:v1.6.2
|
||||||
args: ["ceph", "operator"]
|
args: ["ceph", "operator"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/rook
|
- mountPath: /var/lib/rook
|
||||||
@ -386,12 +401,6 @@ spec:
|
|||||||
# (Optional) Discover Agent Pod Labels.
|
# (Optional) Discover Agent Pod Labels.
|
||||||
# - name: DISCOVER_AGENT_POD_LABELS
|
# - name: DISCOVER_AGENT_POD_LABELS
|
||||||
# value: "key1=value1,key2=value2"
|
# value: "key1=value1,key2=value2"
|
||||||
# Allow rook to create multiple file systems. Note: This is considered
|
|
||||||
# an experimental feature in Ceph as described at
|
|
||||||
# http://docs.ceph.com/docs/master/cephfs/experimental-features/#multiple-filesystems-within-a-ceph-cluster
|
|
||||||
# which might cause mons to crash as seen in https://github.com/rook/rook/issues/1027
|
|
||||||
- name: ROOK_ALLOW_MULTIPLE_FILESYSTEMS
|
|
||||||
value: "false"
|
|
||||||
|
|
||||||
# The logging level for the operator: INFO | DEBUG
|
# The logging level for the operator: INFO | DEBUG
|
||||||
- name: ROOK_LOG_LEVEL
|
- name: ROOK_LOG_LEVEL
|
||||||
@ -430,16 +439,6 @@ spec:
|
|||||||
- name: DISCOVER_DAEMON_UDEV_BLACKLIST
|
- name: DISCOVER_DAEMON_UDEV_BLACKLIST
|
||||||
value: "(?i)dm-[0-9]+,(?i)rbd[0-9]+,(?i)nbd[0-9]+"
|
value: "(?i)dm-[0-9]+,(?i)rbd[0-9]+,(?i)nbd[0-9]+"
|
||||||
|
|
||||||
# Whether to enable the flex driver. By default it is enabled and is fully supported, but will be deprecated in some future release
|
|
||||||
# in favor of the CSI driver.
|
|
||||||
- name: ROOK_ENABLE_FLEX_DRIVER
|
|
||||||
value: "false"
|
|
||||||
|
|
||||||
# Whether to start the discovery daemon to watch for raw storage devices on nodes in the cluster.
|
|
||||||
# This daemon does not need to run if you are only going to create your OSDs based on StorageClassDeviceSets with PVCs.
|
|
||||||
- name: ROOK_ENABLE_DISCOVERY_DAEMON
|
|
||||||
value: "false"
|
|
||||||
|
|
||||||
# Time to wait until the node controller will move Rook pods to other
|
# Time to wait until the node controller will move Rook pods to other
|
||||||
# nodes after detecting an unreachable node.
|
# nodes after detecting an unreachable node.
|
||||||
# Pods affected by this setting are:
|
# Pods affected by this setting are:
|
||||||
|
@ -108,12 +108,12 @@ spec:
|
|||||||
rook-operator:
|
rook-operator:
|
||||||
rook-ceph-operator:
|
rook-ceph-operator:
|
||||||
rook-ceph-operator:
|
rook-ceph-operator:
|
||||||
image: rook/ceph:v1.5.9
|
image: rook/ceph:v1.6.2
|
||||||
rook-ceph-operator-config:
|
rook-ceph-operator-config:
|
||||||
ceph_daemon:
|
ceph_daemon:
|
||||||
image: ceph/ceph:v15.2.10
|
image: ceph/ceph:v15.2.11
|
||||||
rook_csi_ceph_image:
|
rook_csi_ceph_image:
|
||||||
image: quay.io/cephcsi/cephcsi:v3.2.1
|
image: quay.io/cephcsi/cephcsi:v3.3.1
|
||||||
rook_csi_registrar_image:
|
rook_csi_registrar_image:
|
||||||
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.0.1
|
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.0.1
|
||||||
rook_csi_resizer_image:
|
rook_csi_resizer_image:
|
||||||
@ -121,15 +121,15 @@ spec:
|
|||||||
rook_csi_provisioner_image:
|
rook_csi_provisioner_image:
|
||||||
image: k8s.gcr.io/sig-storage/csi-provisioner:v2.0.4
|
image: k8s.gcr.io/sig-storage/csi-provisioner:v2.0.4
|
||||||
rook_csi_snapshotter_image:
|
rook_csi_snapshotter_image:
|
||||||
image: k8s.gcr.io/sig-storage/csi-snapshotter:v3.0.2
|
image: k8s.gcr.io/sig-storage/csi-snapshotter:v4.0.0
|
||||||
rook_csi_attacher_image:
|
rook_csi_attacher_image:
|
||||||
image: k8s.gcr.io/sig-storage/csi-attacher:v3.0.2
|
image: k8s.gcr.io/sig-storage/csi-attacher:v3.0.2
|
||||||
storage-rook:
|
storage-rook:
|
||||||
ceph:
|
ceph:
|
||||||
ceph-version:
|
ceph-version:
|
||||||
image: ceph/ceph:v15.2.10
|
image: ceph/ceph:v15.2.11
|
||||||
rook-ceph-tools:
|
rook-ceph-tools:
|
||||||
image: rook/ceph:v1.5.9
|
image: rook/ceph:v1.6.2
|
||||||
|
|
||||||
image_components:
|
image_components:
|
||||||
# image_components are organized by
|
# image_components are organized by
|
||||||
|
@ -16,6 +16,7 @@ data:
|
|||||||
mon_warn_on_pool_no_redundancy = true
|
mon_warn_on_pool_no_redundancy = true
|
||||||
# # You can add other default configuration sections
|
# # You can add other default configuration sections
|
||||||
# # to create fully customized ceph.conf
|
# # to create fully customized ceph.conf
|
||||||
# [mon]
|
[mon]
|
||||||
|
auth_allow_insecure_global_id_reclaim = false
|
||||||
# [osd]
|
# [osd]
|
||||||
# [rgw]
|
# [rgw]
|
@ -6,12 +6,16 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
dataDirHostPath: /var/lib/rook
|
dataDirHostPath: /var/lib/rook
|
||||||
cephVersion:
|
cephVersion:
|
||||||
#see: https://tracker.ceph.com/issues/48797
|
image: ceph/ceph:v15.2.11
|
||||||
image: ceph/ceph:v15.2.10
|
|
||||||
#allowUnsupported: true
|
#allowUnsupported: true
|
||||||
mon:
|
mon:
|
||||||
count: 3
|
count: 3
|
||||||
allowMultiplePerNode: false
|
allowMultiplePerNode: false
|
||||||
|
mgr:
|
||||||
|
count: 1
|
||||||
|
modules:
|
||||||
|
- name: pg_autoscaler
|
||||||
|
enabled: true
|
||||||
dashboard:
|
dashboard:
|
||||||
enabled: true
|
enabled: true
|
||||||
# If you are going to use the dashboard together with ingress-controller,
|
# If you are going to use the dashboard together with ingress-controller,
|
||||||
@ -57,4 +61,17 @@ spec:
|
|||||||
# deviceFilter: "^/dev/sd[c-h]"
|
# deviceFilter: "^/dev/sd[c-h]"
|
||||||
# Also you can configure each device and/or each node. Please refer to the official rook
|
# Also you can configure each device and/or each node. Please refer to the official rook
|
||||||
# documentation for the branch 1.5.x
|
# documentation for the branch 1.5.x
|
||||||
|
# The section for configuring management of daemon disruptions during upgrade or fencing.
|
||||||
|
disruptionManagement:
|
||||||
|
# If true, the operator will create and manage PodDisruptionBudgets for OSD, Mon, RGW, and MDS daemons. OSD PDBs are managed dynamically
|
||||||
|
# via the strategy outlined in the [design](https://github.com/rook/rook/blob/master/design/ceph/ceph-managed-disruptionbudgets.md). The operator will
|
||||||
|
# block eviction of OSDs by default and unblock them safely when drains are detected.
|
||||||
|
managePodBudgets: true
|
||||||
|
# A duration in minutes that determines how long an entire failureDomain like `region/zone/host` will be held in `noout` (in addition to the
|
||||||
|
# default DOWN/OUT interval) when it is draining. This is only relevant when `managePodBudgets` is `true`. The default value is `30` minutes.
|
||||||
|
osdMaintenanceTimeout: 30
|
||||||
|
# A duration in minutes that the operator will wait for the placement groups to become healthy (active+clean) after a drain was completed and OSDs came back up.
|
||||||
|
# Operator will continue with the next drain if the timeout exceeds. It only works if `managePodBudgets` is `true`.
|
||||||
|
# No values or 0 means that the operator will wait until the placement groups are healthy before unblocking the next drain.
|
||||||
|
pgHealthCheckTimeout: 0
|
||||||
---
|
---
|
||||||
|
@ -19,7 +19,7 @@ spec:
|
|||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
containers:
|
containers:
|
||||||
- name: rook-ceph-tools
|
- name: rook-ceph-tools
|
||||||
image: rook/ceph:v1.5.9
|
image: rook/ceph:v1.6.2
|
||||||
command: ["/tini"]
|
command: ["/tini"]
|
||||||
args: ["-g", "--", "/usr/local/bin/toolbox.sh"]
|
args: ["-g", "--", "/usr/local/bin/toolbox.sh"]
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user