> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gcore.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure NFS storage for Managed Kubernetes

The NFS CSI driver is installed automatically in every Managed Kubernetes cluster. To use [Gcore File Shares](/cloud/file-shares/about-file-shares) as [persistent volumes](/cloud/kubernetes/storage/create-a-pvc-and-bind-it-to-a-pod), create a File Share in the same project, network, and subnetwork as the cluster — Kubernetes then detects it as a StorageClass automatically.

## Step 1. Create a File Share

Create a [File Share](/cloud/file-shares/configure-file-shares) in the same project and region as the Kubernetes cluster. If no cluster exists yet, [create one](/cloud/kubernetes/clusters/create-a-kubernetes-cluster) first.

<Frame>
  <img src="https://mintcdn.com/gcore/-tGG7PWTFMtYIhJ9/images/docs/cloud/kubernetes/storage/configure-nfs-csi-driver-for-kubernetes/add-file-share.png?fit=max&auto=format&n=-tGG7PWTFMtYIhJ9&q=85&s=40b31caedf2e62fa024fc09b5654c48a" alt="File Shares page with a highlighted button to create file share" width="1089" height="380" data-path="images/docs/cloud/kubernetes/storage/configure-nfs-csi-driver-for-kubernetes/add-file-share.png" />
</Frame>

In the **Network settings** section, select the same private network and subnetwork as the Kubernetes cluster. The NFS driver maps each File Share to a StorageClass by its network identity — a mismatch will prevent the StorageClass from appearing in the cluster.

## Step 2. Verify the StorageClass

Run the following command to list the storage classes in the cluster:

```sh theme={null}
kubectl get storageclass
```

When the File Share is connected correctly, the output includes a `gcore-nfs-*` storage class. To provision storage from it, [create a PersistentVolumeClaim](/cloud/kubernetes/storage/create-a-pvc-and-bind-it-to-a-pod).

## Resize a file share

To resize a file share, first unmount it from the Kubernetes cluster, then resize it in the portal, then remount it. Resizing while mounted will cause applications to stop working correctly.
