text stringlengths 0 59.1k |
|---|
parameters: |
quobyteAPIServer: "http://138.68.74.142:7860" |
registry: "138.68.74.142:7861" |
adminSecretName: "quobyte-admin-secret" |
adminSecretNamespace: "kube-system" |
user: "root" |
group: "root" |
quobyteConfig: "BASE" |
quobyteTenant: "DEFAULT" |
``` |
[Download example](quobyte/quobyte-storage-class.yaml?raw=true) |
<!-- END MUNGE: EXAMPLE quobyte/quobyte-storage-class.yaml --> |
* **quobyteAPIServer** API Server of Quobyte in the format http(s)://api-server:7860 |
* **registry** Quobyte registry to use to mount the volume. You can specify the registry as <host>:<port> pair or if you want to specify multiple registries you just have to put a comma between them e.q. <host1>:<port>,<host2>:<port>,<host3>:<port>. The host can be an IP address or if you have a working DNS you can als... |
* **adminSecretName** secret that holds information about the Quobyte user and the password to authenticate against the API server. The provided secret must have type "kubernetes.io/quobyte". |
* **adminSecretNamespace** The namespace for **adminSecretName**. Default is `default`. |
* **user** maps all access to this user. Default is `root`. |
* **group** maps all access to this group. Default is `nfsnobody`. |
* **quobyteConfig** use the specified configuration to create the volume. You can create a new configuration or modify an existing one with the Web console or the quobyte CLI. Default is `BASE` |
* **quobyteTenant** use the specified tenant ID to create/delete the volume. This Quobyte tenant has to be already present in Quobyte. For Quobyte < 1.4 use an empty string `""` as `DEFAULT` tenant. Default is `DEFAULT` |
* **createQuota** if set all volumes created by this storage class will get a Quota for the specified size. The quota is set for the logical disk size (which can differ from the physical size e.q. if replication is used). Default is ``False |
First create Quobyte admin's Secret in the system namespace. Here the Secret is created in `kube-system`: |
``` |
$ kubectl create -f examples/persistent-volume-provisioning/quobyte/quobyte-admin-secret.yaml --namespace=kube-system |
``` |
Then create the Quobyte storage class: |
``` |
$ kubectl create -f examples/persistent-volume-provisioning/quobyte/quobyte-storage-class.yaml |
``` |
Now create a PVC |
``` |
$ kubectl create -f examples/persistent-volume-provisioning/claim1.json |
``` |
Check the created PVC: |
``` |
$ kubectl describe pvc |
Name: claim1 |
Namespace: default |
Status: Bound |
Volume: pvc-bdb82652-694a-11e6-b811-080027242396 |
Labels: <none> |
Capacity: 3Gi |
Access Modes: RWO |
No events. |
$ kubectl describe pv |
Name: pvc-bdb82652-694a-11e6-b811-080027242396 |
Labels: <none> |
Status: Bound |
Claim: default/claim1 |
Reclaim Policy: Delete |
Access Modes: RWO |
Capacity: 3Gi |
Message: |
Source: |
Type: Quobyte (a Quobyte mount on the host that shares a pod's lifetime) |
Registry: 138.68.79.14:7861 |
Volume: kubernetes-dynamic-pvc-bdb97c58-694a-11e6-91b6-080027242396 |
ReadOnly: false |
No events. |
``` |
Create a Pod to use the PVC: |
``` |
$ kubectl create -f examples/persistent-volume-provisioning/quobyte/example-pod.yaml |
``` |
#### <a name="azure-disk">Azure Disk</a> |
```yaml |
kind: StorageClass |
apiVersion: storage.k8s.io/v1 |
metadata: |
name: slow |
provisioner: kubernetes.io/azure-disk |
parameters: |
skuName: Standard_LRS |
location: eastus |
storageAccount: azure_storage_account_name |
fsType: ext4 |
``` |
* `skuName`: Azure storage account Sku tier. Default is empty. |
* `location`: Azure storage account location. Default is empty. |
* `storageAccount`: Azure storage account name. If storage account is not provided, all storage accounts associated with the resource group are searched to find one that matches `skuName` and `location`. If storage account is provided, it must reside in the same resource group as the cluster, and `skuName` and `locatio... |
* `fsType`: fsType that are supported by kubernetes. Default: `"ext4"`. |
#### Azure File |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.