From 76240bd30385be23b36768229eed87489345dd28 Mon Sep 17 00:00:00 2001 From: Chandru Date: Fri, 2 Jul 2021 19:19:30 +0530 Subject: [PATCH] Issue-ID: RIC-817 - Adding one time k8s setup instruction for Influxdb Adding the instructions into it/dep/docs/ric/installation-k8s1node.rst for setting up the storage class for Influxdb Signed-off-by: Chandru Change-Id: I83e15bb9c9bf2c801b8e375d593d4b3148fdab39 --- docs/ric/installation-k8s1node.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/ric/installation-k8s1node.rst b/docs/ric/installation-k8s1node.rst index 4827a4a5..19e26ccd 100644 --- a/docs/ric/installation-k8s1node.rst +++ b/docs/ric/installation-k8s1node.rst @@ -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 -- 2.16.6