From e9cd35f2b8d43ab7669dfa5f71db22e08f622240 Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Thu, 12 Nov 2020 14:20:52 -0700 Subject: [PATCH] docs: update ceph upgrade to use common.yaml Use common.yaml to apply changes to resources instead of keeping an upgrade-*-apply.yaml file. Update the upgrade docs to reflect this also. Signed-off-by: Blaine Gardner --- Documentation/ceph-upgrade.md | 22 +- .../ceph/upgrade-from-v1.4-apply.yaml | 66 - .../ceph/upgrade-from-v1.4-crds.yaml | 1317 ----------------- 3 files changed, 13 insertions(+), 1392 deletions(-) delete mode 100644 cluster/examples/kubernetes/ceph/upgrade-from-v1.4-apply.yaml delete mode 100644 cluster/examples/kubernetes/ceph/upgrade-from-v1.4-crds.yaml diff --git a/Documentation/ceph-upgrade.md b/Documentation/ceph-upgrade.md index a12ddb054..43a2b054a 100644 --- a/Documentation/ceph-upgrade.md +++ b/Documentation/ceph-upgrade.md @@ -58,9 +58,13 @@ another are as simple as updating the image of the Rook operator. For example, w released, the process of updating from v1.5.0 is as simple as running the following: ```console +kubectl apply -f common.yaml -f crds.yaml kubectl -n rook-ceph set image deploy/rook-ceph-operator rook-ceph-operator=rook/ceph:v1.5.1 ``` +As exemplified above, it is a good practice to update Rook-Ceph common resources from the example +manifests before any update. + ## Helm Upgrades If you have installed Rook via the Helm chart, Helm will handle some details of the upgrade for you. @@ -255,20 +259,20 @@ time without compatibility support and without prior notice. Let's get started! -## 1. Update the RBAC and CRDs +## 1. Update common resources and CRDs > Automatically updated if you are upgrading via the helm chart -First apply new resources. This includes slightly modified privileges (RBAC) needed by the Operator -and updates to the Custom Resource Definitions (CRDs). +First apply updates to Rook-Ceph common resources. This includes slightly modified privileges (RBAC) +needed by the Operator. Also update the Custom Resource Definitions (CRDs). > **IMPORTANT:** If you are using Kubernetes version v1.15 or lower, you will need to manually -> modify the `upgrade-from-v1.4-apply.yaml` file to use +> modify the `common.yaml` file to use > `rbac.authorization.k8s.io/v1beta1` instead of `rbac.authorization.k8s.io/v1` > You will also need to apply `pre-k8s-1.16/crds.yaml` instead of `crds.yaml`. ```sh -kubectl apply -f upgrade-from-v1.4-apply.yaml -f crds.yaml +kubectl apply -f common.yaml -f crds.yaml ``` ## 2. Update Ceph CSI versions @@ -316,8 +320,8 @@ rook-ceph-osd-1 req/upd/avl: 1/1/1 rook-version=v1.4.7 rook-ceph-osd-2 req/upd/avl: 1/1/1 rook-version=v1.4.7 ``` -An easy check to see if the upgrade is totally -finished is to check that there is only one `rook-version` reported across the cluster. +An easy check to see if the upgrade is totally finished is to check that there is only one +`rook-version` reported across the cluster. ```console # kubectl -n $ROOK_NAMESPACE get deployment -l rook_cluster=$ROOK_NAMESPACE -o jsonpath='{range .items[*]}{"rook-version="}{.metadata.labels.rook-version}{"\n"}{end}' | sort | uniq @@ -367,10 +371,10 @@ These images are tagged in a few ways: #### 1. Update the CRDs -It is a good practice to update Rook-Ceph CRDs from the example manifests before any update. +It is a good practice to update Rook-Ceph common resources from the example manifests before any update. ```sh -kubectl apply -f crds.yaml +kubectl apply -f common.yaml -f crds.yaml ``` #### 2. Update the main Ceph daemons diff --git a/cluster/examples/kubernetes/ceph/upgrade-from-v1.4-apply.yaml b/cluster/examples/kubernetes/ceph/upgrade-from-v1.4-apply.yaml deleted file mode 100644 index a31f8b9d0..000000000 --- a/cluster/examples/kubernetes/ceph/upgrade-from-v1.4-apply.yaml +++ /dev/null @@ -1,66 +0,0 @@ -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: rbd-external-provisioner-runner -rules: - - apiGroups: [""] - resources: ["secrets"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "create", "delete", "update", "patch"] - - apiGroups: [""] - resources: ["persistentvolumeclaims"] - verbs: ["get", "list", "watch", "update"] - - apiGroups: ["storage.k8s.io"] - resources: ["volumeattachments"] - verbs: ["get", "list", "watch", "update", "patch"] - - apiGroups: ["storage.k8s.io"] - resources: ["volumeattachments/status"] - verbs: ["patch"] - - apiGroups: [""] - resources: ["nodes"] - verbs: ["get", "list", "watch"] - - apiGroups: ["storage.k8s.io"] - resources: ["storageclasses"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["events"] - verbs: ["list", "watch", "create", "update", "patch"] - - apiGroups: ["snapshot.storage.k8s.io"] - resources: ["volumesnapshots"] - verbs: ["get", "list", "watch", "update"] - - apiGroups: ["snapshot.storage.k8s.io"] - resources: ["volumesnapshotcontents"] - verbs: ["create", "get", "list", "watch", "update", "delete"] - - apiGroups: ["snapshot.storage.k8s.io"] - resources: ["volumesnapshotclasses"] - verbs: ["get", "list", "watch"] - - apiGroups: ["snapshot.storage.k8s.io"] - resources: ["volumesnapshotcontents/status"] - verbs: ["update"] - - apiGroups: ["apiextensions.k8s.io"] - resources: ["customresourcedefinitions"] - verbs: ["create", "list", "watch", "delete", "get", "update"] - - apiGroups: ["snapshot.storage.k8s.io"] - resources: ["volumesnapshots/status"] - verbs: ["update"] - - apiGroups: [""] - resources: ["persistentvolumeclaims/status"] - verbs: ["update", "patch"] ---- -kind: Role -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - namespace: rook-ceph - name: rbd-external-provisioner-cfg -rules: - - apiGroups: [""] - resources: ["endpoints"] - verbs: ["get", "watch", "list", "delete", "update", "create"] - - apiGroups: [""] - resources: ["configmaps"] - verbs: ["get", "list", "watch", "create", "delete", "update"] - - apiGroups: ["coordination.k8s.io"] - resources: ["leases"] - verbs: ["get", "watch", "list", "delete", "update", "create"] diff --git a/cluster/examples/kubernetes/ceph/upgrade-from-v1.4-crds.yaml b/cluster/examples/kubernetes/ceph/upgrade-from-v1.4-crds.yaml deleted file mode 100644 index 2b380ec54..000000000 --- a/cluster/examples/kubernetes/ceph/upgrade-from-v1.4-crds.yaml +++ /dev/null @@ -1,1317 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: cephclusters.ceph.rook.io -spec: - group: ceph.rook.io - names: - kind: CephCluster - plural: cephclusters - singular: cephcluster - scope: Namespaced - versions: - - name: v1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - cephVersion: - type: object - properties: - allowUnsupported: - type: boolean - image: - type: string - dashboard: - type: object - properties: - enabled: - type: boolean - urlPrefix: - type: string - port: - type: integer - minimum: 0 - maximum: 65535 - ssl: - type: boolean - dataDirHostPath: - pattern: ^/(\S+) - type: string - disruptionManagement: - type: object - properties: - machineDisruptionBudgetNamespace: - type: string - managePodBudgets: - type: boolean - osdMaintenanceTimeout: - type: integer - manageMachineDisruptionBudgets: - type: boolean - skipUpgradeChecks: - type: boolean - continueUpgradeAfterChecksEvenIfNotHealthy: - type: boolean - mon: - type: object - properties: - allowMultiplePerNode: - type: boolean - count: - maximum: 9 - minimum: 0 - type: integer - volumeClaimTemplate: - type: object - x-kubernetes-preserve-unknown-fields: true - mgr: - type: object - properties: - modules: - type: array - items: - type: object - properties: - name: - type: string - enabled: - type: boolean - crashCollector: - type: object - properties: - disable: - type: boolean - network: - type: object - nullable: true - properties: - hostNetwork: - type: boolean - provider: - type: string - selectors: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - ipFamily: - type: string - storage: - type: object - properties: - disruptionManagement: - type: object - nullable: true - properties: - machineDisruptionBudgetNamespace: - type: string - managePodBudgets: - type: boolean - osdMaintenanceTimeout: - type: integer - manageMachineDisruptionBudgets: - type: boolean - useAllNodes: - type: boolean - nodes: - type: array - nullable: true - items: - type: object - properties: - name: - type: string - config: - type: object - nullable: true - properties: - metadataDevice: - type: string - storeType: - type: string - pattern: ^(bluestore)$ - databaseSizeMB: - type: string - walSizeMB: - type: string - journalSizeMB: - type: string - osdsPerDevice: - type: string - encryptedDevice: - type: string - pattern: ^(true|false)$ - useAllDevices: - type: boolean - deviceFilter: - type: string - nullable: true - devicePathFilter: - type: string - devices: - type: array - items: - type: object - properties: - name: - type: string - config: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - resources: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - useAllDevices: - type: boolean - deviceFilter: - type: string - nullable: true - devicePathFilter: - type: string - config: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - storageClassDeviceSets: - type: array - nullable: true - items: - type: object - properties: - name: - type: string - count: - type: integer - format: int32 - portable: - type: boolean - tuneDeviceClass: - type: boolean - tuneFastDeviceClass: - type: boolean - encrypted: - type: boolean - schedulerName: - type: string - config: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - placement: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - preparePlacement: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - resources: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - volumeClaimTemplates: - type: array - items: - type: object - x-kubernetes-preserve-unknown-fields: true - driveGroups: - type: array - nullable: true - items: - type: object - properties: - name: - type: string - spec: - type: object - x-kubernetes-preserve-unknown-fields: true - placement: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - required: - - name - - spec - monitoring: - type: object - properties: - enabled: - type: boolean - rulesNamespace: - type: string - externalMgrEndpoints: - type: array - items: - type: object - properties: - ip: - type: string - removeOSDsIfOutAndSafeToRemove: - type: boolean - external: - type: object - properties: - enable: - type: boolean - cleanupPolicy: - type: object - properties: - allowUninstallWithVolumes: - type: boolean - confirmation: - type: string - pattern: ^$|^yes-really-destroy-data$ - sanitizeDisks: - type: object - properties: - method: - type: string - pattern: ^(complete|quick)$ - dataSource: - type: string - pattern: ^(zero|random)$ - iteration: - type: integer - format: int32 - security: - type: object - properties: - kms: - type: object - properties: - connectionDetails: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - tokenSecretName: - type: string - annotations: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - placement: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - labels: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - resources: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - healthCheck: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - priorityClassNames: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - status: - type: object - x-kubernetes-preserve-unknown-fields: true - additionalPrinterColumns: - - name: DataDirHostPath - type: string - description: Directory used on the K8s nodes - jsonPath: .spec.dataDirHostPath - - name: MonCount - type: string - description: Number of MONs - jsonPath: .spec.mon.count - - name: Age - type: date - jsonPath: .metadata.creationTimestamp - - name: Phase - type: string - description: Phase - jsonPath: .status.phase - - name: Message - type: string - description: Message - jsonPath: .status.message - - name: Health - type: string - description: Ceph Health - jsonPath: .status.ceph.health - subresources: - status: {} -# OLM: END CEPH CRD -# OLM: BEGIN CEPH CLIENT CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: cephclients.ceph.rook.io -spec: - group: ceph.rook.io - names: - kind: CephClient - listKind: CephClientList - plural: cephclients - singular: cephclient - scope: Namespaced - versions: - - name: v1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - caps: - type: object - x-kubernetes-preserve-unknown-fields: true - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} -# OLM: END CEPH CLIENT CRD -# OLM: BEGIN CEPH RBD MIRROR CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: cephrbdmirrors.ceph.rook.io -spec: - group: ceph.rook.io - names: - kind: CephRBDMirror - listKind: CephRBDMirrorList - plural: cephrbdmirrors - singular: cephrbdmirror - scope: Namespaced - versions: - - name: v1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - count: - type: integer - minimum: 1 - maximum: 100 - peers: - type: object - properties: - secretNames: - type: array - items: - type: string - resources: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - priorityClassName: - type: string - placement: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - annotations: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} - -# OLM: END CEPH RBD MIRROR CRD -# OLM: BEGIN CEPH FS CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: cephfilesystems.ceph.rook.io -spec: - group: ceph.rook.io - names: - kind: CephFilesystem - listKind: CephFilesystemList - plural: cephfilesystems - singular: cephfilesystem - scope: Namespaced - versions: - - name: v1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - metadataServer: - type: object - properties: - activeCount: - minimum: 1 - maximum: 10 - type: integer - activeStandby: - type: boolean - annotations: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - placement: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - resources: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - priorityClassName: - type: string - labels: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - metadataPool: - type: object - nullable: true - properties: - failureDomain: - type: string - deviceClass: - type: string - crushRoot: - type: string - replicated: - type: object - nullable: true - properties: - size: - minimum: 0 - maximum: 10 - type: integer - requireSafeReplicaSize: - type: boolean - replicasPerFailureDomain: - type: integer - subFailureDomain: - type: string - parameters: - type: object - x-kubernetes-preserve-unknown-fields: true - erasureCoded: - type: object - nullable: true - properties: - dataChunks: - minimum: 0 - maximum: 10 - type: integer - codingChunks: - minimum: 0 - maximum: 10 - type: integer - compressionMode: - type: string - enum: - - "" - - none - - passive - - aggressive - - force - dataPools: - type: array - nullable: true - items: - type: object - properties: - failureDomain: - type: string - deviceClass: - type: string - crushRoot: - type: string - replicated: - type: object - nullable: true - properties: - size: - minimum: 0 - maximum: 10 - type: integer - requireSafeReplicaSize: - type: boolean - replicasPerFailureDomain: - type: integer - subFailureDomain: - type: string - erasureCoded: - type: object - nullable: true - properties: - dataChunks: - minimum: 0 - maximum: 10 - type: integer - codingChunks: - minimum: 0 - maximum: 10 - type: integer - compressionMode: - type: string - enum: - - "" - - none - - passive - - aggressive - - force - parameters: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - preservePoolsOnDelete: - type: boolean - preserveFilesystemOnDelete: - type: boolean - status: - type: object - x-kubernetes-preserve-unknown-fields: true - additionalPrinterColumns: - - name: ActiveMDS - type: string - description: Number of desired active MDS daemons - jsonPath: .spec.metadataServer.activeCount - - name: Age - type: date - jsonPath: .metadata.creationTimestamp - subresources: - status: {} -# OLM: END CEPH FS CRD -# OLM: BEGIN CEPH NFS CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: cephnfses.ceph.rook.io -spec: - group: ceph.rook.io - names: - kind: CephNFS - listKind: CephNFSList - plural: cephnfses - singular: cephnfs - shortNames: - - nfs - scope: Namespaced - versions: - - name: v1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - rados: - type: object - properties: - pool: - type: string - namespace: - type: string - server: - type: object - properties: - active: - type: integer - annotations: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - placement: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - resources: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - priorityClassName: - type: string - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} -# OLM: END CEPH NFS CRD -# OLM: BEGIN CEPH OBJECT STORE CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: cephobjectstores.ceph.rook.io -spec: - group: ceph.rook.io - names: - kind: CephObjectStore - listKind: CephObjectStoreList - plural: cephobjectstores - singular: cephobjectstore - scope: Namespaced - versions: - - name: v1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - gateway: - type: object - properties: - type: - type: string - sslCertificateRef: - type: string - nullable: true - port: - type: integer - minimum: 0 - maximum: 65535 - securePort: - type: integer - minimum: 0 - maximum: 65535 - instances: - type: integer - externalRgwEndpoints: - type: array - nullable: true - items: - type: object - properties: - ip: - type: string - annotations: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - placement: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - resources: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - labels: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - priorityClassName: - type: string - metadataPool: - type: object - nullable: true - properties: - failureDomain: - type: string - crushRoot: - type: string - replicated: - type: object - nullable: true - properties: - size: - type: integer - requireSafeReplicaSize: - type: boolean - replicasPerFailureDomain: - type: integer - subFailureDomain: - type: string - erasureCoded: - type: object - nullable: true - properties: - dataChunks: - type: integer - codingChunks: - type: integer - compressionMode: - type: string - enum: - - "" - - none - - passive - - aggressive - - force - parameters: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - zone: - type: object - properties: - name: - type: string - dataPool: - type: object - nullable: true - properties: - failureDomain: - type: string - crushRoot: - type: string - replicated: - type: object - nullable: true - properties: - size: - type: integer - requireSafeReplicaSize: - type: boolean - replicasPerFailureDomain: - type: integer - subFailureDomain: - type: string - erasureCoded: - type: object - nullable: true - properties: - dataChunks: - type: integer - codingChunks: - type: integer - compressionMode: - type: string - enum: - - "" - - none - - passive - - aggressive - - force - parameters: - type: object - x-kubernetes-preserve-unknown-fields: true - preservePoolsOnDelete: - type: boolean - healthCheck: - type: object - nullable: true - properties: - bucket: - type: object - nullable: true - properties: - enabled: - type: boolean - interval: - type: string - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} - -# OLM: END CEPH OBJECT STORE CRD -# OLM: BEGIN CEPH OBJECT STORE USERS CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: cephobjectstoreusers.ceph.rook.io -spec: - group: ceph.rook.io - names: - kind: CephObjectStoreUser - listKind: CephObjectStoreUserList - plural: cephobjectstoreusers - singular: cephobjectstoreuser - shortNames: - - rcou - - objectuser - scope: Namespaced - versions: - - name: v1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - store: - type: string - displayName: - type: string - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} -# OLM: END CEPH OBJECT STORE USERS CRD -# OLM: BEGIN CEPH OBJECT REALM CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: cephobjectrealms.ceph.rook.io -spec: - group: ceph.rook.io - names: - kind: CephObjectRealm - listKind: CephObjectRealmList - plural: cephobjectrealms - singular: cephobjectrealm - scope: Namespaced - versions: - - name: v1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - pull: - type: object - properties: - endpoint: - type: string - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} -# OLM: END CEPH OBJECT REALM CRD -# OLM: BEGIN CEPH OBJECT ZONEGROUP CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: cephobjectzonegroups.ceph.rook.io -spec: - group: ceph.rook.io - names: - kind: CephObjectZoneGroup - listKind: CephObjectZoneGroupList - plural: cephobjectzonegroups - singular: cephobjectzonegroup - scope: Namespaced - versions: - - name: v1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - realm: - type: string - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} -# OLM: END CEPH OBJECT ZONEGROUP CRD -# OLM: BEGIN CEPH OBJECT ZONE CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: cephobjectzones.ceph.rook.io -spec: - group: ceph.rook.io - names: - kind: CephObjectZone - listKind: CephObjectZoneList - plural: cephobjectzones - singular: cephobjectzone - scope: Namespaced - versions: - - name: v1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - zoneGroup: - type: string - metadataPool: - type: object - nullable: true - properties: - failureDomain: - type: string - crushRoot: - type: string - replicated: - type: object - nullable: true - properties: - size: - type: integer - requireSafeReplicaSize: - type: boolean - erasureCoded: - type: object - nullable: true - properties: - dataChunks: - type: integer - codingChunks: - type: integer - compressionMode: - type: string - enum: - - "" - - none - - passive - - aggressive - - force - parameters: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - dataPool: - type: object - properties: - failureDomain: - type: string - crushRoot: - type: string - replicated: - type: object - nullable: true - properties: - size: - type: integer - requireSafeReplicaSize: - type: boolean - erasureCoded: - type: object - nullable: true - properties: - dataChunks: - type: integer - codingChunks: - type: integer - compressionMode: - type: string - enum: - - "" - - none - - passive - - aggressive - - force - parameters: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - preservePoolsOnDelete: - type: boolean - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} -# OLM: END CEPH OBJECT ZONE CRD -# OLM: BEGIN CEPH BLOCK POOL CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: cephblockpools.ceph.rook.io -spec: - group: ceph.rook.io - names: - kind: CephBlockPool - listKind: CephBlockPoolList - plural: cephblockpools - singular: cephblockpool - scope: Namespaced - versions: - - name: v1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - failureDomain: - type: string - deviceClass: - type: string - crushRoot: - type: string - replicated: - type: object - nullable: true - properties: - size: - type: integer - minimum: 0 - maximum: 9 - targetSizeRatio: - type: number - requireSafeReplicaSize: - type: boolean - replicasPerFailureDomain: - type: integer - subFailureDomain: - type: string - erasureCoded: - type: object - nullable: true - properties: - dataChunks: - type: integer - minimum: 0 - maximum: 9 - codingChunks: - type: integer - minimum: 0 - maximum: 9 - compressionMode: - type: string - enum: - - "" - - none - - passive - - aggressive - - force - enableRBDStats: - description: - EnableRBDStats is used to enable gathering of statistics - for all RBD images in the pool - type: boolean - parameters: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - mirroring: - type: object - nullable: true - properties: - enabled: - type: boolean - mode: - type: string - enum: - - image - - pool - statusCheck: - type: object - x-kubernetes-preserve-unknown-fields: true - annotations: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} - -# OLM: END CEPH BLOCK POOL CRD -# OLM: BEGIN CEPH VOLUME POOL CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: volumes.rook.io -spec: - group: rook.io - names: - kind: Volume - listKind: VolumeList - plural: volumes - singular: volume - shortNames: - - rv - scope: Namespaced - versions: - - name: v1alpha2 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - attachments: - type: array - items: - type: object - properties: - node: - type: string - podNamespace: - type: string - podName: - type: string - clusterName: - type: string - mountDir: - type: string - readOnly: - type: boolean - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} -# OLM: END CEPH VOLUME POOL CRD -# OLM: BEGIN OBJECTBUCKET CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: objectbuckets.objectbucket.io -spec: - group: objectbucket.io - names: - kind: ObjectBucket - listKind: ObjectBucketList - plural: objectbuckets - singular: objectbucket - shortNames: - - ob - - obs - scope: Cluster - versions: - - name: v1alpha1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - storageClassName: - type: string - endpoint: - type: object - nullable: true - properties: - bucketHost: - type: string - bucketPort: - type: integer - format: int32 - bucketName: - type: string - region: - type: string - subRegion: - type: string - additionalConfig: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - authentication: - type: object - nullable: true - items: - type: object - x-kubernetes-preserve-unknown-fields: true - additionalState: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - reclaimPolicy: - type: string - claimRef: - type: object - nullable: true - items: - type: object - x-kubernetes-preserve-unknown-fields: true - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} -# OLM: END OBJECTBUCKET CRD -# OLM: BEGIN OBJECTBUCKETCLAIM CRD ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - name: objectbucketclaims.objectbucket.io -spec: - group: objectbucket.io - names: - kind: ObjectBucketClaim - listKind: ObjectBucketClaimList - plural: objectbucketclaims - singular: objectbucketclaim - shortNames: - - obc - - obcs - scope: Namespaced - versions: - - name: v1alpha1 - served: true - storage: true - schema: - openAPIV3Schema: - type: object - properties: - spec: - type: object - properties: - storageClassName: - type: string - bucketName: - type: string - generateBucketName: - type: string - additionalConfig: - type: object - nullable: true - x-kubernetes-preserve-unknown-fields: true - status: - type: object - x-kubernetes-preserve-unknown-fields: true - subresources: - status: {} -# OLM: END OBJECTBUCKETCLAIM CRD