From 6b3e6e67e46274cee2c8e8c9454e481f95ee9500 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 13 Apr 2020 15:28:03 +0530 Subject: [PATCH] update the helm documentation for cephfs and rbd Signed-off-by: Madhu Rajanna --- charts/ceph-csi-cephfs/README.md | 38 +++++++++++++++++++++++++++----- charts/ceph-csi-rbd/README.md | 38 +++++++++++++++++++++++++++----- 2 files changed, 64 insertions(+), 12 deletions(-) diff --git a/charts/ceph-csi-cephfs/README.md b/charts/ceph-csi-cephfs/README.md index c80ab0ff6..3cc5b63f2 100644 --- a/charts/ceph-csi-cephfs/README.md +++ b/charts/ceph-csi-cephfs/README.md @@ -6,9 +6,25 @@ The ceph-csi-cephfs chart adds cephfs volume support to your cluster. To install the Chart into your Kubernetes cluster -```bash -helm install --namespace "ceph-csi-cephfs" --name "ceph-csi-cephfs" ceph-csi/ceph-csi-cephfs -``` +- For helm 2.x + + ```bash + helm install --namespace "ceph-csi-cephfs" --name "ceph-csi-cephfs" ceph-csi/ceph-csi-cephfs + ``` + +- For helm 3.x + + Create the namespace where Helm should install the components with + + ```bash + create namespace ceph-csi-cephfs + ``` + + Run the installation + + ```bash + helm install --namespace "ceph-csi-cephfs" "ceph-csi-cephfs" ceph-csi/ceph-csi-cephfs + ``` After installation succeeds, you can get a status of Chart @@ -16,11 +32,21 @@ After installation succeeds, you can get a status of Chart helm status "ceph-csi-cephfs" ``` +## Delete Chart + If you want to delete your Chart, use this command -```bash -helm delete --purge "ceph-csi-cephfs" -``` +- For helm 2.x + + ```bash + helm delete --purge "ceph-csi-cephfs" + ``` + +- For helm 3.x + + ```bash + helm uninstall "ceph-csi-cephfs" --namespace "ceph-csi-cephfs" + ``` If you want to delete the namespace, use this command diff --git a/charts/ceph-csi-rbd/README.md b/charts/ceph-csi-rbd/README.md index 250c10add..3a52dc13d 100644 --- a/charts/ceph-csi-rbd/README.md +++ b/charts/ceph-csi-rbd/README.md @@ -6,9 +6,25 @@ The ceph-csi-rbd chart adds rbd volume support to your cluster. To install the Chart into your Kubernetes cluster -```bash -helm install --namespace "ceph-csi-rbd" --name "ceph-csi-rbd" ceph-csi/ceph-csi-rbd -``` +- For helm 2.x + + ```bash + helm install --namespace "ceph-csi-rbd" --name "ceph-csi-rbd" ceph-csi/ceph-csi-rbd + ``` + +- For helm 3.x + + Create the namespace where Helm should install the components with + + ```bash + kubectl create namespace "ceph-csi-rbd" + ``` + + Run the installation + + ```bash + helm install --namespace "ceph-csi-rbd" "ceph-csi-rbd" ceph-csi/ceph-csi-rbd + ``` After installation succeeds, you can get a status of Chart @@ -16,11 +32,21 @@ After installation succeeds, you can get a status of Chart helm status "ceph-csi-rbd" ``` +## Delete Chart + If you want to delete your Chart, use this command -```bash -helm delete --purge "ceph-csi-rbd" -``` +- For helm 2.x + + ```bash + helm delete --purge "ceph-csi-rbd" + ``` + +- For helm 3.x + + ```bash + helm uninstall "ceph-csi-rbd" --namespace "ceph-csi-rbd" + ``` If you want to delete the namespace, use this command