DEV Community

Amritanshu Pandey
Amritanshu Pandey

Posted on

Setup NFS Storage Class on Kubernetes

Create the following resources in order to setup an NFS storgae provisioner in a Kubernetes cluster. This allows creating Kubernetes volumes on an NFS server.

Since the code required for creating various K8S resources for NFS provisioner is split into
multiple files, I prefer to just clone this gist and using kubectl to create all resources
in one go

$ git clone https://gist.github.com/amritanshu-pandey/8ab00179c98720cbc28d8bb0c7064426
$ cd 8ab00179c98720cbc28d8bb0c7064426
$ kubectl apply -f *.yaml
Enter fullscreen mode Exit fullscreen mode

Note: This article was originally posted at https://blog.amritanshu.in/posts/setup-nfs-storage-class-on-kubernetes/

Discussion (0)