# WEKA CSI Plugin

The WEKA CSI Plugin interfaces Kubernetes worker nodes and control plane with the WEKA clients. It enables the creation and configuration of persistent storage external to Kubernetes. It is based on the CSI Plugin standard.

<details>

<summary>What is the CSI Plugin standard?</summary>

The CSI (Container Storage Interface) Plugin is a standardized interface that enables container orchestration platforms, such as Kubernetes, to interact with different storage systems in a vendor-agnostic manner. CSI was introduced to address the challenges of integrating and managing storage in containerized environments.

For more details, see the [CSI standard specifications](https://github.com/container-storage-interface/spec/blob/master/spec.md).

</details>

The WEKA CSI Plugin provides the following features:

* Static and dynamic volumes provisioning.
* Mount a volume as a WEKA filesystem directory, a writable snapshot of an existing filesystem, or a whole filesystem.
* Support all volume access modes: ReadWriteMany, ReadWriteOnce, and ReadOnlyMany.
* Volume expansion.
* Snapshots and volume cloning.
* Quota enforcement on:
  * Snapshot-backed persistent volumes in WEKA version 4.2 and up.
  * Filesystem-backed persistent volumes in WEKA version 4.2 and up.
  * Directory-backed persistent volumes in WEKA version 3.14 and up. See [Upgrade legacy persistent volumes for capacity enforcement](https://docs.weka.io/appendices/weka-csi-plugin/upgrade-legacy-persistent-volumes-for-capacity-enforcement).

<div data-with-frame="true"><figure><img src="https://content.gitbook.com/content/ZW262oqYA8pNNfGvXjHa/blobs/ak0LYauEm5AjI0uaIeGp/CSI_plugin_implementation.png" alt="" width="563"><figcaption><p>WEKA CSI Plugin implementation</p></figcaption></figure></div>

## Interoperability

* CSI protocol: 1.0 - 1.2.
* Kubernetes: 1.18 - 1.3x.
* WEKA: V3.14 and up. WEKA V4.2 and up and WEKA CSI Plugin V2.0 are required to get all features.
* SELinux is supported (AppArmor for Ubuntu is not supported).
* Starting with WEKA CSI Plugin version 2.5.0, NFS transport is available. This option is intended for non-performance-critical scenarios or environments where installing the WEKA client is not feasible.

{% hint style="info" %}
The WEKA CSI Plugin replaces plugins developed earlier in the Kubernetes evolution. It replaces the `hostPath` method to expose WEKA mounts as Kubernetes volumes.
{% endhint %}
