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.
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.
The driver supports both static and dynamic volume provisioning.
See example manifest (static) for more details.
accessModes
- must beReadOnlyMany
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 containingusername
andpassword
used to authenticate in onlineconf-adminreadOnly
:true
(OnlineConf volumes are always read only)volumeAttributes
:uri
- URI of onlineconf-admin instanceupdateInterval
- 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 beFilesystem
(default)
See example manifest (dynamic) for more details.
provisioner
- must becsi.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 containingusername
andpassword
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 instanceupdateInterval
- 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 oncsi.storage.k8s.io/node-stage-secret-name
for more details).