cbs-csi-driver

by douban

Helm chartv0.1.1App 2.3.3Verified publisher

A Helm chart for Kubernetes

About this chart

CBS CSI DRIVER Helm Chart

Helm chart for deploying CLB CSI DRIVER.

Prerequisites

  • Kubernetes v1.14.x+
  • kube-apiserver and kubelet need --allow-privileged=true (for v1.15.x+, kubelet defaults to set --allow-privileged to true. if still set it explicitly, will get error.)
  • kubelet configuration:--feature-gates=VolumeSnapshotDataSource=true
  • apiserver/controller-manager configuration:: --feature-gates=VolumeSnapshotDataSource=true
  • scheduler configuration:: --feature-gates=VolumeSnapshotDataSource=true,VolumeScheduling=true

You can find more information here: install-kubernetes

The values.yaml file provides four StorageClasses by default. If you need to configure your own StorageClass, please refer to the following documentation: storageclass-parameters

Installation

To install the chart with the release name my-release, run:

helm repo add douban https://douban.github.io/charts/
helm install my-release douban/cbs-csi-driver

Uninstallation

To uninstall the my-release deployment:

helm uninstall my-release

Quick Test

You can quickly test the CSI driver by creating a sample PVC and pod:

  1. Create a test manifest:
cat <<EOF > csi-test.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: csi-test-pvc
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 20Gi
  storageClassName: cbs-premium-hourly
---
apiVersion: v1
kind: Pod
metadata:
  name: csi-test-app
spec:
  containers:
    - name: app
      image: busybox
      command: ["/bin/sh", "-c", "while true; do echo \$(date) >> /data/test.log; sleep 5; done"]
      volumeMounts:
      - mountPath: "/data"
        name: csi-volume
  volumes:
    - name: csi-volume
      persistentVolumeClaim:
        claimName: csi-test-pvc
EOF
  1. Apply the configuration:
kubectl apply -f csi-test.yaml
  1. Verify resources:
kubectl get pvc csi-test-pvc
kubectl get pod csi-test-app
  1. Check data (wait 30 seconds):
kubectl exec csi-test-app -- cat /data/test.log
  1. Clean up:
kubectl delete -f csi-test.yaml

Deploy cbs-csi-driver with OpenTenant

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