ceph-csi/vendor/github.com/kubernetes-csi/drivers/examples/hostpath/csi-app.yaml

16 lines
350 B
YAML
Raw Normal View History

2018-11-26 18:23:56 +00:00
kind: Pod
apiVersion: v1
metadata:
name: my-csi-app
spec:
containers:
- name: my-frontend
image: busybox
volumeMounts:
- mountPath: "/data"
name: my-csi-volume
command: [ "sleep", "1000000" ]
volumes:
- name: my-csi-volume
persistentVolumeClaim:
claimName: csi-pvc # defined in csi-pvs.yaml