Vijay VK | 86cd893 | 2018-10-23 16:35:29 +0100 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License. |
| 2 | .. http://creativecommons.org/licenses/by/4.0 |
| 3 | |
| 4 | Installation |
| 5 | ============ |
| 6 | |
Vijay VK | edaf8b1 | 2019-05-23 22:02:50 +0100 | [diff] [blame] | 7 | VESCollector is installed via cloudify blueprint by DCAE bootstrap process on typical ONAP installation. |
| 8 | As the service is containerized, it can be started on stand-alone mode also. |
| 9 | |
| 10 | |
Vijay VK | 86cd893 | 2018-10-23 16:35:29 +0100 | [diff] [blame] | 11 | To run VES Collector container on standalone mode, following parameters are required |
| 12 | |
VENKATESH KUMAR | 647eade | 2020-10-29 11:30:28 -0400 | [diff] [blame] | 13 | ``docker run -d -p 8080:8080/tcp -p 8443:8443/tcp -P -e DMAAPHOST='10.0.11.1' nexus.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.7.9`` |
Vijay VK | 86cd893 | 2018-10-23 16:35:29 +0100 | [diff] [blame] | 14 | |
| 15 | |
| 16 | DMAAPHOST is required for standalone; for normal platform installed instance the publish URL are obtained from Consul. Below parameters are exposed for DCAE platform (cloudify) deployed instance |
| 17 | |
| 18 | |
| 19 | - COLLECTOR_IP |
| 20 | - DMAAPHOST - should contain an address to DMaaP, so that event publishing can work |
Pawel | 476247b | 2020-07-31 12:01:43 +0200 | [diff] [blame] | 21 | - CONFIG_BINDING_SERVICE - should be a name of CBS |
| 22 | - CONFIG_BINDING_SERVICE_SERVICE_PORT - should be a http port of CBS |
| 23 | - HOSTNAME - should be a name of VESCollector application as it is registered in CBS catalog |
Vijay VK | 86cd893 | 2018-10-23 16:35:29 +0100 | [diff] [blame] | 24 | |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 25 | These parameters can be configured either by passing command line option during `docker run` call or by specifying environment variables named after command line option name |
| 26 | |
| 27 | |
| 28 | Authentication Support |
| 29 | ---------------------- |
| 30 | |
| 31 | VES Collector support following authentication types |
| 32 | |
| 33 | * *auth.method=noAuth* default option - no security (http) |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 34 | * *auth.method=certBasicAuth* is used to enable mutual TLS authentication or/and basic HTTPs authentication |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 35 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 36 | The blueprint is same for both deployments - based on the input configuration, VESCollector can be set for required authentication type. |
| 37 | Default ONAP deployed VESCollector is configured for "certBasicAuth". |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 38 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 39 | If VESCollector instance need to be deployed with authentication disabled, follow below setup |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 40 | |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 41 | |
| 42 | - Execute into Bootstrap POD using kubectl command |
| 43 | |
VENKATESH KUMAR | e21c848 | 2020-11-12 15:00:02 -0500 | [diff] [blame^] | 44 | - VES blueprint is available under /blueprints directory ``k8s-ves-tls.yaml``. A corresponding input file is also pre-loaded into bootstrap pod under /inputs/k8s-ves-inputs.yaml |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 45 | |
| 46 | - Deploy blueprint |
| 47 | .. code-block:: bash |
| 48 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 49 | cfy install -b ves-http -d ves-http -i /inputs/k8s-ves-inputs.yaml /blueprints/k8s-ves-tls.yaml |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 50 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 51 | To undeploy ves-http, steps are noted below |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 52 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 53 | - Uninstall running ves-http and delete deployment |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 54 | .. code-block:: bash |
| 55 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 56 | cfy uninstall ves-http |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 57 | |
Vijay VK | a46f7fe | 2019-06-10 15:57:41 +0100 | [diff] [blame] | 58 | The deployment uninstall will also delete the blueprint. In some case you might notice 400 error reported indicating active deployment exist such as below |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 59 | ** An error occurred on the server: 400: Can't delete blueprint ves-http - There exist deployments for this blueprint; Deployments ids: ves-http** |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 60 | |
Vijay VK | a46f7fe | 2019-06-10 15:57:41 +0100 | [diff] [blame] | 61 | In this case blueprint can be deleted explicitly using this command. |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 62 | |
| 63 | .. code-block:: bash |
| 64 | |
VENKATESH KUMAR | 7cfaea2 | 2020-04-22 17:31:32 -0400 | [diff] [blame] | 65 | cfy blueprint delete ves-http |
VENKATESH KUMAR | be32a31 | 2019-06-07 01:31:10 -0400 | [diff] [blame] | 66 | |