CSINode

    apiVersion: storage.k8s.io/v1

    import "k8s.io/api/storage/v1"

    CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn’t create this object. CSINode has an OwnerReference that points to the corresponding node object.


    • apiVersion: storage.k8s.io/v1

    • kind: CSINode

    • metadata ()

      Standard object’s metadata. metadata.name must be the Kubernetes node name.

    • spec (CSINodeSpec), required

      spec is the specification of CSINode

    CSINodeSpec holds information about the specification of all CSI drivers installed on a node


    • drivers ([]CSINodeDriver), required

      Patch strategy: merge on key name

      drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.

      CSINodeDriver holds information about the specification of one CSI driver installed on a node

      • drivers.name (string), required

        name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.

      • drivers.nodeID (string), required

        nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as “node1”, but the storage system may refer to the same node as “nodeA”. When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. “nodeA” instead of “node1”. This field is required.

      • drivers.allocatable (VolumeNodeResources)

        allocatable represents the volume resources of a node that are available for scheduling. This field is beta.

        VolumeNodeResources is a set of resource limits for scheduling of volumes.

        • drivers.allocatable.count (int32)

          count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.

      • drivers.topologyKeys ([]string)

        topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. “company.com/zone”, “company.com/region”). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.

    CSINodeList is a collection of CSINode objects.



    HTTP Request

    GET /apis/storage.k8s.io/v1/csinodes/{name}

    Parameters

    • name (in path): string, required

      name of the CSINode

    • pretty (in query): string

      pretty

    Response

    200 (CSINode): OK

    401: Unauthorized

    list list or watch objects of kind CSINode

    HTTP Request

    GET /apis/storage.k8s.io/v1/csinodes

    Parameters

    • allowWatchBookmarks (in query): boolean

      allowWatchBookmarks

    • continue (in query): string

    • fieldSelector (in query): string

      fieldSelector

    • labelSelector (in query): string

    • limit (in query): integer

      limit

    • resourceVersion (in query): string

      resourceVersion

    • resourceVersionMatch (in query): string

    • sendInitialEvents (in query): boolean

      sendInitialEvents

    • timeoutSeconds (in query): integer

    • watch (in query): boolean

      watch

    Response

    200 (CSINodeList): OK

    401: Unauthorized

    HTTP Request

    POST /apis/storage.k8s.io/v1/csinodes

    Parameters

    • body: CSINode, required

    • dryRun (in query): string

    • fieldManager (in query): string

      fieldManager

    • fieldValidation (in query): string

    Response

    200 (): OK

    201 (CSINode): Created

    202 (): Accepted

    401: Unauthorized

    update replace the specified CSINode

    HTTP Request

    PUT /apis/storage.k8s.io/v1/csinodes/{name}

    Parameters

    • name (in path): string, required

      name of the CSINode

    • body: , required

    • dryRun (in query): string

      dryRun

    • fieldManager (in query): string

    • fieldValidation (in query): string

      fieldValidation

    • pretty (in query): string

    Response

    200 (): OK

    201 (CSINode): Created

    401: Unauthorized

    HTTP Request

    PATCH /apis/storage.k8s.io/v1/csinodes/{name}

    Parameters

    • name (in path): string, required

      name of the CSINode

    • body: Patch, required

    • dryRun (in query): string

    • fieldManager (in query): string

      fieldManager

    • force (in query): boolean

      force

    • pretty (in query): string

    Response

    200 (): OK

    201 (CSINode): Created

    401: Unauthorized

    delete a CSINode

    HTTP Request

    DELETE /apis/storage.k8s.io/v1/csinodes/{name}

    Parameters

    Response

    200 (CSINode): OK

    202 (): Accepted

    401: Unauthorized

    HTTP Request

    DELETE /apis/storage.k8s.io/v1/csinodes

    Parameters

    • body:

    • continue (in query): string

      continue

    • dryRun (in query): string

    • fieldSelector (in query): string

      fieldSelector

    • gracePeriodSeconds (in query): integer

    • labelSelector (in query): string

      labelSelector

    • limit (in query): integer

    • pretty (in query): string

      pretty

    • propagationPolicy (in query): string

    • resourceVersion (in query): string

      resourceVersion

    • resourceVersionMatch (in query): string

    • sendInitialEvents (in query): boolean

      sendInitialEvents

    Response

    200 (Status): OK