cleanup with regards to upcoming migration
This commit is contained in:
		
							
								
								
									
										20
									
								
								infrastructure/nfs-provisioner/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								infrastructure/nfs-provisioner/README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| ## How to use | ||||
| This deployment exposes a `StorageClass` named `nfs-client` that can be used to create `PersistentVolumeClaim` resources: | ||||
|  | ||||
|  | ||||
| ``` | ||||
| kind: PersistentVolumeClaim | ||||
| apiVersion: v1 | ||||
| metadata: | ||||
|   name: test-claim | ||||
|   namespace: test-namespace | ||||
| spec: | ||||
|   storageClassName: nfs-client | ||||
|   accessModes: | ||||
|     - ReadWriteMany | ||||
|   resources: | ||||
|     requests: | ||||
|       storage: 1Mi | ||||
| ``` | ||||
|  | ||||
| This will create a new folder in the NFS server under `<base-path>/test-namespace-test-claim` and mount it. | ||||
| @@ -3,4 +3,5 @@ kind: StorageClass | ||||
| metadata: | ||||
|   name: nfs-client | ||||
| parameters: | ||||
|   onDelete: "retain" | ||||
|   archiveOnDelete: "true" | ||||
|   pathPattern: "${.PVC.namespace}-${.PVC.name}" | ||||
| @@ -1,13 +0,0 @@ | ||||
| ``` | ||||
| kind: PersistentVolumeClaim | ||||
| apiVersion: v1 | ||||
| metadata: | ||||
|   name: test-claim | ||||
| spec: | ||||
|   storageClassName: nfs-client | ||||
|   accessModes: | ||||
|     - ReadWriteMany | ||||
|   resources: | ||||
|     requests: | ||||
|       storage: 1Mi | ||||
| ``` | ||||
		Reference in New Issue
	
	Block a user