github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/demo/csi/ceph-csi-plugin/volume.hcl (about)

     1  id        = "testvolume"
     2  name      = "test1"
     3  type      = "csi"
     4  plugin_id = "cephrbd"
     5  
     6  capacity_min = "100MB"
     7  capacity_max = "1GB"
     8  
     9  capability {
    10    access_mode     = "single-node-writer"
    11    attachment_mode = "file-system"
    12  }
    13  
    14  capability {
    15    access_mode     = "single-node-writer"
    16    attachment_mode = "block-device"
    17  }
    18  
    19  # mount_options {
    20  #   fs_type     = "ext4"
    21  #   mount_flags = ["ro"]
    22  # }
    23  
    24  
    25  # creds should be coming from:
    26  # /var/lib/ceph/mds/ceph-demo/keyring
    27  
    28  # but instead we're getting them from:
    29  # /etc/ceph/ceph.client.admin.keyring
    30  
    31  secrets {
    32    userID  = "admin"
    33    userKey = "AQDsIoxgHqpeBBAAtmd9Ndu4m1xspTbvwZdIzA=="
    34  }
    35  
    36  parameters {
    37    # seeded from uuid5(ceph.example.com)
    38    clusterID     = "e9ba69fa-67ff-5920-b374-84d5801edd19"
    39    pool          = "rbd"
    40    imageFeatures = "layering"
    41  }