-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for using storageClass secrets (#544) (#47)
* Add documentation for using storageClass secrets * comment fix * Comment fixes
- Loading branch information
1 parent
aa1ed88
commit 417312d
Showing
5 changed files
with
69 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: example-storageclass-secret | ||
provisioner: vpc.block.csi.ibm.io | ||
parameters: | ||
profile: "custom" # The VPC Storage profile used. | ||
# iopsPerGB: "5" # The IOPS per Gigabyte that is supported for this profile. This is just for the user info. | ||
sizeRange: "[10-2000]GiB" # The size range in GiB that is supported. The user will specify a size on the PVC | ||
csi.storage.k8s.io/fstype: "ext4" # ext4 is the default filesytem used. The user can override this default | ||
billingType: "hourly" # The default billing policy used. The uer can override this default | ||
encrypted: "false" # By default, all PVC using this class will only be provider managed encrypted. The user can override this default | ||
encryptionKey: "" # If encrypted is true, then a user must specify the encryption key used associated KP instance | ||
resourceGroup: "" # Use resource group if specified here. else use the one mentioned in storage-secrete-store | ||
region: "" # (applicable only for dev/prestage/stage) By default, the storage vpc driver will select a region. The user can override this default | ||
zone: "" # (applicable only for dev/prestage/stage) By default, the storage vpc driver will select a zone. The user can override this default | ||
tags: "" # A list of tags "a, b, c" that will be created when the volume is created. This can be overidden by user | ||
classVersion: "1" | ||
csi.storage.k8s.io/provisioner-secret-name: ${pvc.name} | ||
csi.storage.k8s.io/provisioner-secret-namespace: ${pvc.namespace} | ||
reclaimPolicy: "Retain" |
2 changes: 1 addition & 1 deletion
2
examples/kubernetes/pvc-with-tags.yaml → examples/kubernetes/pvc-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,13 @@ | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: example-storageclass-secret | ||
provisioner: vpc.block.csi.ibm.io | ||
parameters: | ||
profile: "5iops-tier" # The VPC Storage profile used. | ||
# iopsPerGB: "5" # The IOPS per Gigabyte that is supported for this profile. This is just for the user info. | ||
sizeRange: "[10-2000]GiB" # The size range in GiB that is supported. The user will specify a size on the PVC | ||
csi.storage.k8s.io/fstype: "ext4" # ext4 is the default filesytem used. The user can override this default | ||
billingType: "hourly" # The default billing policy used. The uer can override this default | ||
encrypted: "false" # By default, all PVC using this class will only be provider managed encrypted. The user can override this default | ||
encryptionKey: "" # If encrypted is true, then a user must specify the encryption key used associated KP instance | ||
resourceGroup: "" # Use resource group if specified here. else use the one mentioned in storage-secrete-store | ||
region: "" # (applicable only for dev/prestage/stage) By default, the storage vpc driver will select a region. The user can override this default | ||
zone: "" # (applicable only for dev/prestage/stage) By default, the storage vpc driver will select a zone. The user can override this default | ||
tags: "" # A list of tags "a, b, c" that will be created when the volume is created. This can be overidden by user | ||
classVersion: "1" | ||
csi.storage.k8s.io/provisioner-secret-name: ${pvc.name} | ||
csi.storage.k8s.io/provisioner-secret-namespace: ${pvc.namespace} | ||
reclaimPolicy: "Delete" | ||
name: volume-secret | ||
namespace: default | ||
stringData: | ||
iops: "<IOPS_value>" # Enter the IOPS as per the profile that you want to allow for your Block Storage instance. It must match the Block Storage for VPC tier that you plan to use. | ||
zone: "<zone>" # Enter the VPC zone where you want to create the Block Storage instance. Make sure that you use a zone that your worker nodes are connected to. | ||
tags: "<tags>" # Enter a comma-separated list of tags to use when the PVC is created. Tags can help you find your storage instance more easily after it is created. | ||
encrypted: "<true_or_false>" # Enter true to create a secret that sets up encryption for Block Storage volumes. If set to true, you need to provider encryption key as well. | ||
resourceGroup: "<resource_group>" # Enter the resource group that you want your Block Storage instance to get access to. By default gets the resource group of your cluster. | ||
encryptionKey: "<encryption_key>" # If you entered true for encrypted stringData, then enter the root key CRN of your Key Protect service instance that you want to use to encrypt your Block Storage volumes. | ||
type: vpc.block.csi.ibm.io |
This file was deleted.
Oops, something went wrong.