fix nfs autodelete issue
This commit is contained in:
		| @@ -6,8 +6,7 @@ image: | ||||
|  | ||||
| ingress: | ||||
|   enabled: false | ||||
| livenessProbe: | ||||
|   enabled: false | ||||
|  | ||||
|  | ||||
|  | ||||
| nextcloud: | ||||
| @@ -152,6 +151,9 @@ resources: | ||||
|    cpu: 100m | ||||
|    memory: 128Mi | ||||
|  | ||||
| livenessProbe: | ||||
|   enabled: true | ||||
|   # disable when upgrading from a previous chart version | ||||
|  | ||||
| ## Enable pod autoscaling using HorizontalPodAutoscaler | ||||
| ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ | ||||
|   | ||||
| @@ -3,7 +3,6 @@ apiVersion: v1 | ||||
| metadata: | ||||
|   name: rss-claim | ||||
| spec: | ||||
|   persistentVolumeReclaimPolicy: Retain | ||||
|   storageClassName: nfs-client | ||||
|   accessModes: | ||||
|     - ReadWriteOnce | ||||
|   | ||||
| @@ -1,9 +1,14 @@ | ||||
| namespace: nfs-provisioner | ||||
| bases: | ||||
|   - github.com/kubernetes-sigs/nfs-subdir-external-provisioner//deploy | ||||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||||
| kind: Kustomization | ||||
|  | ||||
| namespace: nfs-provisioner | ||||
|  | ||||
| bases: | ||||
|  | ||||
| resources: | ||||
|   - github.com/kubernetes-sigs/nfs-subdir-external-provisioner//deploy | ||||
|   - namespace.yaml | ||||
| patchesStrategicMerge: | ||||
|   - nfs_values.yaml | ||||
|  | ||||
| patches: | ||||
|   - path: nfs_values.yaml | ||||
|   - path: storageclass_values.yaml | ||||
|   | ||||
| @@ -1,5 +1,4 @@ | ||||
| # namespace.yaml | ||||
| apiVersion: v1 | ||||
| kind: Namespace | ||||
| metadata: | ||||
|   name: nfs-provisioner | ||||
|   name: placeholder | ||||
|   | ||||
							
								
								
									
										6
									
								
								infrastructure/nfs/storageclass_values.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								infrastructure/nfs/storageclass_values.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| apiVersion: storage.k8s.io/v1 | ||||
| kind: StorageClass | ||||
| metadata: | ||||
|   name: nfs-client | ||||
| parameters: | ||||
|   onDelete: "retain" | ||||
		Reference in New Issue
	
	Block a user