Git Product home page Git Product logo

onlineconf-csi-driver's Introduction

onlineconf-csi-driver

Container Storage Interface driver for OnlineConf volumes. It supposed to be used instead of onlineconf-updater sidecar containers in Kubernetes (or any other CSI complaint) environment to simplify deployment and drastically reduce amount of running updaters.

Deployment

onlineconf-csi-driver must be deployed on every node of a cluster (see Kubernetes CSI driver deployment guide). Additionally, for dynamic provisioning to work, exactly one instance of onlineconf-csi-driver working in controller mode is required. Draft deployment manifest can be used as an example.

Usage

The driver supports both static and dynamic volume provisioning.

Static volume provisioning

See example manifest (static) for more details.

Persistent Volume configuration

  • accessModes - must be ReadOnlyMany
  • capacity - not used by onlineconf-csi-driver right now. This field is required by Kubernetes, should be set to something reasonable.
  • csi:
    • driver: csi.onlineconf.mail.ru
    • nodeStageSecretRef - a reference to a secret containing username and password used to authenticate in onlineconf-admin
    • readOnly: true (OnlineConf volumes are always read only)
    • volumeAttributes:
      • uri - URI of onlineconf-admin instance
      • updateInterval - polling interval for requests to onlineconf-admin instance (default: "10s")
      • ${any_variable_name} - any variables you want to interpolate into OnlineConf template values
    • volumeHandle - required by Kubernetes
  • mountOptions - optional, supported options:
    • mode= - file mode bits of the volume root directory (default: 750)
  • volumeMode - optional, must be Filesystem (default)

Dynamic volume provisioning

See example manifest (dynamic) for more details.

Storage Class configuration

  • provisioner - must be csi.onlineconf.mail.ru
  • mountOptions - optional, supported options:
    • mode= - file mode bits of the volume root directory (default: 750)
  • parameters:
    • csi.storage.k8s.io/node-stage-secret-name - a name of a secret containing username and password used to authenticate in onlineconf-admin. Can contain template variables ${pvc.name}, ${pvc.namespace}, ${pv.name} and ${pvc.annotations['<ANNOTATION_KEY>']}, see Kubernetes CSI docs for more information. Recommended value is ${pvc.name}.
    • csi.storage.k8s.io/node-stage-secret-namespace - a namespace of this secret. Can contain template variables ${pvc.namespace} and ${pv.name}. Recommended value is ${pvc.namespace}.
    • uri - URI of onlineconf-admin instance
    • updateInterval - polling interval for requests to onlineconf-admin instance (default: "10s")
    • ${any_variable_name} - any variables you want to interpolate into OnlineConf template values. Can contain template variables ${pvc.name}, ${pvc.namespace} and ${pv.name} (see docs on csi.storage.k8s.io/node-stage-secret-name for more details).

onlineconf-csi-driver's People

Contributors

aleksey-mashanov avatar limpasha avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

onlineconf-csi-driver's Issues

controller not working with leader election concept

Hello. Thank you for your work.

I have one problem. I want to run the csi controller as Deployment, but without the concept of choosing a leader, I need to configure the application as a state full set, so as not to catch the side effect when updating.

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.