diff --git a/Documentation/Helm-Charts/operator-chart.md b/Documentation/Helm-Charts/operator-chart.md index 982f0e5a8..7cad35705 100644 --- a/Documentation/Helm-Charts/operator-chart.md +++ b/Documentation/Helm-Charts/operator-chart.md @@ -113,10 +113,10 @@ The following tables lists the configurable parameters of the rook-operator char | `csi.rbdPluginUpdateStrategy` | CSI Rbd plugin daemonset update strategy, supported values are OnDelete and RollingUpdate. | `RollingUpdate` | | `csi.cephFSPluginUpdateStrategy` | CSI CephFS plugin daemonset update strategy, supported values are OnDelete and RollingUpdate. | `RollingUpdate` | | `csi.nfsPluginUpdateStrategy` | CSI NFS plugin daemonset update strategy, supported values are OnDelete and RollingUpdate. | `RollingUpdate` | -| `csi.registrar.image` | Kubernetes CSI registrar image. | `registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0` | +| `csi.registrar.image` | Kubernetes CSI registrar image. | `registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1` | | `csi.resizer.image` | Kubernetes CSI resizer image. | `registry.k8s.io/sig-storage/csi-resizer:v1.4.0` | | `csi.provisioner.image` | Kubernetes CSI provisioner image. | `registry.k8s.io/sig-storage/csi-provisioner:v3.1.0` | -| `csi.snapshotter.image` | Kubernetes CSI snapshotter image. | `registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1` | +| `csi.snapshotter.image` | Kubernetes CSI snapshotter image. | `registry.k8s.io/sig-storage/csi-snapshotter:v6.0.1` | | `csi.attacher.image` | Kubernetes CSI Attacher image. | `registry.k8s.io/sig-storage/csi-attacher:v3.4.0` | | `csi.cephfsPodLabels` | Labels to add to the CSI CephFS Pods. | `` | | `csi.rbdPodLabels` | Labels to add to the CSI RBD Pods. | `` | @@ -125,7 +125,7 @@ The following tables lists the configurable parameters of the rook-operator char | `csi.csiAddons.enabled` | Enable CSIAddons | `false` | | `csi.csiAddons.image` | CSIAddons Sidecar image. | `quay.io/csiaddons/k8s-sidecar:v0.2.1` | | `csi.nfs.enabled` | Enable nfs driver. | `false` | -| `csi.nfs.image` | NFS nodeplugin image. | `registry.k8s.io/sig-storage/nfsplugin:v3.1.0` | +| `csi.nfs.image` | NFS nodeplugin image. | `registry.k8s.io/sig-storage/nfsplugin:v4.0.0` | | `admissionController.tolerations` | Array of tolerations in YAML format which will be added to admission controller deployment. | `` | | `admissionController.nodeAffinity` | The node labels for affinity of the admission controller deployment [^1] | `` | | `monitoring.enabled` | Create necessary RBAC rules for Rook to integrate with Prometheus monitoring in the operator namespace. Requires Prometheus to be pre-installed. | `false` | diff --git a/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md b/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md index baa80f115..cf3c21be6 100644 --- a/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md +++ b/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md @@ -4,13 +4,15 @@ title: Snapshots ## Prerequisites -- Rook officially supports v1/v1beta1 snapshots for kubernetes v1.17+. +- Rook officially supports v1 snapshots for Kubernetes v1.20+. -- Install the snapshot controller and snapshot v1/v1beta1 CRD as required. More info can be found [here](https://github.com/kubernetes-csi/external-snapshotter/tree/v4.0.0#usage). +- Install the snapshot controller and snapshot v1 CRD as required. More info can be found [here](https://github.com/kubernetes-csi/external-snapshotter/tree/v6.0.1#usage). !!! note If only Alpha snapshots are available, enable snapshotter in `rook-ceph-operator-config` or helm chart `values.yaml`, change the external-snapshotter image to `registry.k8s.io/sig-storage/csi-snapshotter:v1.2.2` and refer to the [alpha snapshots documentation](https://github.com/rook/rook/blob/release-1.3/Documentation/ceph-csi-drivers.md#rbd-snapshots) + VolumeSnapshot betav1 is deprecated in Kubernetes 1.20+ and removed in 1.24.0. If you still require betav1 snapshots, change the external-snapshotter image to `registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1` and refer to the [betav1 snapshots documentation](https://rook.github.io/docs/rook/v1.8/ceph-csi-snapshot.html#rbd-snapshots) + - We also need a `VolumeSnapshotClass` for volume snapshot to work. The purpose of a `VolumeSnapshotClass` is defined in [the kubernetes documentation](https://kubernetes.io/docs/concepts/storage/volume-snapshot-classes/). diff --git a/Documentation/Storage-Configuration/Ceph-CSI/custom-images.md b/Documentation/Storage-Configuration/Ceph-CSI/custom-images.md index f63f77a7c..49b7c6016 100644 --- a/Documentation/Storage-Configuration/Ceph-CSI/custom-images.md +++ b/Documentation/Storage-Configuration/Ceph-CSI/custom-images.md @@ -19,7 +19,7 @@ The default upstream images are included below, which you can change to your des ```yaml ROOK_CSI_CEPH_IMAGE: "quay.io/cephcsi/cephcsi:v3.6.1" -ROOK_CSI_REGISTRAR_IMAGE: "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.0" +ROOK_CSI_REGISTRAR_IMAGE: "k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.1" ROOK_CSI_PROVISIONER_IMAGE: "k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0" ROOK_CSI_ATTACHER_IMAGE: "k8s.gcr.io/sig-storage/csi-attacher:v3.4.0" ROOK_CSI_RESIZER_IMAGE: "k8s.gcr.io/sig-storage/csi-resizer:v1.4.0" diff --git a/deploy/charts/rook-ceph/values.yaml b/deploy/charts/rook-ceph/values.yaml index 64459b11d..6f8360c47 100644 --- a/deploy/charts/rook-ceph/values.yaml +++ b/deploy/charts/rook-ceph/values.yaml @@ -349,11 +349,11 @@ csi: #cephcsi: #image: quay.io/cephcsi/cephcsi:v3.6.1 #registrar: - #image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0 + #image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1 #provisioner: #image: registry.k8s.io/sig-storage/csi-provisioner:v3.1.0 #snapshotter: - #image: registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1 + #image: registry.k8s.io/sig-storage/csi-snapshotter:v6.0.1 #attacher: #image: registry.k8s.io/sig-storage/csi-attacher:v3.4.0 #resizer: @@ -377,7 +377,7 @@ csi: # Enable the nfs csi driver. nfs: enabled: false - #image: "registry.k8s.io/sig-storage/nfsplugin:v3.1.0" + #image: "registry.k8s.io/sig-storage/nfsplugin:v4.0.0" enableDiscoveryDaemon: false cephCommandsTimeoutSeconds: "15" diff --git a/deploy/examples/images.txt b/deploy/examples/images.txt index fa481d0ea..cdd0dc8f7 100644 --- a/deploy/examples/images.txt +++ b/deploy/examples/images.txt @@ -3,9 +3,9 @@ quay.io/csiaddons/k8s-sidecar:v0.2.1 quay.io/csiaddons/volumereplication-operator:v0.3.0 registry.k8s.io/sig-storage/csi-attacher:v3.4.0 - registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0 + registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1 registry.k8s.io/sig-storage/csi-provisioner:v3.1.0 registry.k8s.io/sig-storage/csi-resizer:v1.4.0 - registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1 - registry.k8s.io/sig-storage/nfsplugin:v3.1.0 + registry.k8s.io/sig-storage/csi-snapshotter:v6.0.1 + registry.k8s.io/sig-storage/nfsplugin:v4.0.0 rook/ceph:master diff --git a/deploy/examples/operator-openshift.yaml b/deploy/examples/operator-openshift.yaml index 28768e3bb..3a26bcbbd 100644 --- a/deploy/examples/operator-openshift.yaml +++ b/deploy/examples/operator-openshift.yaml @@ -174,12 +174,12 @@ data: # of the CSI driver to something other than what is officially supported, change # these images to the desired release of the CSI driver. # ROOK_CSI_CEPH_IMAGE: "quay.io/cephcsi/cephcsi:v3.6.1" - # ROOK_CSI_REGISTRAR_IMAGE: "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0" + # ROOK_CSI_REGISTRAR_IMAGE: "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1" # ROOK_CSI_RESIZER_IMAGE: "registry.k8s.io/sig-storage/csi-resizer:v1.4.0" # ROOK_CSI_PROVISIONER_IMAGE: "registry.k8s.io/sig-storage/csi-provisioner:v3.1.0" - # ROOK_CSI_SNAPSHOTTER_IMAGE: "registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1" + # ROOK_CSI_SNAPSHOTTER_IMAGE: "registry.k8s.io/sig-storage/csi-snapshotter:v6.0.1" # ROOK_CSI_ATTACHER_IMAGE: "registry.k8s.io/sig-storage/csi-attacher:v3.4.0" - # ROOK_CSI_NFS_IMAGE: "registry.k8s.io/sig-storage/nfsplugin:v3.1.0" + # ROOK_CSI_NFS_IMAGE: "registry.k8s.io/sig-storage/nfsplugin:v4.0.0" # (Optional) set user created priorityclassName for csi plugin pods. CSI_PLUGIN_PRIORITY_CLASSNAME: "system-node-critical" diff --git a/deploy/examples/operator.yaml b/deploy/examples/operator.yaml index 3ed339aec..c4b96096c 100644 --- a/deploy/examples/operator.yaml +++ b/deploy/examples/operator.yaml @@ -89,12 +89,12 @@ data: # of the CSI driver to something other than what is officially supported, change # these images to the desired release of the CSI driver. # ROOK_CSI_CEPH_IMAGE: "quay.io/cephcsi/cephcsi:v3.6.1" - # ROOK_CSI_REGISTRAR_IMAGE: "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0" + # ROOK_CSI_REGISTRAR_IMAGE: "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1" # ROOK_CSI_RESIZER_IMAGE: "registry.k8s.io/sig-storage/csi-resizer:v1.4.0" # ROOK_CSI_PROVISIONER_IMAGE: "registry.k8s.io/sig-storage/csi-provisioner:v3.1.0" - # ROOK_CSI_SNAPSHOTTER_IMAGE: "registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1" + # ROOK_CSI_SNAPSHOTTER_IMAGE: "registry.k8s.io/sig-storage/csi-snapshotter:v6.0.1" # ROOK_CSI_ATTACHER_IMAGE: "registry.k8s.io/sig-storage/csi-attacher:v3.4.0" - # ROOK_CSI_NFS_IMAGE: "registry.k8s.io/sig-storage/nfsplugin:v3.1.0" + # ROOK_CSI_NFS_IMAGE: "registry.k8s.io/sig-storage/nfsplugin:v4.0.0" # (Optional) set user created priorityclassName for csi plugin pods. CSI_PLUGIN_PRIORITY_CLASSNAME: "system-node-critical" diff --git a/pkg/operator/ceph/csi/spec.go b/pkg/operator/ceph/csi/spec.go index 059fddfc5..3464e2521 100644 --- a/pkg/operator/ceph/csi/spec.go +++ b/pkg/operator/ceph/csi/spec.go @@ -123,11 +123,11 @@ var ( var ( // image names DefaultCSIPluginImage = "quay.io/cephcsi/cephcsi:v3.6.1" - DefaultNFSPluginImage = "registry.k8s.io/sig-storage/nfsplugin:v3.1.0" - DefaultRegistrarImage = "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0" + DefaultNFSPluginImage = "registry.k8s.io/sig-storage/nfsplugin:v4.0.0" + DefaultRegistrarImage = "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1" DefaultProvisionerImage = "registry.k8s.io/sig-storage/csi-provisioner:v3.1.0" DefaultAttacherImage = "registry.k8s.io/sig-storage/csi-attacher:v3.4.0" - DefaultSnapshotterImage = "registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1" + DefaultSnapshotterImage = "registry.k8s.io/sig-storage/csi-snapshotter:v6.0.1" DefaultResizerImage = "registry.k8s.io/sig-storage/csi-resizer:v1.4.0" DefaultVolumeReplicationImage = "quay.io/csiaddons/volumereplication-operator:v0.3.0" DefaultCSIAddonsImage = "quay.io/csiaddons/k8s-sidecar:v0.2.1" diff --git a/tests/framework/installer/ceph_manifests.go b/tests/framework/installer/ceph_manifests.go index 35f174f56..448bd32a0 100644 --- a/tests/framework/installer/ceph_manifests.go +++ b/tests/framework/installer/ceph_manifests.go @@ -244,7 +244,7 @@ func (m *CephManifestsMaster) getClusterPriorityClasses() string { func (m *CephManifestsMaster) GetBlockSnapshotClass(snapshotClassName, reclaimPolicy string) string { // Create a CSI driver snapshotclass return ` -apiVersion: snapshot.storage.k8s.io/v1beta1 +apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshotClass metadata: name: ` + snapshotClassName + ` @@ -260,7 +260,7 @@ parameters: func (m *CephManifestsMaster) GetFileStorageSnapshotClass(snapshotClassName, reclaimPolicy string) string { // Create a CSI driver snapshotclass return ` -apiVersion: snapshot.storage.k8s.io/v1beta1 +apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshotClass metadata: name: ` + snapshotClassName + ` diff --git a/tests/framework/installer/general_manifests.go b/tests/framework/installer/general_manifests.go index e544cbf78..37f548aa7 100644 --- a/tests/framework/installer/general_manifests.go +++ b/tests/framework/installer/general_manifests.go @@ -98,7 +98,7 @@ spec: } func GetSnapshot(snapshotName, claimName, snapshotClassName, namespace string) string { - return `apiVersion: snapshot.storage.k8s.io/v1beta1 + return `apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshot metadata: name: ` + snapshotName + `