mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-30 05:39:54 +00:00
Related to #1908 Will be fixed upstream by https://github.com/rancher/local-path-provisioner/pull/135/ but we're not going to update the LPP image right now since it's undergoing some changes that we don't want to pick up at the moment. Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
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
|