Created
May 31, 2019 16:37
-
-
Save j-griffith/7c530aa653b0b078b2ef22aa27cfaa57 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doublehaul ➜ olm-local-volumes git:(master) ✗ cat local-pvc.yaml | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: local-claim | |
spec: | |
accessModes: | |
- ReadWriteMany | |
volumeMode: Block | |
resources: | |
requests: | |
storage: 1Gi | |
storageClassName: local-sc | |
doublehaul ➜ olm-local-volumes git:(master) ✗ k describe sc | |
Name: csi-rbd | |
IsDefaultClass: Yes | |
Annotations: storageclass.kubernetes.io/is-default-class=true | |
Provisioner: rbd.csi.ceph.com | |
Parameters: adminid=admin,csi.storage.k8s.io/node-publish-secret-name=csi-rbd-secret,csi.storage.k8s.io/node-publish-secret-namespace=default,csi.storage.k8s.io/provisioner-secret-name=csi-rbd-secret,csi.storage.k8s.io/provisioner-secret-namespace=default,imageFeatures=layering,imageFormat=2,monitors=10.102.235.136:6789,10.101.154.228:6789,10.102.243.205:6789,pool=rbd,userid=kubernetes | |
AllowVolumeExpansion: <unset> | |
MountOptions: <none> | |
ReclaimPolicy: Delete | |
VolumeBindingMode: Immediate | |
Events: <none> | |
Name: local-sc | |
IsDefaultClass: No | |
Annotations: <none> | |
Provisioner: kubernetes.io/no-provisioner | |
Parameters: <none> | |
AllowVolumeExpansion: <unset> | |
MountOptions: <none> | |
ReclaimPolicy: Delete | |
VolumeBindingMode: WaitForFirstConsumer | |
Events: <none> | |
doublehaul ➜ olm-local-volumes git:(master) ✗ cat demo-pod.yaml | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: my-pod | |
spec: | |
containers: | |
- name: my-container | |
image: busybox | |
command: | |
- sleep | |
- “300” | |
volumeDevices: | |
- devicePath: /dev/block | |
name: my-volume | |
imagePullPolicy: IfNotPresent | |
volumes: | |
- name: my-volume | |
persistentVolumeClaim: | |
claimName: local-claim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment