VENKATESH KUMAR | e64d2d6 | 2020-04-06 18:55:10 -0400 | [diff] [blame] | 1 | Installation |
| 2 | ============ |
| 3 | |
| 4 | TCA-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. |
| 5 | |
| 6 | Deployment Prerequisite/dependencies |
| 7 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 8 | |
| 9 | - DCAE and DMaaP pods should be up and running. |
| 10 | - MongoDB should be up and running |
| 11 | - Make sure that cfy is installed and configured to work with the Cloudify deployment. |
| 12 | |
| 13 | Deployment steps |
| 14 | ^^^^^^^^^^^^^^^^ |
| 15 | |
| 16 | Following are steps if manual deployment/undeployment is required. Steps to deploy are below |
| 17 | |
| 18 | |
| 19 | Enter the Cloudify Manager kuberenetes pod |
| 20 | |
VENKATESH KUMAR | e21c848 | 2020-11-12 15:00:02 -0500 | [diff] [blame^] | 21 | - 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 KUMAR | e64d2d6 | 2020-04-06 18:55:10 -0400 | [diff] [blame] | 22 | |
VENKATESH KUMAR | e21c848 | 2020-11-12 15:00:02 -0500 | [diff] [blame^] | 23 | - Create input file required for deployment |
VENKATESH KUMAR | e64d2d6 | 2020-04-06 18:55:10 -0400 | [diff] [blame] | 24 | |
| 25 | Configuration of the service consists of generating an inputs file (YAML) which will be used as part of the |
| 26 | Cloudify install. The tca-gen2 blueprints was designed with known defaults for the majority of the fields. |
| 27 | |
| 28 | Below you will find examples of fields which can be configured, and some of the fields |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 29 | which must be configured. An input file is loaded into bootstrap container (/inputs/k8s-tcagen2-inputs.yaml). |
VENKATESH KUMAR | e64d2d6 | 2020-04-06 18:55:10 -0400 | [diff] [blame] | 30 | |
| 31 | |
| 32 | .. csv-table:: |
| 33 | :widths: auto |
| 34 | :delim: ; |
| 35 | :header: Property , Sample Value , Description , Required |
VENKATESH KUMAR | e21c848 | 2020-11-12 15:00:02 -0500 | [diff] [blame^] | 36 | |
VENKATESH KUMAR | e64d2d6 | 2020-04-06 18:55:10 -0400 | [diff] [blame] | 37 | tca_handle_in_subscribe_url ; http://message-router:3904/events/unauthenticated.TCAGEN2_OUTPUT/; DMaap topic to publish CL event output ; No |
| 38 | tca_handle_in_subscribe_url ; http://message-router:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT/; DMaap topic to subscribe VES measurement feeds ; No |
| 39 | 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 |
| 40 | |
| 41 | Example inputs.yaml |
| 42 | |
| 43 | .. code-block:: yaml |
| 44 | |
| 45 | tag_version: nexus3.onap.org:10001/onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.0.1 |
| 46 | tca_handle_in_subscribe_url: "http://message-router:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT/" |
| 47 | tca_handle_out_publish_url: "http://message-router:3904/events/unauthenticated.TCAGEN2_OUTPUT/" |
| 48 | |
| 49 | |
| 50 | - Create deployment |
| 51 | |
| 52 | .. code-block:: bash |
| 53 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 54 | cfy install --blueprint-id tcagen2 --deployment-id tcagen2 -i /inputs/k8s-tcagen2-inputs.yaml /blueprints/k8s-tcagen2.yaml |
VENKATESH KUMAR | e64d2d6 | 2020-04-06 18:55:10 -0400 | [diff] [blame] | 55 | |
| 56 | |
| 57 | |
| 58 | To undeploy TCA-gen2, steps are shown below |
| 59 | |
| 60 | - Uninstall running TCA-gen2 and delete deployment |
| 61 | .. code-block:: bash |
| 62 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 63 | cfy uninstall tcagen2 |
VENKATESH KUMAR | e64d2d6 | 2020-04-06 18:55:10 -0400 | [diff] [blame] | 64 | - Delete blueprint |
| 65 | .. code-block:: bash |
| 66 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 67 | cfy blueprints delete tcagen2 |
VENKATESH KUMAR | e64d2d6 | 2020-04-06 18:55:10 -0400 | [diff] [blame] | 68 | |