mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
31 lines
551 B
YAML
31 lines
551 B
YAML
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
name: local-path-pvc
|
||
|
namespace: kube-system
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
storageClassName: local-path
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 2Gi
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Pod
|
||
|
metadata:
|
||
|
name: volume-test
|
||
|
namespace: kube-system
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: volume-test
|
||
|
image: rancher/pause:3.1
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
volumeMounts:
|
||
|
- name: volv
|
||
|
mountPath: /data
|
||
|
volumes:
|
||
|
- name: volv
|
||
|
persistentVolumeClaim:
|
||
|
claimName: local-path-pvc
|