Giter Club home page Giter Club logo

cluster-driver-registrar's Introduction

Build Status

!NOTE!

⚠️ ⚠️ Cluster Driver Registrar is deprecated ⚠️ ⚠️

CSIDriver object instance should be created by CSI driver installer (or manually). See docs/cluster-driver-registrar and docs/csi-driver-object for more information.

Cluster Driver Registrar

The cluster-driver-registrar is a sidecar container that creates a cluster-level CSIDriver object for the CSI driver.

This sidecar container is only needed if you need one of the following Kubernetes features:

  • Skip attach: For drivers that don't support ControllerPublishVolume, this eliminates the need to deploy the external-attacher sidecar
  • Pod info on mount: This passes Kubernetes metadata such as Pod name and namespace to the NodePublish call

If you are not using one of these features, this sidecar container (and the creation of the CSIDriver Object) is not required. However, it is still recommended, because the CSIDriver Object makes it easier for users to easily discover the CSI drivers installed on their clusters.

Compatibility

This information reflects the head of this branch.

Compatible with CSI Version Container Image Min K8s Version
CSI Spec v1.0.0 quay.io/k8scsi/csi-cluster-driver-registrar 1.14

Usage

Common arguments

Though not strictly required, the following parameters are typically customized:

  • --csi-address: This is the path to the CSI driver UNIX domain socket inside the pod that the cluster-driver-registrar container will use to issue CSI operations (e.g. /csi/csi.sock).
  • --pod-info-mount: This allows Pod information to be passed to the NodePublish call. This should only be set if the CSI driver requires Pod information for mounting.

Required permissions

The cluster-driver-registrar needs to be able to create and delete CSIDriver objects. A sample RBAC configuration can be found at deploy/kubernetes/rbac.yaml.

Example

Here is an example sidecar spec in the driver's controller StatefulSet. <drivername.example.com> should be replaced by the actual driver's name.

      containers:
        - name: cluster-driver-registrar
          image: quay.io/k8scsi/csi-cluster-driver-registrar:v1.0.2
          args:
            - "--csi-address=/csi/csi.sock"
            - "--pod-info-mount=true"
          volumeMounts:
            - name: plugin-dir
              mountPath: /csi
      volumes:
        - name: plugin-dir
          emptyDir: {}

Community, discussion, contribution, and support

Learn how to engage with the Kubernetes community on the community page.

You can reach the maintainers of this project at:

Code of conduct

Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.

cluster-driver-registrar's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.