From 5686d3e46ab9f310abb12cf9c30929fc2a8ea363 Mon Sep 17 00:00:00 2001 From: Andy Zhang Date: Wed, 6 Jan 2021 19:45:48 +0800 Subject: [PATCH] Update README.md --- charts/README.md | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/charts/README.md b/charts/README.md index 05da3476..0945c686 100644 --- a/charts/README.md +++ b/charts/README.md @@ -4,33 +4,27 @@ Follow this guide to install the NFS Driver for Kubernetes. ## Prerequisites -- [Install Helm 3](https://helm.sh/docs/intro/quickstart/#install-helm) + - [install Helm Client 3.0+ ](https://helm.sh/docs/intro/quickstart/#install-helm) -## Install via `helm install` +## Install latest CSI Driver via `helm install` +```console +$ cd $GOPATH/src/github.com/kubernetes-csi/csi-driver-nfs/charts/latest +$ helm package csi-driver-nfs +$ helm install csi-driver-nfs csi-driver-nfs-latest.tgz --namespace kube-system ``` -$ cd charts/latest -$ helm install csi-driver-nfs ./csi-driver-nfs -n kube-system -``` -## Install via Helm repository -``` -$ helm repo add csi-driver-nfs https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts -$ helm install --name csi-driver-nfs csi-driver-nfs/csi-driver-nfs --namespace kube-system +### Install a specific version +Specify the version of the chart to be installed using the `--version` parameter. +```console +helm install --name csi-driver-nfs csi-driver-nfs/csi-driver-nfs --namespace kube-system --version v0.2.0 ``` ### Search for available versions -``` +```console $ helm search repo -l csi-driver-nfs ``` - -### Install a specific version - -``` -https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts --version v2.0.0 -``` - ## Chart configuration The following table lists the configurable parameters of the latest NFS CSI Driver chart and their default values. @@ -60,4 +54,4 @@ If there are some errors when using helm to install, follow the steps to debug: 1. Add `--wait -v=5 --debug` in `helm install` command. 2. Then the error pods can be located. 3. Use `kubectl describe` to acquire more info. -4. Check the related resource of the pod, such as serviceaacount, rbac, etc. \ No newline at end of file +4. Check the related resource of the pod, such as serviceaacount, rbac, etc.