Created
September 16, 2019 04:27
-
-
Save akhilerm/b48edb0b27f2ae6fff0878ea81c6c8b5 to your computer and use it in GitHub Desktop.
Example BlockDevice custom resource to be used in OpenEBS.
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
apiVersion: openebs.io/v1alpha1 | |
kind: BlockDevice | |
metadata: | |
name: example-blockdevice | |
labels: | |
kubernetes.io/hostname: <host name of the node in which disk/blockdevice is attached> # like gke-openebs-user-default-pool-044afcb8-bmc0 | |
ndm.io/managed: "false" # for manual disk creation put false | |
ndm.io/blockdevice-type: blockdevice | |
status: | |
claimState: Unclaimed | |
state: Active | |
spec: | |
capacity: | |
storage: <total capacity in bytes> #like 53687091200 | |
details: | |
firmwareRevision: <firmware revision> #optional | |
model: <model name of blockdevice> # like PersistentDisk, optional | |
serial: <serial no of disk> # like google-disk-2, optional | |
compliance: <compliance of disk> #like "SPC-4", optional | |
vendor: <vendor of disk> #like Google, optional | |
devlinks: | |
- kind: by-id | |
links: | |
- <link1> # like /dev/disk/by-id/scsi-0Google_PersistentDisk_disk-2 | |
- <link2> # like /dev/disk/by-id/google-disk-2 | |
- kind: by-path | |
links: | |
- <link1> # like /dev/disk/by-path/virtio-pci-0000:00:03.0-scsi-0:0:2:0 | |
nodeAttributes: | |
nodeName: <node name> # output of `kubectl get nodes` can be used | |
path: <devpath> # like /dev/sdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment