Creating storage classes

In Virtuozzo Hybrid Infrastructure, storage classes map to compute storage policies defined in the admin panel. Creating a storage class is required for all storage operations in a Kubernetes cluster.

To create a storage class

Сlick + Create on the Kubernetes dashboard and specify a YAML file that defines this object. For example:

kind: StorageClass
  name: default
  annotations: "true"
  type: default

This manifest describes the storage class default with the storage policy default. It also marks this storage policy as default for the Kubernetes cluster. The storage policy must exist in the compute cluster and be specified in the storage quotas to the current project.