Issue-ID: RIC-817 - Adding one time k8s setup instruction for Influxdb
[it/dep.git] / 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