summaryrefslogtreecommitdiffstats
path: root/docs/sections/services/restconf/installation.rst
blob: 344decc3ce7214bb5ea94317b5d677145ff57958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. _restconf-installation:


Installation
============

Standalone  docker run command 
   .. code-block:: bash

	    docker run onap/org.onap.dcaegen2.collectors.restconfcollector

For the current release, RESTConf collector will be a DCAE component that can dynamically be deployed via Cloudify blueprint installation.


Steps to deploy are shown below

- Enter the Bootstrap POD using kubectl

     .. note::
       For doing this, follow the below steps

       * First get the bootstrap pod name by running run this: kubectl get pods -n onap | grep bootstrap
       * Then login to bootstrap pod by running this: kubectl exec -it <bootstrap pod> bash -n onap

- Validate blueprint
    .. note::
      Verify that the version of the plugin used should match with "cfy plugins list" and use an explicit URL to the plugin YAML file if needed in the blueprint.

    .. code-block:: bash
        
        cfy blueprints validate /blueprints/k8s-restconf.yaml
- Upload validated blueprint
    .. code-block:: bash
        

        cfy blueprints upload -b restconfcollector /blueprints/k8s-restconf.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