text stringlengths 0 59.1k |
|---|
kind: StorageClass |
apiVersion: storage.k8s.io/v1 |
metadata: |
name: slow |
provisioner: kubernetes.io/vsphere-volume |
parameters: |
diskformat: eagerzeroedthick |
fsType: ext3 |
``` |
* `diskformat`: `thin`, `zeroedthick` and `eagerzeroedthick`. See vSphere docs for details. Default: `"thin"`. |
* `fsType`: fsType that are supported by kubernetes. Default: `"ext4"`. |
#### Portworx Volume |
```yaml |
kind: StorageClass |
apiVersion: storage.k8s.io/v1 |
metadata: |
name: portworx-io-priority-high |
provisioner: kubernetes.io/portworx-volume |
parameters: |
repl: "1" |
snap_interval: "70" |
io_priority: "high" |
``` |
* `fs`: filesystem to be laid out: [none/xfs/ext4] (default: `ext4`) |
* `block_size`: block size in Kbytes (default: `32`) |
* `repl`: replication factor [1..3] (default: `1`) |
* `io_priority`: IO Priority: [high/medium/low] (default: `low`) |
* `snap_interval`: snapshot interval in minutes, 0 disables snaps (default: `0`) |
* `aggregation_level`: specifies the number of chunks the volume would be distributed into, 0 indicates a non-aggregated volume (default: `0`) |
* `ephemeral`: ephemeral storage [true/false] (default `false`) |
For a complete example refer ([Portworx Volume docs](../volumes/portworx/README.md)) |
#### StorageOS |
```yaml |
kind: StorageClass |
apiVersion: storage.k8s.io/v1 |
metadata: |
name: sc-fast |
provisioner: kubernetes.io/storageos |
parameters: |
pool: default |
description: Kubernetes volume |
fsType: ext4 |
adminSecretNamespace: default |
adminSecretName: storageos-secret |
``` |
* `pool`: The name of the StorageOS distributed capacity pool to provision the volume from. Uses the `default` pool which is normally present if not specified. |
* `description`: The description to assign to volumes that were created dynamically. All volume descriptions will be the same for the storage class, but different storage classes can be used to allow descriptions for different use cases. Defaults to `Kubernetes volume`. |
* `fsType`: The default filesystem type to request. Note that user-defined rules within StorageOS may override this value. Defaults to `ext4`. |
* `adminSecretNamespace`: The namespace where the API configuration secret is located. Required if adminSecretName set. |
* `adminSecretName`: The name of the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. |
For a complete example refer to the ([StorageOS example](../../staging/volumes/storageos/README.md)) |
#### GLUSTERFS |
```yaml |
apiVersion: storage.k8s.io/v1 |
kind: StorageClass |
metadata: |
name: fast |
provisioner: kubernetes.io/glusterfs |
parameters: |
resturl: "http://127.0.0.1:8081" |
clusterid: "630372ccdc720a92c681fb928f27b53f" |
restuser: "admin" |
secretNamespace: "default" |
secretName: "heketi-secret" |
gidMin: "40000" |
gidMax: "50000" |
volumetype: "replicate:3" |
volumeoptions: "client.ssl on, server.ssl on" |
volumenameprefix: "dept-dev" |
snapfactor: "10" |
customepnameprefix: "dbstorage" |
``` |
Example storageclass can be found in [glusterfs-storageclass.yaml](glusterfs/glusterfs-storageclass.yaml). |
* `resturl` : Gluster REST service/Heketi service url which provision gluster volumes on demand. The general format should be `IPaddress:Port` and this is a mandatory parameter for GlusterFS dynamic provisioner. If Heketi service is exposed as a routable service in openshift/kubernetes setup, this can have a format sim... |
`http://heketi-storage-project.cloudapps.mystorage.com` where the fqdn is a resolvable heketi service url. |
* `restauthenabled` : Gluster REST service authentication boolean that enables authentication to the REST server. If this value is 'true', `restuser` and `restuserkey` or `secretNamespace` + `secretName` have to be filled. This option is deprecated, authentication is enabled when any of `restuser`, `restuserkey`, `secr... |
* `restuser` : Gluster REST service/Heketi user who has access to create volumes in the Gluster Trusted Pool. |
* `restuserkey` : Gluster REST service/Heketi user's password which will be used for authentication to the REST server. This parameter is deprecated in favor of `secretNamespace` + `secretName`. |
* `secretNamespace` + `secretName` : Identification of Secret instance that contains user password to use when talking to Gluster REST service. These parameters are optional, empty password will be used when both `secretNamespace` and `secretName` are omitted. The provided secret must have type "kubernetes.io/glusterfs... |
When both `restuserkey` and `secretNamespace` + `secretName` is specified, the secret will be used. |
* `clusterid`: `630372ccdc720a92c681fb928f27b53f` is the ID of the cluster which will be used by Heketi when provisioning the volume. It can also be a list of clusterids, for ex: |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.