blob: 2f9ce48e799520fdebc3671d96df554d46232069 [file] [log] [blame]
Ezhilarasie4388f52019-04-23 20:34:32 +05301.. 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
5Installation
Ezhilarasiaff5fcd2019-08-30 16:56:49 +05306------------
Ezhilarasie4388f52019-04-23 20:34:32 +05307
8ONAP is meant to be deployed within a Kubernetes environment. Hence, the de-facto way to deploy CDS is through Kubernetes.
9
10ONAP also package Kubernetes manifest as Chart, using Helm.
11
12Prerequisite
Ezhilarasiaff5fcd2019-08-30 16:56:49 +053013------------
Ezhilarasie4388f52019-04-23 20:34:32 +053014
15https://docs.onap.org/en/latest/guides/onap-developer/settingup/index.html
16
17Setup local Helm
Ezhilarasiaff5fcd2019-08-30 16:56:49 +053018----------------
Ezhilarasie4388f52019-04-23 20:34:32 +053019
20helm repo
21
22* helm serve &
23* helm repo add local http://127.0.0.1:8879
24
25Get the chart
Ezhilarasiaff5fcd2019-08-30 16:56:49 +053026-------------
Ezhilarasie4388f52019-04-23 20:34:32 +053027
28Make sure to checkout the release to use, by replacing $release-tag in bellow command
29
30git clone https://gerrit.onap.org/r/oom
31git checkout tags/$release-tag
32cd oom/kubernetes
33make cds
34
35Install CDS
Ezhilarasiaff5fcd2019-08-30 16:56:49 +053036-----------
Ezhilarasie4388f52019-04-23 20:34:32 +053037
38helm install --name cds cds
39
40Result
Ezhilarasiaff5fcd2019-08-30 16:56:49 +053041------
Ezhilarasie4388f52019-04-23 20:34:32 +053042
Ezhilarasiaff5fcd2019-08-30 16:56:49 +053043.. code-block:: json
44 :linenos:
45
46 $ kubectl get all --selector=release=cds
47 NAME READY STATUS RESTARTS AGE
48 pod/cds-blueprints-processor-54f758d69f-p98c2 0/1 Running 1 2m
49 pod/cds-cds-6bd674dc77-4gtdf 1/1 Running 0 2m
50 pod/cds-cds-db-0 1/1 Running 0 2m
51 pod/cds-controller-blueprints-545bbf98cf-zwjfc 1/1 Running 0 2m
52 NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
53 service/blueprints-processor ClusterIP 10.43.139.9 <none> 8080/TCP,9111/TCP 2m
54 service/cds NodePort 10.43.254.69 <none> 3000:30397/TCP 2m
55 service/cds-db ClusterIP None <none> 3306/TCP 2m
56 service/controller-blueprints ClusterIP 10.43.207.152 <none> 8080/TCP 2m
57 NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
58 deployment.apps/cds-blueprints-processor 1 1 1 0 2m
59 deployment.apps/cds-cds 1 1 1 1 2m
60 deployment.apps/cds-controller-blueprints 1 1 1 1 2m
61 NAME DESIRED CURRENT READY AGE
62 replicaset.apps/cds-blueprints-processor-54f758d69f 1 1 0 2m
63 replicaset.apps/cds-cds-6bd674dc77 1 1 1 2m
64 replicaset.apps/cds-controller-blueprints-545bbf98cf 1 1 1 2m
65 NAME DESIRED CURRENT AGE
66 statefulset.apps/cds-cds-db 1 1 2m