blob: 077e7e7e1c04803608318151860ebca16268e40f [file] [log] [blame]
Roger Maitland953b5f12018-03-22 15:24:04 -04001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3.. Copyright 2018 Amdocs, Bell Canada
4
5.. _quick-start-label:
6
7OOM Quick Start Guide
8#####################
9
10.. figure:: oomLogoV2-medium.png
11 :align: right
12
13Once a kubernetes environment is available (follow the instructions in
14:ref:`cloud-setup-guide-label` if you don't have a cloud environment
15available), follow the following instructions to deploy ONAP.
16
17**Step 1.** Clone the OOM repository from ONAP gerrit::
18
Roger Maitland8476bbe2018-06-07 10:07:31 -040019 > git clone -b beijing http://gerrit.onap.org/r/oom
Roger Maitlandd1237f32018-03-26 13:14:04 -040020 > cd oom/kubernetes
Roger Maitland953b5f12018-03-22 15:24:04 -040021
22
23**Step 2.** Customize the onap/values.yaml file to suit your deployment. You
24may want to selectively enable or disable ONAP components by changing the
25`enabled: true/false` flags as shown below:
26
27.. code-block:: yaml
28
29 #################################################################
30 # Global configuration overrides.
31 #
32 # These overrides will affect all helm charts (ie. applications)
33 # that are listed below and are 'enabled'.
34 #################################################################
35 global:
36 # Change to an unused port prefix range to prevent port conflicts
37 # with other instances running within the same k8s cluster
38 nodePortPrefix: 302
39
40 # image repositories
41 repository: nexus3.onap.org:10001
42 repositorySecret: eyJuZXh1czMub25hcC5vcmc6MTAwMDEiOnsidXNlcm5hbWUiOiJkb2NrZXIiLCJwYXNzd29yZCI6ImRvY2tlciIsImVtYWlsIjoiQCIsImF1dGgiOiJaRzlqYTJWeU9tUnZZMnRsY2c9PSJ9fQ==
43 # readiness check
44 readinessRepository: oomk8s
45 # logging agent
46 loggingRepository: docker.elastic.co
47
48 # image pull policy
49 pullPolicy: Always
50
51 # default mount path root directory referenced
52 # by persistent volumes and log files
53 persistence:
54 mountPath: /dockerdata-nfs
55
56 # flag to enable debugging - application support required
57 debugEnabled: false
58
59 #################################################################
60 # Enable/disable and configure helm charts (ie. applications)
61 # to customize the ONAP deployment.
62 #################################################################
63 aaf:
Roger Maitlandd1237f32018-03-26 13:14:04 -040064 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040065 aai:
Roger Maitlandd1237f32018-03-26 13:14:04 -040066 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040067 appc:
Roger Maitlandd1237f32018-03-26 13:14:04 -040068 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040069 clamp:
Roger Maitlandd1237f32018-03-26 13:14:04 -040070 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040071 cli:
Roger Maitlandd1237f32018-03-26 13:14:04 -040072 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040073 consul: # Consul Health Check Monitoring
Roger Maitlandd1237f32018-03-26 13:14:04 -040074 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040075 dcaegen2:
Roger Maitlandd1237f32018-03-26 13:14:04 -040076 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040077 esr:
Roger Maitlandd1237f32018-03-26 13:14:04 -040078 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040079 log:
Roger Maitlandd1237f32018-03-26 13:14:04 -040080 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040081 message-router:
Roger Maitlandd1237f32018-03-26 13:14:04 -040082 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040083 mock:
Roger Maitlandd1237f32018-03-26 13:14:04 -040084 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040085 msb:
Roger Maitlandd1237f32018-03-26 13:14:04 -040086 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040087 multicloud:
Roger Maitlandd1237f32018-03-26 13:14:04 -040088 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040089 policy:
Roger Maitlandd1237f32018-03-26 13:14:04 -040090 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040091 portal:
Roger Maitlandd1237f32018-03-26 13:14:04 -040092 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040093 robot: # Robot Health Check
94 enabled: true
95 sdc:
Roger Maitlandd1237f32018-03-26 13:14:04 -040096 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040097 sdnc:
Roger Maitlandd1237f32018-03-26 13:14:04 -040098 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -040099 so: # Service Orchestrator
100 enabled: true
101
102 replicaCount: 1
103
104 liveness:
105 # necessary to disable liveness probe when setting breakpoints
106 # in debugger so K8s doesn't restart unresponsive container
107 enabled: true
108
109 # so server configuration
110 config:
111 # message router configuration
112 dmaapTopic: "AUTO"
113 # openstack configuration
114 openStackUserName: "vnf_user"
115 openStackRegion: "RegionOne"
116 openStackKeyStoneUrl: "http://1.2.3.4:5000"
117 openStackServiceTenantName: "service"
118 openStackEncryptedPasswordHere: "c124921a3a0efbe579782cde8227681e"
119
120 # configure embedded mariadb
121 mariadb:
122 config:
123 mariadbRootPassword: password
124 uui:
Roger Maitlandd1237f32018-03-26 13:14:04 -0400125 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -0400126 vfc:
Roger Maitlandd1237f32018-03-26 13:14:04 -0400127 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -0400128 vid:
Roger Maitlandd1237f32018-03-26 13:14:04 -0400129 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -0400130 vnfsdk:
Roger Maitlandd1237f32018-03-26 13:14:04 -0400131 enabled: true
Roger Maitland953b5f12018-03-22 15:24:04 -0400132
Abdelmuhaimen Seaudid7133a12018-07-18 10:59:20 +0000133.. note::
134 To generate openStackEncryptedPasswordHere :
135
Abdelmuhaimen Seaudi5bf66782018-07-26 13:38:17 +0000136 ``root@olc-rancher:~# cd so/resources/config/mso/``
Abdelmuhaimen Seaudid7133a12018-07-18 10:59:20 +0000137
Abdelmuhaimen Seaudi5bf66782018-07-26 13:38:17 +0000138 ``root@olc-rancher:~/oom/kubernetes/so/resources/config/mso# echo -n "<openstack tenant password>" | openssl aes-128-ecb -e -K `cat encryption.key` -nosalt | xxd -c 256 -p``
Abdelmuhaimen Seaudid7133a12018-07-18 10:59:20 +0000139
Roger Maitland9e5067c2018-03-27 10:57:08 -0400140**Step 3.** To setup a local Helm server to server up the ONAP charts::
Roger Maitland953b5f12018-03-22 15:24:04 -0400141
142 > helm serve &
143
144Note the port number that is listed and use it in the Helm repo add as
145follows::
146
147 > helm repo add local http://127.0.0.1:8879
148
Roger Maitland9e5067c2018-03-27 10:57:08 -0400149**Step 4.** Verify your Helm repository setup with::
Roger Maitland953b5f12018-03-22 15:24:04 -0400150
151 > helm repo list
152 NAME URL
153 local http://127.0.0.1:8879
154
Roger Maitland9e5067c2018-03-27 10:57:08 -0400155**Step 5.** Build a local Helm repository (from the kubernetes directory)::
156
157 > make all
158
Roger Maitland953b5f12018-03-22 15:24:04 -0400159**Step 6.** Display the charts that available to be deployed::
160
161 > helm search -l
162 NAME VERSION DESCRIPTION
163 local/appc 2.0.0 Application Controller
164 local/clamp 2.0.0 ONAP Clamp
165 local/common 2.0.0 Common templates for inclusion in other charts
166 local/onap 2.0.0 Open Network Automation Platform (ONAP)
167 local/robot 2.0.0 A helm Chart for kubernetes-ONAP Robot
168 local/so 2.0.0 ONAP Service Orchestrator
169
170.. note::
Roger Maitlandd1237f32018-03-26 13:14:04 -0400171 The setup of the Helm repository is a one time activity. If you make changes to your deployment charts or values be sure to use `make` to update your local Helm repository.
Roger Maitland953b5f12018-03-22 15:24:04 -0400172
173**Step 7.** Once the repo is setup, installation of ONAP can be done with a
174single command::
175
Roger Maitlandfe3f5412018-03-29 13:05:16 -0400176 > helm install local/onap -n dev --namespace onap
Roger Maitlandd1237f32018-03-26 13:14:04 -0400177
178.. note::
179 The requirement for the use of the `onap` namespace will be lifted once the OOM team completes their Beijing deveivers.
Roger Maitland953b5f12018-03-22 15:24:04 -0400180
181Use the following to monitor your deployment and determine when ONAP is ready for use::
182
183 > kubectl get pods --all-namespaces -o=wide