Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-8811 Support Container Storage Interface (CSI) in YARN
  3. YARN-8940

[CSI] Add volume as a top-level attribute in service spec

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Initial thought:

      {
        "name": "volume example",
        "version": "1.0.0",
        "description": "a volume simple example",
        "components" :
          [
            {
              "name": "",
              "number_of_containers": 1,
              "artifact": {
                "id": "docker.io/centos:latest",
                "type": "DOCKER"
              },
              "launch_command": "sleep,120",
              "configuration": {
                "env": {
                  "YARN_CONTAINER_RUNTIME_DOCKER_RUN_OVERRIDE_DISABLE":"true"
                }
              },
              "resource": {
                "cpus": 1,
                "memory": "256",
              },
              "volumes": [
                {
                  "volume" : {
                    "type": "s3_csi",
                    "id": "5504d4a8-b246-11e8-94c2-026b17aa1190",
                    "capability" : {
                      "min": "5Gi",
                      "max": "100Gi"
                    },
                    "source_path": "s3://my_bucket/my", # optional for object stores
                    "mount_path": "/mnt/data", # required, the mount point in docker container
                    "access_mode": "SINGLE_READ", # how the volume can be accessed
                  }
                }
              ]
            }
          }
        ]
      }
      

      Open for discussion.

      Attachments

        Activity

          People

            cheersyang Weiwei Yang
            cheersyang Weiwei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: