# StorageClass

## NFS

### 项目地址

{% embed url="<https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner>" %}

### 快速开始

环境准备：

* NFS 服务，假设已有`192.168.1.1:/data/nfs`
* Helm

1、添加 charts 仓库

```
helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
```

2、创建 release

```
kubectl create ns nfs
helm install nfs-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \
  --set nfs.server=192.168.1.1 \
  --set nfs.path=/data/nfs \
  --set image.repository=heegor/nfs-subdir-external-provisioner \
  --set storageClass.name=nfs-provisioner \
  --namespace nfs
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://viva.gitbook.io/project/cloud-native/kubernetes/storageclass.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
