Skip to content

Instantly share code, notes, and snippets.

@fabianvf
Created July 26, 2018 17:21
Show Gist options
  • Select an option

  • Save fabianvf/eedacf25d0c6b4bbff609ae3b982cc07 to your computer and use it in GitHub Desktop.

Select an option

Save fabianvf/eedacf25d0c6b4bbff609ae3b982cc07 to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ceph-pvc
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Pod
metadata:
name: mount-test
spec:
containers:
- image: busybox
command:
- sleep
- "3600"
imagePullPolicy: IfNotPresent
name: busybox
volumeMounts:
- mountPath: /ceph
name: ceph
restartPolicy: Always
volumes:
- name: ceph
persistentVolumeClaim:
claimName: ceph-pvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment