Change pvc set up to local storage

This commit is contained in:
2024-08-18 22:29:58 +01:00
parent c3b68ec4fd
commit b3fe51e9da
9 changed files with 32 additions and 10 deletions

View File

@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- storageclass.yaml

View File

@@ -0,0 +1,9 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-storage
provisioner: rancher.io/local-path
parameters:
nodePath: /usr/local
pathPattern: "{{ .PVC.Namespace }}/{{ .PVC.Name }}"
reclaimPolicy: Retain