|
1 |
| -# Installation with Helm |
| 1 | +# Installation with Helm 3 |
2 | 2 |
|
3 | 3 | Quick start instructions for the setup and configuration of blobfuse CSI driver using Helm.
|
4 | 4 |
|
5 | 5 | ## Prerequisites
|
6 | 6 |
|
7 |
| -1. [install Helm Client](https://helm.sh/docs/using_helm/#installing-the-helm-client) |
| 7 | +1. [install Helm Client 3.0+ ](https://helm.sh/docs/intro/quickstart/#install-helm) |
8 | 8 |
|
9 |
| -2. [initialize Helm and install Tiller](https://helm.sh/docs/using_helm/#initialize-helm-and-install-tiller) |
10 |
| - |
11 |
| -## Install BlobFuse via `helm install` |
| 9 | +## Install latest CSI Driver via `helm install` |
12 | 10 |
|
13 | 11 | ```console
|
14 | 12 | $ cd $GOPATH/src/sigs.k8s.io/blobfuse-csi-driver/charts/latest
|
15 | 13 | $ helm package blobfuse-csi-driver
|
16 | 14 | $ helm install blobfuse-csi-driver blobfuse-csi-driver-latest.tgz --namespace kube-system
|
17 | 15 | ```
|
| 16 | + |
| 17 | +## Install CSI Driver released version using Helm repository |
| 18 | + |
| 19 | +```console |
| 20 | +$ helm repo add blobfuse-csi-driver https://raw.githubusercontent.com/kubernetes-sigs/blobfuse-csi-driver/master/charts |
| 21 | +$ helm install --name blobfuse-csi-driver blobfuse-csi-driver/blobfuse-csi-driver --namespace kube-system |
| 22 | +``` |
| 23 | + |
| 24 | +### Search for different versions of charts available |
| 25 | +```console |
| 26 | +$ helm search -l blobfuse-csi-driver/ |
| 27 | +``` |
| 28 | +### Install a specific version of Helm chart |
| 29 | +Specify the version of the chart to be installed using the `--version` parameter. |
| 30 | +```console |
| 31 | +helm install --name blobfuse-csi-driver blobfuse-csi-driver/blobfuse-csi-driver --namespace kube-system --version v0.5.0 |
| 32 | +``` |
18 | 33 |
|
19 | 34 | ## Uninstall
|
20 | 35 |
|
21 | 36 | ```console
|
22 |
| -$ helm delete --purge blobfuse-csi-driver |
23 |
| -``` |
| 37 | +$ helm uninstall blobfuse-csi-driver -n kube-system |
| 38 | +``` |
| 39 | +## The Latest Helm Chart Configuration |
| 40 | + |
| 41 | +The following table lists the configurable parameters of the latest Blobfuse CSI Driver chart and their default values. |
| 42 | + |
| 43 | +| Parameter | Description | Default | |
| 44 | +|---------------------------------------------------|------------------------------------------------------------|-------------------------------------------------------------------| |
| 45 | +| `image.blobfuse.repository` | blobfuse-csi-driver docker image | mcr.microsoft.com/k8s/csi/blobfuse-csi | |
| 46 | +| `image.blobfuse.tag` | blobfuse-csi-driver docker image tag | latest | |
| 47 | +| `image.blobfuse.pullPolicy` | blobfuse-csi-driver image pull policy | IfNotPresent | |
| 48 | +| `image.csiProvisioner.repository` | csi-provisioner docker image | mcr.microsoft.com/oss/kubernetes-csi/csi-provisioner | |
| 49 | +| `image.csiProvisioner.tag` | csi-provisioner docker image tag | v1.4.0 | |
| 50 | +| `image.csiProvisioner.pullPolicy` | csi-provisioner image pull policy | IfNotPresent | |
| 51 | +| `image.csiAttacher.repository` | csi-attacher docker image | mcr.microsoft.com/oss/kubernetes-csi/csi-attacher | |
| 52 | +| `image.csiAttacher.tag` | csi-attacher docker image tag | v2.2.0 | |
| 53 | +| `image.csiAttacher.pullPolicy` | csi-attacher image pull policy | IfNotPresent | | |
| 54 | +| `image.livenessProbe.repository` | liveness-probe docker image | mcr.microsoft.com/oss/kubernetes-csi/livenessprobe | |
| 55 | +| `image.livenessProbe.tag` | liveness-probe docker image tag | v1.1.0 | |
| 56 | +| `image.livenessProbe.pullPolicy` | liveness-probe image pull policy | IfNotPresent | |
| 57 | +| `image.nodeDriverRegistrar.repository` | csi-node-driver-registrar docker image | mcr.microsoft.com/oss/kubernetes-csi/csi-node-driver-registrar | |
| 58 | +| `image.nodeDriverRegistrar.tag` | csi-node-driver-registrar docker image tag | v1.2.0 | |
| 59 | +| `image.nodeDriverRegistrar.pullPolicy` | csi-node-driver-registrar image pull policy | IfNotPresent | |
| 60 | +| `serviceAccount.create` | whether create service account of csi-blobfuse-controller | true | |
| 61 | +| `rbac.create` | whether create rbac of csi-blobfuse-controller | true | |
| 62 | +| `controller.replicas` | the replicas of csi-blobfuse-controller | 2 | |
| 63 | +## Troubleshooting |
| 64 | + |
| 65 | +If there are some errors when using helm to install, follow the steps to debug: |
| 66 | + |
| 67 | +1. Add `--wait -v=5 --debug` in `helm install` command. |
| 68 | +2. Then the error pods can be located. |
| 69 | +3. Use `kubectl describe ` to acquire more info. |
| 70 | +4. Check the related resource of the pod, such as serviceaacount, rbac, etc. |
| 71 | + |
0 commit comments