https://github.com/d3athkai/kubernetes-nfs-provisioner
https://github.com/d3athkai/kubernetes-nfs-provisioner
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/d3athkai/kubernetes-nfs-provisioner
- Owner: d3athkai
- License: gpl-3.0
- Created: 2024-05-01T15:27:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-01T17:10:48.000Z (about 1 year ago)
- Last Synced: 2025-01-28T09:48:25.021Z (4 months ago)
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 -`