Change pvc set up to local storage
This commit is contained in:
4
clusters/kairos/storage/kustomization.yaml
Normal file
4
clusters/kairos/storage/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- storageclass.yaml
|
||||
9
clusters/kairos/storage/storageclass.yaml
Normal file
9
clusters/kairos/storage/storageclass.yaml
Normal 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
|
||||
Reference in New Issue
Block a user