An open API service indexing awesome lists of open source software.

https://github.com/d3athkai/kubernetes-nfs-provisioner


https://github.com/d3athkai/kubernetes-nfs-provisioner

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# NFS Provisioner
To setup the NFS Storage Class and Persistent Volume Provisioner for any nameapce.
Based on [Kubernetes NFS Subdir External Provisioner](https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner).

## NFS Provisioner Storage Class
**NOTE: Apply NFS Provisioner Storage Class only once per cluster.**

To setup NFS Provisioner Storage Class:
1. Apply the manifest:
`kubectl apply -f nfs-provisioner-class.yaml`
1. Verify the Storage Class:
`kubectl get storageclass`

To delete NFS Provisioner Storage Class:
1. Apply the manifest:
`kubectl delete -f nfs-provisioner-class.yaml`
2. Verify the Storage Class:
`kubectl get storageclass`

## NFS Provisioner RBAC and Deployment
**NOTE: Apply NFS Provisioner RBAC and Deployment for every namespace that required this NFS storage for data persistence.**

To setup NFS Provisioner RBAC and Deployment for a namespace:
1. Update the *\* in **base/kustomization.yaml**
2. Update the ** & ** in **overlays/prod/nfs-provisioner-deployment.yaml**
3. Verify the output manifests to be applied:
`kubectl kustomize /overlays/prod`
4. Apply the manifests:
`kubectl kustomize /overlays/prod | kubectl apply -f -`
5. Test Persistent Volume Claim:
`kubectl apply -f test-claim.yaml`
6. Verify the Persistent Volume Claim, ensure the status of the pvc is **Bound**:
`kubectl get pvc -n `
7. Delete the Persistent Volume Claim:
`kubectl delete -f test-claim.yaml`

To delete NFS Provisioner RBAC and Deployment for a namespace:
1. Update the *\* in **base/kustomization.yaml**
2. Update the ** & ** in **overlays/prod/nfs-provisioner-deployment.yaml**
3. Verify the output manifests to be deleted:
`kubectl kustomize /overlays/prod`
4. Apply the manifests:
`kubectl kustomize /overlays/prod | kubectl delete -f -`