[Yandex Cloud documentation](../../../index.md) > [Yandex Managed Service for Kubernetes](../../index.md) > [Step-by-step guides](../index.md) > Working with Kubernetes objects from the management console > Managing storages

# Managing storages

Kubernetes storages provide a common file system to pod containers enabling them to store and exchange data. The management console allows you to manage your Kubernetes storage without using kubectl.

## Creating a storage resource {#create-storage}

You can create storage resources in the management console in the same way as when using the `kubectl apply -f <manifest_file.yaml> -n <namespace_name>` command.

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), navigate to the folder dashboard and select **Managed Service for&nbsp;Kubernetes**.
  1. Click the cluster name and select ![Storage](../../../_assets/console-icons/database.svg) **Persistent volumes** in the left-hand panel.
  1. In the top-right corner, click **Create** and select the resource type.
  1. In the drop-down list, select the **Namespace** to create the resource in.
  1. Fill out the manifest file according to the Kubernetes guide: [Persistent Volume Claim](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims), [Persistent Volume](https://kubernetes.io/docs/concepts/storage/persistent-volumes/), [storage class](https://kubernetes.io/docs/concepts/storage/storage-classes/).
  1. Click **Create**.

{% endlist %}

## Editing a storage resource {#edit-storage}

In the management console, you can edit storage resource manifests in a visual editor. This approach is equivalent to running the `kubectl apply -f <manifest_file.yaml>` command and allows you to update the resource configuration without re-creating it.

The list of editable fields depends on the object type and is available in [this Kubernetes guide](https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/).

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), navigate to the folder dashboard and select **Managed Service for&nbsp;Kubernetes**.
  1. Click the cluster name and select ![Storage](../../../_assets/console-icons/database.svg) **Persistent volumes** in the left-hand panel.
  1. Select the tab with the resource type you want to edit.
  1. In the row of the resource, click ![image](../../../_assets/console-icons/ellipsis.svg) and select **Edit**.
  1. Edit the manifest file on the right side of the screen. Your changes will be highlighted with color.
  1. In the top-right corner, click **Save**.

{% endlist %}

If the manifest is correct, the changes will be applied. If the updated manifest contains an error or edits uneditable fields, an error message will appear. Click **More information** for details.

## Setting or removing the default storage class {#default-storage-class}

The default storage class is used when creating a Persistent Volume Claim, if `spec.storageClassName` is not specified in its manifest. You can designate multiple storage classes as default classes at the same time. In which case the last created storage class is used when creating a Persistent Volume Claim.

This approach is equivalent to running the `kubectl patch storageclass <storage_class_name> -p '{"metadata":{"annotations":{"storageclass.kubernetes.io/is-default-class":"<true-or-false>"}}}'` command.

To set or remove the default storage class:

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), navigate to the folder dashboard and select **Managed Service for&nbsp;Kubernetes**.
  1. Click the cluster name and select ![Storage](../../../_assets/console-icons/database.svg) **Persistent volumes** in the left-hand panel.
  1. Select the **StorageClasses** tab.
  1. In the storage class row, click ![image](../../../_assets/console-icons/ellipsis.svg) and select **Use as default** or **Don't use as default**.
  1. Confirm the action.

{% endlist %}

## Deleting a storage resource {#delete-storage}

Deleting a storage resource is equivalent to running the `kubectl delete -f <manifest_file.yaml>` command.

To delete a storage resource:

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), navigate to the folder dashboard and select **Managed Service for&nbsp;Kubernetes**.
  1. Click the cluster name and select ![Storage](../../../_assets/console-icons/database.svg) **Persistent volumes** in the left-hand panel.
  1. Select the tab containing the resource type you want to delete.
  1. In the row of the resource, click ![image](../../../_assets/console-icons/ellipsis.svg) and select **Delete**.
  1. Confirm the action.

{% endlist %}