diff --git a/clusters/k3s/portal/pv.yaml b/clusters/k3s/portal/pv.yaml new file mode 100644 index 0000000..304137a --- /dev/null +++ b/clusters/k3s/portal/pv.yaml @@ -0,0 +1,28 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: portal-pv + namespace: portal + labels: + type: local +spec: + storageClassName: local-path + capacity: + storage: 1Gi + accessModes: + - ReadWriteOnce + hostPath: + path: "/var/www/data/storage" +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: portal-pv-claim + namespace: portal +spec: + storageClassName: local-path + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi