A Container Storage Interface (CSI) Driver for Yandex.Cloud Compute Disks
A Container Storage Interface (CSI) Driver for Yandex.Cloud Compute Disks
A Container Storage Interface (CSI) Driver for Yandex Compute Disks.
The Yandex CSI driver follows semantic versioning. The version will be bumped following the rules below:
PATCH update.MINOR update.MAJOR update.Below is a list of functionality implemented by the plugin.
Volumes can be expanded by updating the storage request value of the corresponding PVC:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: csi-pvc
namespace: default
spec:
[...]
resources:
requests:
# The field below can be increased.
storage: 10Gi
[...]After successful expansion, the status section of the PVC object will reflect the actual volume capacity.
Important notes:
The block size of a disk can optionally be set with the blockSize StorageClass parameter. The value is either a plain number of bytes (8192) or a number with a binary kilobyte suffix (8K, 8Ki, 8KiB). Allowed values are powers of two from 4 KiB to 128 KiB, as described in the Yandex.Cloud documentation. When the parameter is omitted, the Yandex.Cloud default of 4 KiB is used.
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: yc-network-ssd-64k
provisioner: yandex.csi.flant.com
parameters:
typeID: network-ssd
blockSize: 64Ki
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumerThe block size defines the maximum size of a network disk: 8 TiB for the default 4 KiB block, and twice as much for every next block size, up to 256 TiB for a 128 KiB block. The block size cannot be changed after a disk is created.
Volume statistics are exposed through the CSI-conformant endpoints. Monitoring systems such as Prometheus can scrape metrics and provide insights into volume usage.
yandex-csi-driver is supported in Kubernetes >=1.15 only.
Requirements:
--allow-privileged flag must be set to true for both the API server and the kubelet--feature-gates=VolumeSnapshotDataSource=true,CSINodeInfo=true,CSIDriverRegistry=true feature gate flags must be set to true for both the API server and the kubeletSimply install everyhting from the deploy path. Be sure to replace:
No open issues yet, or sync has not completed.