blob: 77b6554a08ec1947c762f94f40f01b16d8122583 [file] [log] [blame]
VENKATESH KUMAR7f3e4532020-11-18 16:30:36 -05001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3.. _tcagen2-installation:
4
5
VENKATESH KUMARe64d2d62020-04-06 18:55:10 -04006Installation
7============
8
9TCA-gen2 is a microservice that will be configured and instantiated through Cloudify Manager.TCA-gen2 will be deployed by DCAE deployment among the bootstrapped services. This is more to facilitate automated deployment of ONAP regression test cases required services. During instantiation, the TCA-gen2 will fetch its configuration through the Config Binding Service. Steps to deploy using the CLI tool are shown below.
10
11Deployment Prerequisite/dependencies
12^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 - DCAE and DMaaP pods should be up and running.
15 - MongoDB should be up and running
16 - Make sure that cfy is installed and configured to work with the Cloudify deployment.
17
18Deployment steps
19^^^^^^^^^^^^^^^^
20
21Following are steps if manual deployment/undeployment is required. Steps to deploy are below
22
23
24Enter the Cloudify Manager kuberenetes pod
25
VENKATESH KUMARe21c8482020-11-12 15:00:02 -050026 - Tca-gen2 blueprint directory (/blueprints/k8s-tcagen2.yaml). The blueprint is also maintained in gerrit and can be downloaded from https://git.onap.org/dcaegen2/platform/blueprints/tree/blueprints/k8s-tcagen2.yaml
VENKATESH KUMARe64d2d62020-04-06 18:55:10 -040027
VENKATESH KUMARe21c8482020-11-12 15:00:02 -050028 - Create input file required for deployment
VENKATESH KUMARe64d2d62020-04-06 18:55:10 -040029
30 Configuration of the service consists of generating an inputs file (YAML) which will be used as part of the
31 Cloudify install. The tca-gen2 blueprints was designed with known defaults for the majority of the fields.
32
33 Below you will find examples of fields which can be configured, and some of the fields
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040034 which must be configured. An input file is loaded into bootstrap container (/inputs/k8s-tcagen2-inputs.yaml).
VENKATESH KUMARe64d2d62020-04-06 18:55:10 -040035
36
37 .. csv-table::
38 :widths: auto
39 :delim: ;
40 :header: Property , Sample Value , Description , Required
VENKATESH KUMARe21c8482020-11-12 15:00:02 -050041
VENKATESH KUMARe64d2d62020-04-06 18:55:10 -040042 tca_handle_in_subscribe_url ; http://message-router:3904/events/unauthenticated.TCAGEN2_OUTPUT/; DMaap topic to publish CL event output ; No
43 tca_handle_in_subscribe_url ; http://message-router:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT/; DMaap topic to subscribe VES measurement feeds ; No
44 tag_version ; nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.0.1 ; The tag of the Docker image will be used when deploying the tca-gen2. ; No
45
46 Example inputs.yaml
47
48 .. code-block:: yaml
49
50 tag_version: nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.0.1
51 tca_handle_in_subscribe_url: "http://message-router:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT/"
52 tca_handle_out_publish_url: "http://message-router:3904/events/unauthenticated.TCAGEN2_OUTPUT/"
53
54
55 - Create deployment
56
57 .. code-block:: bash
58
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040059 cfy install --blueprint-id tcagen2 --deployment-id tcagen2 -i /inputs/k8s-tcagen2-inputs.yaml /blueprints/k8s-tcagen2.yaml
VENKATESH KUMARe64d2d62020-04-06 18:55:10 -040060
61
62
63To undeploy TCA-gen2, steps are shown below
64
65- Uninstall running TCA-gen2 and delete deployment
66 .. code-block:: bash
67
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040068 cfy uninstall tcagen2
VENKATESH KUMARe64d2d62020-04-06 18:55:10 -040069- Delete blueprint
70 .. code-block:: bash
71
VENKATESH KUMAR7cfaea22020-04-22 17:31:32 -040072 cfy blueprints delete tcagen2
VENKATESH KUMARe64d2d62020-04-06 18:55:10 -040073