mirror of https://github.com/k3s-io/k3s
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
582 B
33 lines
582 B
3 years ago
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
name: local-path-pvc
|
||
|
namespace: default
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
storageClassName: local-path
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 500Mi
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Pod
|
||
|
metadata:
|
||
|
name: volume-test
|
||
|
namespace: default
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: volume-test
|
||
|
image: nginx:stable-alpine
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
volumeMounts:
|
||
|
- name: volv
|
||
|
mountPath: /data
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
volumes:
|
||
|
- name: volv
|
||
|
persistentVolumeClaim:
|
||
|
claimName: local-path-pvc
|