csi-qingcloud

by KubeSphere

Helm chartv1.4.0App 1.4.0Verified publisher

A Helm chart for Qingcloud CSI Driver

About this chart

csi-qingcloud

TL;DR;

helm install test/csi-qingcloud

Installing

To install the chart with the release name csi-qingcloud:

helm repo add test https://charts.kubesphere.io/test
helm install test/csi-qingcloud --name-template csi-qingcloud --namespace kube-system  \
--set config.qy_access_key_id=key,config.qy_secret_access_key=secret,config.zone=zone

The command deploys the csi-qingcloud chart on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling

To uninstall/delete the csi-qingcloud deployment:

helm delete csi-qingcloud --namespace kube-system

The command removes all the Kubernetes components associated with the chart and deletes the release.

Upgrade Notes

The qingcloud-csi chart uses csi-snapshotter v4.0.0 by default starting from chart v1.2.9, v1 snapshot CRDs are required for csi-snapshotter v4.0.0 and above, therefore user must install v1 snapshot CRDs prior to the upgrade, otherwise the snapshot operation will fail. csi-snapshotter v4.0.0 supports both v1 and v1beta1 snapshot objects. User can specify chart value snapshotter.tag=v2.0.1 with helm to use csi-snapshotter v2.0.1 which does not require v1 snapshot CRDs to be installed.

Support matrix 

Chart VersionSnapshot CRDs VersionMin K8s Version
<= 1.2.8only v1beta11.14
>= 1.2.9both v1beta1 and v1, only v11.17

Vertical Pod Autoscaler

Vertical Pod Autoscaler (VPA) frees the users from necessity of setting up-to-date resource limits and requests for the containers in their pods.

  • Set enableVPA to true in values.yaml to apply VerticalPodAutoscaler for csi-qingcloud-controller. (Need to make sure that vertical-pod-autoscaler can work first.)

  • Specify the minAllowed and maxAllowed value for each container in values.yaml, if the defaults don't meet your need.

  • When setting limits VPA will conform to resource policies. It will maintain limit to request ratio specified for all containers. VPA will try to cap recommendations between min and max of limit ranges. If limit range conflicts and VPA resource policy conflict then VPA will follow VPA policy (and set values outside limit range). For details, refer to the following examples

  • By default, VPA won't update the resource requests/limits of the container if the replicas is 1, in this case, the csi-qingcloud-controller, you can enforce this by adding below arguments to the vpa-updater deployment:

  args:
    - "--min-replicas=1"

Configuration

The following table lists the configurable parameters of the chart and their default values.

ParameterDescriptionDefault
config.qy_access_key_idAccess key id of QingCloud
config.qy_secret_access_keyAccess secret of QingCloud
config.zoneZone of QingCloud
config.hostAPI host of QingCloudapi.qingcloud.com
config.portAPI port of QingCloud443
config.protocolAPI protocol of QingCloudhttps
config.uriAPI URI of QingCloud/iaas
config.connection_retriesRetry count of API3
config.connection_timeoutRetry time out of API30
driver.nameName of the CSI driverdisk.csi.qingcloud.com
driver.repositoryImage of CSI plugincsiplugin/csi-qingcloud
driver.pullPolicyImage pull policy of CSI pluginIfNotPresent
driver.maxVolumeMax volume of CSI plugin9
driver.retryDetachTimesMaxMax time of retry detach100
driver.kubeletDirDirectory of kubelet/var/lib/kubelet
provisioner.repositoryImage of csi-provisionercsiplugin/csi-provisioner
provisioner.tagTag of csi-provisionerv2.2.2
provisioner.volumeNamePrefixPrefix of volume name created by the driverpvc
attacher.repositoryImage of csi-attachercsiplugin/csi-attacher
attacher.tagTag of csi-attacherv3.2.1
resizer.repositoryImage of csi-resizercsiplugin/csi-resizer
resizere.tagTag of csi-resizerv1.2.0
snapshotter.repositoryImage of csi-snapshottercsiplugin/csi-snapshotter
snapshotter.tagTag of csi-snapshotterv4.0.0
registar.repositoryImage of csi-node-driver-registrarcsiplugin/csi-node-driver-registrar
registar.tagTag of csi-node-driver-registrarv2.2.0
sc.enableWhether to enable this StorageClasstrue
sc.isDefaultClassWhether to set this StorageClass as the default StorageClassfalse
sc.nameName of storage classcsi-qingcloud
sc.typeType parameter of storage class. If setauto, disk type will be automatically set according to instance typeauto
sc.replica1 represents single duplication disk,2 represents multiple duplication disk2
sc.tagsTag parameter of storage class
sc.fsTypeFsType parameter of storage classext4
sc.reclaimPolicyReclaimPolicy parameter of storage classDelete
sc.allowVolumeExpansionAllowVolumeExpansion parameter of storage classtrue
sc.volumeBindingModeVolumeBindingMode parameter of storage classWaitForFirstConsumer
enableVPAWhether to enable vertical-pod-autoscalerfalse

Deploy csi-qingcloud with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has csi-qingcloud 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-qingcloud is pinned at v1.4.0 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