From 9fa23992c4f0d27bf8de5f5e9a7fdb44f2a2db07 Mon Sep 17 00:00:00 2001 From: santhoshatdell Date: Mon, 14 Oct 2024 18:20:26 +0000 Subject: [PATCH 1/2] Metro sample storage class --- samples/storageclass/powerstore-metro.yaml | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 samples/storageclass/powerstore-metro.yaml diff --git a/samples/storageclass/powerstore-metro.yaml b/samples/storageclass/powerstore-metro.yaml new file mode 100644 index 00000000..f39b8fb4 --- /dev/null +++ b/samples/storageclass/powerstore-metro.yaml @@ -0,0 +1,57 @@ +# Copyright © 2024 Dell Inc. or its subsidiaries. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: "powerstore-metro" +provisioner: "csi-powerstore.dellemc.com" +reclaimPolicy: Retain +volumeBindingMode: Immediate +allowVolumeExpansion: true +parameters: + # Indicates whether replication is enabled + # Allowed values: + # true: replication is enabled + # false: replication is disabled + # Default value: false + replication.storage.dell.com/isReplicationEnabled: "true" + + # Indicates the replication mode + # Allowed values: + # "ASYNC" - Asynchronous mode + # "SYNC" - Synchronous mode + # "METRO" - Metro mode + # Default value: "ASYNC" + replication.storage.dell.com/mode: "METRO" + + # Indicates the remote PowerStore system to be used to configure Metro replication + # Allowed values: string + # Default value: None + replication.storage.dell.com/remoteSystem: "RT-0000" + + # Indicates the array ID to be used for provisioning the volume + # Allowed values: arrayID corresponding to array's globalID specified in secret.yaml + # Default value: None + arrayID: "Unique" + + # Indicates the file system type for mounted volumes + # Allowed values: + # ext3: ext3 filesystem type + # ext4: ext4 filesystem type + # xfs: XFS filesystem type + # nfs: NFS filesystem type + # Optional: true + # Default value: None if defaultFsType is not mentioned in values.yaml + # Else defaultFsType value mentioned in values.yaml will be used + csi.storage.k8s.io/fstype: "ext4" From 2d58e7ddb61a86510dc349b8484a32f401f00c27 Mon Sep 17 00:00:00 2001 From: santhoshatdell Date: Mon, 14 Oct 2024 18:31:33 +0000 Subject: [PATCH 2/2] Set reclaimPolicy as Delete which is the default value --- samples/storageclass/powerstore-metro.yaml | 2 +- samples/storageclass/powerstore-replication.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/storageclass/powerstore-metro.yaml b/samples/storageclass/powerstore-metro.yaml index f39b8fb4..d2b8b039 100644 --- a/samples/storageclass/powerstore-metro.yaml +++ b/samples/storageclass/powerstore-metro.yaml @@ -16,7 +16,7 @@ kind: StorageClass metadata: name: "powerstore-metro" provisioner: "csi-powerstore.dellemc.com" -reclaimPolicy: Retain +reclaimPolicy: Delete volumeBindingMode: Immediate allowVolumeExpansion: true parameters: diff --git a/samples/storageclass/powerstore-replication.yaml b/samples/storageclass/powerstore-replication.yaml index eb2d6b07..9c64b2de 100644 --- a/samples/storageclass/powerstore-replication.yaml +++ b/samples/storageclass/powerstore-replication.yaml @@ -19,7 +19,7 @@ kind: StorageClass metadata: name: "powerstore-replication" provisioner: "csi-powerstore.dellemc.com" -reclaimPolicy: Retain +reclaimPolicy: Delete volumeBindingMode: Immediate parameters: # replicationPrefix paramater in values.yaml must be used as prefix for all replication parameters in storage class