fix nfs autodelete issue

This commit is contained in:
Remy Moll 2023-12-14 11:10:14 +01:00
parent 388518ddf3
commit 40407ce7fb
6 changed files with 22 additions and 11 deletions

View File

@ -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/

View File

@ -3,7 +3,6 @@ apiVersion: v1
metadata:
name: rss-claim
spec:
persistentVolumeReclaimPolicy: Retain
storageClassName: nfs-client
accessModes:
- ReadWriteOnce

View File

@ -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

View File

@ -1,5 +1,4 @@
# namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: nfs-provisioner
name: placeholder

View File

@ -0,0 +1,6 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: nfs-client
parameters:
onDelete: "retain"

View File

@ -15,4 +15,4 @@ spec:
syncPolicy:
automated:
prune: true
selfHeal: true
selfHeal: true