csi-wekafsplugin

by WEKA

Helm chartv2.9.7App v2.9.7Apache-2.0Verified publisher

Helm chart for Deployment of WekaIO Container Storage Interface (CSI) plugin for WekaFS - the world fastest filesystem

About this chart

CSI WekaFS Driver

Helm chart for Deployment of WekaIO Container Storage Interface (CSI) plugin for WekaFS - the world fastest filesystem

Homepage

https://github.com/weka/csi-wekafs

Maintainers

NameEmailUrl
WekaIO, Inc.[email protected]https://weka.io

Source Code

Pre-requisite

  • Kubernetes cluster of version 1.18 and up, 1.19 and up recommended
  • Helm v3 must be installed and configured properly
  • Weka system pre-configured and Weka client installed and registered in cluster for each Kubernetes node

Deployment

helm repo add csi-wekafs https://weka.github.io/csi-wekafs
helm install csi-wekafsplugin csi-wekafs/csi-wekafsplugin --namespace csi-wekafsplugin --create-namespace [--set selinuxSupport=<off | mixed | enforced>]

NOTE: Since version 0.8.0, Weka CSI plugin supports installation on SELinux-enabled Kubernetes clusters Refer to SELinux Support & Installation Notes for additional information

NOTE: On Red Hat OpenShift, the namespace must be created manually with pod-security labels before running Helm, otherwise installation warnings will appear. --create-namespace cannot apply labels to the namespace it creates.

oc create project csi-wekafsplugin
oc label namespace csi-wekafsplugin \
  pod-security.kubernetes.io/enforce=privileged \
  pod-security.kubernetes.io/audit=privileged \
  pod-security.kubernetes.io/warn=privileged \
  --overwrite
helm repo add csi-wekafs https://weka.github.io/csi-wekafs
helm install csi-wekafsplugin csi-wekafs/csi-wekafsplugin --namespace csi-wekafsplugin [--set selinuxSupport=<off | mixed | enforced>]

NOTE: Since version 0.7.0, Weka CSI plugin transitions to API-based deployment model which requires API connectivity and credentials parameters to be set in Storage Class.

Kubernetes does not allow storage class modification for existing volumes, hence the recommended upgrade process is re-deploying new persistent volumes based on new storage class format.

However, for sake of more convenient migration, a legacySecretName parameter can be set that will bind existing legacy volumes to a Weka cluster API and allow volume expansion.

For further information, refer Official Weka CSI Plugin documentation

Usage

Additional Documentation

Values

KeyTypeDefaultDescription
dynamicProvisionPathstring"csi-volumes"Directory in root of file system where dynamic volumes are provisioned
csiDriverNamestring"csi.weka.io"Name of the driver (and provisioner)
csiDriverVersionstring"2.9.7"CSI driver version
images.livenessprobesidecarstring"registry.k8s.io/sig-storage/livenessprobe:v2.19.0"CSI liveness probe sidecar image URL
images.attachersidecarstring"registry.k8s.io/sig-storage/csi-attacher:v4.12.0"CSI attacher sidecar image URL
images.provisionersidecarstring"registry.k8s.io/sig-storage/csi-provisioner:v6.3.0"CSI provisioner sidecar image URL
images.registrarsidecarstring"registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.17.0"CSI registrar sidercar
images.resizersidecarstring"registry.k8s.io/sig-storage/csi-resizer:v2.2.1"CSI resizer sidecar image URL
images.snapshottersidecarstring"registry.k8s.io/sig-storage/csi-snapshotter:v8.6.0"CSI snapshotter sidecar image URL
images.healthmonitorsidecarstring"registry.k8s.io/sig-storage/csi-external-health-monitor-controller:v0.18.0"CSI external health monitor sidecar image URL
images.csidriverstring"quay.io/weka.io/csi-wekafs"CSI driver main image URL
images.csidriverTagstring"2.9.7"CSI driver tag
imagePullSecretstring""image pull secret required for image download. Must have permissions to access all images above. Should be used in case of private registry that requires authentication
globalPluginTolerationslist[{"effect":"NoSchedule","key":"node-role.kubernetes.io/master","operator":"Exists"}]Tolerations for all CSI driver components
controllerPluginTolerationslist[{"effect":"NoSchedule","key":"node-role.kubernetes.io/master","operator":"Exists"}]Tolerations for CSI controller component only (by default same as global)
nodePluginTolerationslist[{"effect":"NoSchedule","key":"node-role.kubernetes.io/master","operator":"Exists"}]Tolerations for CSI node component only (by default same as global)
nodeSelectorobject{}Optional nodeSelector for CSI plugin deployment on certain Kubernetes nodes only This nodeselector will be applied to all CSI plugin components
affinityobject{}Optional affinity for CSI plugin deployment This affinity will be applied to all CSI plugin components
machineConfigLabelslist["worker","master"]Optional setting for OCP platform only, which machineconfig pools to apply the Weka SELinux policy on NOTE: by default, the policy will be installed both on workers and control plane nodes
controller.replicasint2Controller number of replicas
controller.healthPortint8081Health probe port for controller pods
controller.maxConcurrentRequestsint5Maximum concurrent requests from sidecars (global)
controller.concurrencyobject{"createSnapshot":5,"createVolume":5,"deleteSnapshot":5,"deleteVolume":5,"expandVolume":5}maximum concurrent operations per operation type
controller.grpcRequestTimeoutSecondsint30Return GRPC Unavailable if request waits in queue for that long time (seconds)
controller.healthMonitorobject{"enabled":true,"monitorInterval":"5m","timeoutSeconds":300}Volume health monitoring: periodically checks volume condition via the Weka API and reports abnormal volumes as events on the PVC
controller.healthMonitor.enabledbooltrueEnable the external health monitor sidecar
controller.healthMonitor.monitorIntervalstring"5m"How often to check volume health
controller.healthMonitor.timeoutSecondsint300Time budget for one full sweep of every volume, in seconds. This is not a per-request timeout: the sidecar walks all pages under a single deadline, so a fleet that takes longer than this is cut off mid-sweep and restarted from the beginning, leaving later volumes permanently unchecked. Measured at roughly 15 seconds per 1000 volumes; raise it for larger fleets.
controller.nodeSelectorobject{}optional nodeSelector for controller components only
controller.affinityobject{}optional affinity for controller components only
controller.priorityClassNamestring""optional priorityClassName for controller pods only, overriding the global priorityClassName
controller.labelsobject{}optional labels to add to controller deployment
controller.podLabelsobject{}optional labels to add to controller pods
controller.terminationGracePeriodSecondsint10termination grace period for controller pods
controller.resourcesobject{"csiAttacher":{"limits":{"cpu":1,"memory":"1Gi"},"requests":{"cpu":"4m","memory":"48Mi"}},"csiHealthMonitor":{"limits":{"cpu":1,"memory":"1Gi"},"requests":{"cpu":"4m","memory":"48Mi"}},"csiProvisioner":{"limits":{"cpu":1,"memory":"3Gi"},"requests":{"cpu":"128m","memory":"128Mi"}},"csiResizer":{"limits":{"cpu":1,"memory":"2Gi"},"requests":{"cpu":"4m","memory":"48Mi"}},"csiSnapshotter":{"limits":{"cpu":1,"memory":"1Gi"},"requests":{"cpu":"4m","memory":"48Mi"}},"wekafs":{"limits":{"cpu":1,"memory":"3Gi"},"requests":{"cpu":"128m","memory":"128Mi"}}}resource requests and limits for controller containers
node.concurrencyobject{"nodePublishVolume":5,"nodeUnpublishVolume":5}maximum concurrent operations per operation type (to avoid API starvation)
node.grpcRequestTimeoutSecondsint30Return GRPC Unavailable if request waits in queue for that long time (seconds)
node.nodeSelectorobject{}optional nodeSelector for node components only
node.affinityobject{}optional affinity for node components only
node.priorityClassNamestring""optional priorityClassName for node pods only, overriding the global priorityClassName
node.labelsobject{}optional labels to add to node daemonset
node.podLabelsobject{}optional labels to add to node pods
node.livenessProbeEnabledbooltrueEnable liveness probe on node pods. Set to false to disable health checks for debugging pod restart issues
node.terminationGracePeriodSecondsint10termination grace period for node pods
node.resourcesobject{"csiRegistrar":{"limits":{"cpu":1,"memory":"1Gi"},"requests":{"cpu":"8m","memory":"52Mi"}},"livenessProbe":{"limits":{"cpu":1,"memory":"1Gi"},"requests":{"cpu":"12m","memory":"44Mi"}},"wekafs":{"limits":{"cpu":1,"memory":"2Gi"},"requests":{"cpu":"128m","memory":"128Mi"}}}resource requests and limits for node containers
logLevelint5Log level of CSI plugin
useJsonLoggingboolfalseUse JSON structured logging instead of human-readable logging format (for exporting logs to structured log parser)
legacyVolumeSecretNamestring""for migration of pre-CSI 0.7.0 volumes only, default API secret. Must reside in same namespace as the plugin
priorityClassNamestring""Optional CSI Plugin priorityClassName for both components, overridable per component with controller.priorityClassName and node.priorityClassName
selinuxSupportstring"off"Support SELinux labeling for Persistent Volumes, may be either off, mixed, enforced (default off) In enforced mode, CSI node components will only start on nodes having a label selinuxNodeLabel below In mixed mode, separate CSI node components will be installed on SELinux-enabled and regular hosts In off mode, only non-SELinux-enabled node components will be run on hosts without label. WARNING: if SELinux is not enabled, volume provisioning and publishing might fail! NOTE: SELinux support is enabled automatically on clusters recognized as RedHat OpenShift Container Platform
selinuxNodeLabelstring"csi.weka.io/selinux_enabled"This label must be set to "true" on SELinux-enabled Kubernetes nodes, e.g., to run the node server in secure mode on SELinux-enabled node, the node must have label csi.weka.io/selinux_enabled="true"
selinuxOcpRetainMachineConfigboolfalseIf true, the SELinux policy machine configuration will not be removed when uninstalling the plugin. This is useful for OpenShift Container Platform clusters, to not cause machine config pool update on plugin reinstall
kubeletPathstring"/var/lib/kubelet"kubelet path, in cases Kubernetes is installed not in default folder
metrics.enabledbooltrueEnable Prometheus Metrics
metrics.controllerPortint9090Metrics port for Controller Server
metrics.provisionerPortint9091Provisioner metrics port
metrics.resizerPortint9092Resizer metrics port
metrics.snapshotterPortint9093Snapshotter metrics port
metrics.nodePortint9094Metrics port for Node Serer
metrics.attacherPortint9095Attacher metrics port
hostNetworkboolfalseSet to true to use host networking. Will be always set to true when using NFS mount protocol
pluginConfig.fsGroupPolicystring"File"WARNING: Changing this value might require uninstall and re-install of the plugin
pluginConfig.allowInsecureHttpsboolfalseAllow insecure HTTPS (skip TLS certificate verification)
pluginConfig.objectNaming.volumePrefixstring"csivol-"Prefix that will be added to names of Weka cluster filesystems / snapshots assocciated with CSI volume, must not exceed 7 symbols.
pluginConfig.objectNaming.snapshotPrefixstring"csisnp-"Prefix that will be added to names of Weka cluster snapshots assocciated with CSI snapshot, must not exceed 7 symbols.
pluginConfig.objectNaming.seedSnapshotPrefixstring"csisnp-seed-"Prefix that will be added to automatically created "seed" snapshot of empty filesytem, must not exceed 12 symbols.
pluginConfig.allowedOperations.autoCreateFilesystemsbooltrueAllow automatic provisioning of CSI volumes based on distinct Weka filesystem
pluginConfig.allowedOperations.autoExpandFilesystemsbooltrueAllow automatic expansion of filesystem on which Weka snapshot-backed or directory-backed CSI volumes reside, e.g. in case a required volume capacity exceeds the size of filesystem.
pluginConf

Deploy csi-wekafsplugin with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has csi-wekafsplugin on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcsi-wekafsplugin is pinned at v2.9.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply