-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathunity-nfs.yaml
120 lines (117 loc) · 4.64 KB
/
unity-nfs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# This is a sample manifest for utilizing the topology feature and mount options.
# PVCs created using this storage class will be scheduled on any available node
# Change all instances of <ARRAY_ID> to the array serial ID of the unisphere instance used
# Provide mount options through "mountOptions" attribute
# to create PVCs with mount options.
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: unity-<ARRAY_ID>-nfs
# If using custom driver name, change the following to point to the custom name
# Default value: csi-unity.dellemc.com
# Examples: "csi-driver-unity", "csi-unity.dellemc.com"
provisioner: csi-unity.dellemc.com
# reclaimPolicy - Configure what happens to a Persistent Volume when the PVC
# it is bound to is to be deleted
# Allowed values:
# Delete: the underlying persistent volume will be deleted along with the persistent volume claim.
# Retain: the underlying persistent volume remain.
# Optional: false
# Default value: None
reclaimPolicy: Delete
# allowVolumeExpansion - Attribute to allow volume expansion
# Allowed values:
# "true" - Volume can be resized
# "false" - Volume cannot be resized
# Default value: "true"
# Optional: true
allowVolumeExpansion: true
# volumeBindingMode- controls when volume binding and dynamic provisioning should occur.
# Allowed values:
# Immediate- indicates that volume binding and dynamic provisioning
# occurs once the PersistentVolumeClaim is created
# WaitForFirstConsumer- will delay the binding and provisioning of a PersistentVolume
# until a Pod using the PersistentVolumeClaim is created
# Default value: "Immediate"
# Optional: true
volumeBindingMode: WaitForFirstConsumer
parameters:
# protocol - Defines"FC" or "FIBRE" for fibrechannel, "ISCSI" for iSCSI, or "" for autoselection.
# Allowed values:
# "FC" - Fiber Channel protocol
# "FIBER" - Fiber Channel protocol
# "ISCSI" - iSCSI protocol
# "" - Automatic selection of transport protocol
# Default value: ""
# Optional: false
protocol: NFS
# arrayId - Serial Id of the array that will be used for provisioning.
# Allowed values: String
# Default value: None
# Examples: "APM000000001", "APM000000002"
arrayId: <ARRAY_ID>
#storagePool - Defines storage pool. The value should be picked from the column labeled "CLI ID" of Pools in the Unisphere GUI.
# Allowed values: String
# Default value: None
# Optional: false
# Examples: pool_0
storagePool: <STORAGE_POOL>
#thinProvisioned- Defines Boolean to choose value of thinProvisioned while creating a new volume
# Allowed values:
# "true" - for thin provision
# "false" - for thick provision
# Default value: false
# Optional: true
thinProvisioned: "true"
#isDataReductionEnabled - Defines Boolean to choose value of is DataReductionEnabled while creating a new volume
# Allowed values:
# "true" - Enables data reduction for all-flash storage pool.
# "false" - Disables data reduction.
# Optional: true
# Default value: false
isDataReductionEnabled: "true"
#TieringPolicy - Tiering policy to be used during provisioning
# Requires FAST VP license.
# Allowed values: String
# Optional: true
# Examples: "0"
# Default value: None
# Accepted values:
# "0" for "Start High Then Auto-Tier"
# "1" for "Auto-Tier"
# "2" for "Highest Available Tier"
# "3" for "Lowest Available Tier"
tieringPolicy: <TIERING_POLICY>
# nasServer - Defines storage NAS Servers. The value should be picked from the column labeled "CLI ID" of NAS Servers tab in the Unisphere GUI.
# Default value: None
# Optional: false
# Examples : nasserver_0
nasServer: <NAS_SERVER>
# hostIoSize - Insert Host IO Size that is to be set for the filesystem.
# Default value: None
# Optional: false
# Examples : 8192
hostIoSize: <HOST_IO_SIZE>
# csi.storage.k8s.io/fstype - Set the filesystem type; it is ignored with NFS protocol if different from 'nfs'
# Default value: ext4
# Accepted values:
# "nfs"
csi.storage.k8s.io/fstype: nfs
# Restrict provisioning to specific topologies
# Allowed values: map of key-value pairs
# Optional: false
# Default value: None
# Examples: "apm0020280XXXX" , "apm0021340XXXX"
# Here first three characters should be in small letters.
allowedTopologies:
- matchLabelExpressions:
- key: csi-unity.dellemc.com/<array_id>-nfs
values:
- "true"
# mountOptions - Defines mount input values.
# Default value: []
# Optional: false
# Examples:
# "hard" - option for mounting with NFS
# "context" - option for mounting with block storage
mountOptions: ["<mountOption1>", "<mountOption2>", ..., "<mountOptionN>"]