Ezhilarasi | e4388f5 | 2019-04-23 20:34:32 +0530 | [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 | .. Copyright (C) 2019 IBM. |
| 4 | |
Ezhilarasi | dfaa1fd | 2019-09-16 15:23:27 +0530 | [diff] [blame] | 5 | |
| 6 | User Guide |
| 7 | ========== |
| 8 | |
Ezhilarasi | e4388f5 | 2019-04-23 20:34:32 +0530 | [diff] [blame] | 9 | Installation |
Ezhilarasi | aff5fcd | 2019-08-30 16:56:49 +0530 | [diff] [blame] | 10 | ------------ |
Ezhilarasi | e4388f5 | 2019-04-23 20:34:32 +0530 | [diff] [blame] | 11 | |
| 12 | ONAP is meant to be deployed within a Kubernetes environment. Hence, the de-facto way to deploy CDS is through Kubernetes. |
| 13 | |
| 14 | ONAP also package Kubernetes manifest as Chart, using Helm. |
| 15 | |
| 16 | Prerequisite |
Ezhilarasi | aff5fcd | 2019-08-30 16:56:49 +0530 | [diff] [blame] | 17 | ------------ |
Ezhilarasi | e4388f5 | 2019-04-23 20:34:32 +0530 | [diff] [blame] | 18 | |
| 19 | https://docs.onap.org/en/latest/guides/onap-developer/settingup/index.html |
| 20 | |
| 21 | Setup local Helm |
Ezhilarasi | aff5fcd | 2019-08-30 16:56:49 +0530 | [diff] [blame] | 22 | ---------------- |
Ezhilarasi | e4388f5 | 2019-04-23 20:34:32 +0530 | [diff] [blame] | 23 | |
| 24 | helm repo |
| 25 | |
| 26 | * helm serve & |
| 27 | * helm repo add local http://127.0.0.1:8879 |
| 28 | |
| 29 | Get the chart |
Ezhilarasi | aff5fcd | 2019-08-30 16:56:49 +0530 | [diff] [blame] | 30 | ------------- |
Ezhilarasi | e4388f5 | 2019-04-23 20:34:32 +0530 | [diff] [blame] | 31 | |
| 32 | Make sure to checkout the release to use, by replacing $release-tag in bellow command |
| 33 | |
| 34 | git clone https://gerrit.onap.org/r/oom |
| 35 | git checkout tags/$release-tag |
| 36 | cd oom/kubernetes |
| 37 | make cds |
| 38 | |
| 39 | Install CDS |
Ezhilarasi | aff5fcd | 2019-08-30 16:56:49 +0530 | [diff] [blame] | 40 | ----------- |
Ezhilarasi | e4388f5 | 2019-04-23 20:34:32 +0530 | [diff] [blame] | 41 | |
| 42 | helm install --name cds cds |
| 43 | |
| 44 | Result |
Ezhilarasi | aff5fcd | 2019-08-30 16:56:49 +0530 | [diff] [blame] | 45 | ------ |
Ezhilarasi | e4388f5 | 2019-04-23 20:34:32 +0530 | [diff] [blame] | 46 | |
Ezhilarasi | aff5fcd | 2019-08-30 16:56:49 +0530 | [diff] [blame] | 47 | .. code-block:: json |
| 48 | :linenos: |
| 49 | |
| 50 | $ kubectl get all --selector=release=cds |
| 51 | NAME READY STATUS RESTARTS AGE |
| 52 | pod/cds-blueprints-processor-54f758d69f-p98c2 0/1 Running 1 2m |
| 53 | pod/cds-cds-6bd674dc77-4gtdf 1/1 Running 0 2m |
| 54 | pod/cds-cds-db-0 1/1 Running 0 2m |
| 55 | pod/cds-controller-blueprints-545bbf98cf-zwjfc 1/1 Running 0 2m |
| 56 | NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE |
| 57 | service/blueprints-processor ClusterIP 10.43.139.9 <none> 8080/TCP,9111/TCP 2m |
| 58 | service/cds NodePort 10.43.254.69 <none> 3000:30397/TCP 2m |
| 59 | service/cds-db ClusterIP None <none> 3306/TCP 2m |
| 60 | service/controller-blueprints ClusterIP 10.43.207.152 <none> 8080/TCP 2m |
| 61 | NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE |
| 62 | deployment.apps/cds-blueprints-processor 1 1 1 0 2m |
| 63 | deployment.apps/cds-cds 1 1 1 1 2m |
| 64 | deployment.apps/cds-controller-blueprints 1 1 1 1 2m |
| 65 | NAME DESIRED CURRENT READY AGE |
| 66 | replicaset.apps/cds-blueprints-processor-54f758d69f 1 1 0 2m |
| 67 | replicaset.apps/cds-cds-6bd674dc77 1 1 1 2m |
| 68 | replicaset.apps/cds-controller-blueprints-545bbf98cf 1 1 1 2m |
| 69 | NAME DESIRED CURRENT AGE |
Ezhilarasi | dfaa1fd | 2019-09-16 15:23:27 +0530 | [diff] [blame] | 70 | statefulset.apps/cds-cds-db 1 1 2m |
| 71 | |
| 72 | |
| 73 | |
| 74 | Running CDS UI: |
| 75 | --------------- |
| 76 | |
| 77 | Client: |
| 78 | ~~~~~~~ |
| 79 | Install Node.js and angularCLI. Refer https://angular.io/guide/quickstart |
| 80 | npm install in the directory cds/cds-ui/client |
| 81 | npm run build - to build UI module |
| 82 | |
| 83 | |
| 84 | Loopback Server: |
| 85 | ~~~~~~~~~~~~~~~~ |
| 86 | |
| 87 | npm install in the directory cds/cds-ui/server |
| 88 | npm start should bring you the CDS UI page in your local machine with the link https://127.0.0.1:3000/ |