-
Notifications
You must be signed in to change notification settings - Fork 12
/
StorageClass.yaml
45 lines (44 loc) · 2.2 KB
/
StorageClass.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
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: quobyte-csi
# provisioner must be csi.quobyte.com
provisioner: csi.quobyte.com
# Should be set to 'true' to expand volume size.
# https://kubernetes.io/docs/concepts/storage/persistent-volumes/#csi-volume-expansion
# Volume shrinking is not possible and expansion only possible for dynamically provisioned volumes.
# By default, Quobyte volumes are not size restricted,
# but can be size restricted by creating a Quobyte quota
# for the volume (by setting parameters.createQuota: true).
# Volume expansion only makes sense if volume is created with a quota.
allowVolumeExpansion: true
parameters:
# quobyteTenant is required and used as tenant if CSI driver is deployed with
# --use_k8s_namespace_as_tenant=false.
#
# If CSI driver is deployed with --use_k8s_namespace_as_tenant=true,
# quobyteTenant is optional - if provided Quobyte CSI driver uses provided value as Quobyte tenant.
# If quobyteTenant is not provided, K8S namespace in which PVC is created
# becomes Quobyte tenant i.e; K8S namespace "tenant_x" maps to "tenant_x" in Quobyte storage.
quobyteTenant: "My Tenant"
# secret is used for dynamic volume provisioning.
# The user credentials provided in this secret must have
# volume create/delete permissions for `quobyteTenant` above.
csi.storage.k8s.io/provisioner-secret-name: "quobyte-admin-credentials"
csi.storage.k8s.io/provisioner-secret-namespace: "quobyte"
# Resize volume requires secrets to communicate with Quobyte API
csi.storage.k8s.io/controller-expand-secret-name: "quobyte-admin-credentials"
csi.storage.k8s.io/controller-expand-secret-namespace: "quobyte"
# Mount secrets
csi.storage.k8s.io/node-publish-secret-name: "quobyte-admin-credentials"
csi.storage.k8s.io/node-publish-secret-namespace: "quobyte"
# creates quota for the volume if set to true. The size of the Quota
# is the storage requested in PVC. If false, creates volume without size limit.
createQuota: "true"
user: nginx
group: nginx
accessMode: "750"
# spaces are not allowed and requires Quobyte 3.x
#labels: "encrypted:yes,mediatype:hdd"
# Set reclaimPolicy: Retain to keep the volume even after PV deletion
reclaimPolicy: Delete