Skip to content

Commit

Permalink
Sample Metro storage class (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
santhoshatdell authored Oct 15, 2024
1 parent 7f73296 commit 1da6983
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
57 changes: 57 additions & 0 deletions samples/storageclass/powerstore-metro.yaml
Original file line number Diff line number Diff line change
@@ -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: Delete
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"
2 changes: 1 addition & 1 deletion samples/storageclass/powerstore-replication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1da6983

Please sign in to comment.