summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorBogumil Zebek <bogumil.zebek@nokia.com>2020-10-30 10:23:45 +0100
committerZebek Bogumil <bogumil.zebek@nokia.com>2020-11-02 07:33:09 +0100
commit1599617246f0ffec1b1c7840f9c7c42318183dcd (patch)
treeec11e494bd104e0f6bb1672e18380474069f29bc /README.md
parent2b9c912b34882e6766ed27355a2bf00ff29400ed (diff)
Fetch configuration from CBS
- Fix memory leak. - Add reactive configuration fetching from Consul. Now configuration is updated when any change in VES configuration has been done in Consul. Change-Id: I9cd42e04844c9e99d4d03951185523b569dc9483 Issue-ID: DCAEGEN2-2495 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md40
1 files changed, 38 insertions, 2 deletions
diff --git a/README.md b/README.md
index 7b93a989..a1733a23 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,43 @@ Run the image using docker-compose.yml
```
docker-compose up
```
-
+### Developer mode - run application from IDE
+
+To connect with "real" Consul instance you need to activate developer mode during starting VES application from IDE.
+Attention: Without developer mode (default mode) Ves started from IDE will not use Consul.
+
+1. Configure host mapping
+
+ For Linux: In host file add mapping for config-binding-service
+
+ vi /etc/hosts
+ SET_HERE_IP config-binding-service
+
+2. At lab open port for config-binding-service
+
+ - Get basic information about config-binding-service
+
+ ```
+ ubuntu@onap-7607-rke-node:~$ kubectl -n onap get services | grep config-binding-service
+ config-binding-service ClusterIP 10.43.227.68 <none> 10000/TCP,10443/TCP 6d2h
+ ```
+ - Edit config-binding-service to change ClusterIP to NodePort to expose port
+
+ ```
+ kubectl -n onap edit service config-binding-service
+ ```
+
+ - Get information about opened port for config-binding-service
+
+ ```
+ ubuntu@onap-7607-rke-node:~$ kubectl -n onap get services | grep config-binding-service
+ config-binding-service NodePort 10.43.227.68 <none> 10000:31029/TCP,10443:32719/TCP 6d2h
+ ```
+
+3. Run application with properties
+
+ -DdevMode=true -DcbsPort=31029
+
### Generate auth credential
Library to generate new cryptographic password is stored in dcaegen2/sdk -"security/crypt-password"
@@ -222,4 +258,4 @@ A client's certificate verification is disabled on the container by default; bel
Example of authentication failure (without a client's certificate):
curl -i -X POST -d @event.json --header "Content-Type: application/json" https://localhost:8443/eventListener/v7 -k
- curl: (35) error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate \ No newline at end of file
+ curl: (35) error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate