Merge pull request #10306 from Madhu-1/update-snap-v6

csi: update sidecar to latest release
This commit is contained in:
Travis Nielsen authored and GitHub committed 2022-06-07 08:41:13 -06:00
commit 10efd34fd5
10 files changed
+26 -24

No files matched your search

+3 -3
View File
@@ -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. | `<none>` |
| `csi.rbdPodLabels` | Labels to add to the CSI RBD Pods. | `<none>` |
@@ -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. | `<none>` |
| `admissionController.nodeAffinity` | The node labels for affinity of the admission controller deployment [^1] | `<none>` |
| `monitoring.enabled` | Create necessary RBAC rules for Rook to integrate with Prometheus monitoring in the operator namespace. Requires Prometheus to be pre-installed. | `false` |
@@ -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/).
@@ -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"
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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"
+3 -3
View File
@@ -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"
+2 -2
View File
@@ -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 + `
@@ -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 + `