Document update (.rst) for Restconf
[dcaegen2.git] / docs / sections / services / restconf / installation.rst
diff --git a/docs/sections/services/restconf/installation.rst b/docs/sections/services/restconf/installation.rst
new file mode 100644 (file)
index 0000000..2f36987
--- /dev/null
@@ -0,0 +1,47 @@
+Installation
+============
+
+Sample docker run command could be -
+.. code-block:: bash
+       docker run onap/org.onap.dcaegen2.collectors.restconfcollector
+
+For Dublin release, it will be a DCAE component that can dynamically be deployed via Cloudify blueprint installation.
+Steps to deploy are shown below
+
+- Transfer blueprint component file in DCAE bootstrap POD under /blueprints directory. Blueprint can be found in
+
+     https://git.onap.org/dcaegen2/collectors/restconf/tree/dpo/blueprints/k8s-rcc-policy.yaml-template?h=master
+
+- Enter the Bootstrap POD
+- Validate blueprint
+    .. code-block:: bash
+        
+        cfy blueprints validate /blueprints/k8s-rcc-policy.yaml
+- Upload validated blueprint
+    .. code-block:: bash
+        
+
+        cfy blueprints upload -b restconfcollector /blueprints/k8s-rcc-policy.yaml
+- Create deployment
+    .. code-block:: bash
+        
+
+        cfy deployments create -b restconfcollector restconfcollector
+- Deploy blueprint
+    .. code-block:: bash
+        
+
+        cfy executions start -d restconfcollector install
+
+To undeploy restconfcollector, steps are shown below
+
+- Uninstall running restconfcollector and delete deployment
+    .. code-block:: bash
+        
+
+        cfy uninstall restconfcollector
+- Delete blueprint
+    .. code-block:: bash
+        
+
+        cfy blueprints delete restconfcollector