Issue-ID: RIC-817 - Adding one time k8s setup instruction for Influxdb 61/6461/2
authorChandru <chandrasekaran-r@hcl.com>
Fri, 2 Jul 2021 13:49:30 +0000 (19:19 +0530)
committerChandru <chandrasekaran-r@hcl.com>
Mon, 5 Jul 2021 09:17:28 +0000 (14:47 +0530)
Adding the instructions into it/dep/docs/ric/installation-k8s1node.rst for setting up the storage class for
Influxdb

Signed-off-by: Chandru <chandrasekaran-r@hcl.com>
Change-Id: I83e15bb9c9bf2c801b8e375d593d4b3148fdab39

docs/ric/installation-k8s1node.rst

index 4827a4a..19e26cc 100644 (file)
@@ -89,3 +89,20 @@ with the kubectl command the VM should display information similar to below:
   kube-system   kube-proxy-867v5                       1/1     Running      0         103m
   kube-system   kube-scheduler-ljitest                 1/1     Running      0         102m
   kube-system   tiller-deploy-68bf6dff8f-6pwvc         1/1     Running      0         102m
+
+**Onetime setup for Influxdb**
+
+Once Kubernetes setup is done, we have to create PersistentVolume through the storage class for the influxdb database.
+The following one time process should be followed before deploying the influxdb in ricplt namespace.
+
+::
+
+  # User has to check the following namespace exist or not using
+  % kubectl get ns ricinfra
+
+  # If the namespace doesn’t exist, then create it using:
+  % kubectl create ns ricinfra
+
+  % helm install stable/nfs-server-provisioner --namespace ricinfra --name nfs-release-1
+  % kubectl patch storageclass nfs -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
+  % sudo apt install nfs-common