github.com/openebs/node-disk-manager@v1.9.1-0.20230225014141-4531f06ffa1e/deploy/crds/openebs_v1alpha1_blockdevice_cr.yaml (about)

     1  apiVersion: openebs.io/v1alpha1
     2  kind: BlockDevice
     3  metadata:
     4    name: example-blockdevice
     5    labels:
     6      kubernetes.io/hostname: <host name in which disk/blockdevice is attached> # like gke-openebs-user-default-pool-044afcb8-bmc0
     7      ndm.io/managed: "false" # for manual blockdevice creation put false
     8      ndm.io/blockdevice-type: <blockdevice type> # like blockdevice
     9      openebs.io/block-device-tag: <value> # optional label to tag a blockdevice for a particular use
    10  status:
    11    claimState: Unclaimed
    12    state: Active
    13  spec:
    14    capacity:
    15      storage: <total capacity in bytes> #like 53687091200
    16    details:
    17      firmwareRevision: <firmware revision>
    18      model: <model name of blockdevice> # like PersistentDisk
    19      serial: <serial no of disk> # like google-disk-2
    20      compliance: <compliance of disk> #like "SPC-4"
    21      vendor: <vendor of disk> #like Google
    22    devlinks:
    23    - kind: by-id
    24      links:
    25      - <link1> # like /dev/disk/by-id/scsi-0Google_PersistentDisk_disk-2
    26      - <link2> # like /dev/disk/by-id/google-disk-2
    27    - kind: by-path
    28      links:
    29      - <link1> # like /dev/disk/by-path/virtio-pci-0000:00:03.0-scsi-0:0:2:0
    30    nodeAttributes:
    31      nodeName: <node name> # output of `kubectl get nodes` can be used
    32    path: <devpath> # like /dev/sdb