blob: eb5d373721f47f256a41e7837ebcc63e533bc9c0 [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
19 > git clone 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
Roger Maitland9e5067c2018-03-27 10:57:08 -0400133**Step 3.** To setup a local Helm server to server up the ONAP charts::
Roger Maitland953b5f12018-03-22 15:24:04 -0400134
135 > helm serve &
136
137Note the port number that is listed and use it in the Helm repo add as
138follows::
139
140 > helm repo add local http://127.0.0.1:8879
141
Roger Maitland9e5067c2018-03-27 10:57:08 -0400142**Step 4.** Verify your Helm repository setup with::
Roger Maitland953b5f12018-03-22 15:24:04 -0400143
144 > helm repo list
145 NAME URL
146 local http://127.0.0.1:8879
147
Roger Maitland9e5067c2018-03-27 10:57:08 -0400148**Step 5.** Build a local Helm repository (from the kubernetes directory)::
149
150 > make all
151
Roger Maitland953b5f12018-03-22 15:24:04 -0400152**Step 6.** Display the charts that available to be deployed::
153
154 > helm search -l
155 NAME VERSION DESCRIPTION
156 local/appc 2.0.0 Application Controller
157 local/clamp 2.0.0 ONAP Clamp
158 local/common 2.0.0 Common templates for inclusion in other charts
159 local/onap 2.0.0 Open Network Automation Platform (ONAP)
160 local/robot 2.0.0 A helm Chart for kubernetes-ONAP Robot
161 local/so 2.0.0 ONAP Service Orchestrator
162
163.. note::
Roger Maitlandd1237f32018-03-26 13:14:04 -0400164 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 -0400165
166**Step 7.** Once the repo is setup, installation of ONAP can be done with a
167single command::
168
Roger Maitlandfe3f5412018-03-29 13:05:16 -0400169 > helm install local/onap -n dev --namespace onap
Roger Maitlandd1237f32018-03-26 13:14:04 -0400170
171.. note::
172 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 -0400173
174Use the following to monitor your deployment and determine when ONAP is ready for use::
175
176 > kubectl get pods --all-namespaces -o=wide