blob: a965603efd97ef027e95ad2fd7d9121786971638 [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
Mike Elliotted5ff712018-11-07 15:47:19 -050019 > git clone -b casablanca 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
Mike Elliotted5ff712018-11-07 15:47:19 -050022**Step 2.** Install Helm Plugins required to deploy the ONAP Casablanca release::
Pawel Wieczorekaa859cd2019-01-23 17:32:18 +010023
24 > sudo cp -R ~/oom/kubernetes/helm/plugins/ ~/.helm
Roger Maitland953b5f12018-03-22 15:24:04 -040025
Mike Elliotted5ff712018-11-07 15:47:19 -050026**Step 3.** Customize the onap/values.yaml file to suit your deployment. You
Roger Maitland953b5f12018-03-22 15:24:04 -040027may want to selectively enable or disable ONAP components by changing the
28`enabled: true/false` flags as shown below:
29
Mike Elliotted5ff712018-11-07 15:47:19 -050030.. literalinclude:: onap-values.yaml
31 :language: yaml
Roger Maitland953b5f12018-03-22 15:24:04 -040032
Abdelmuhaimen Seaudid7133a12018-07-18 10:59:20 +000033.. note::
34 To generate openStackEncryptedPasswordHere :
35
Abdelmuhaimen Seaudi5bf66782018-07-26 13:38:17 +000036 ``root@olc-rancher:~# cd so/resources/config/mso/``
Abdelmuhaimen Seaudid7133a12018-07-18 10:59:20 +000037
Abdelmuhaimen Seaudi5bf66782018-07-26 13:38:17 +000038 ``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 +000039
Roger Maitland9e5067c2018-03-27 10:57:08 -040040**Step 3.** To setup a local Helm server to server up the ONAP charts::
Roger Maitland953b5f12018-03-22 15:24:04 -040041
42 > helm serve &
43
44Note the port number that is listed and use it in the Helm repo add as
45follows::
46
47 > helm repo add local http://127.0.0.1:8879
48
Roger Maitland9e5067c2018-03-27 10:57:08 -040049**Step 4.** Verify your Helm repository setup with::
Roger Maitland953b5f12018-03-22 15:24:04 -040050
51 > helm repo list
52 NAME URL
53 local http://127.0.0.1:8879
54
Roger Maitland9e5067c2018-03-27 10:57:08 -040055**Step 5.** Build a local Helm repository (from the kubernetes directory)::
56
Mike Elliotted5ff712018-11-07 15:47:19 -050057 > make all; make onap
Roger Maitland9e5067c2018-03-27 10:57:08 -040058
Roger Maitland953b5f12018-03-22 15:24:04 -040059**Step 6.** Display the charts that available to be deployed::
60
61 > helm search -l
Mike Elliotted5ff712018-11-07 15:47:19 -050062.. literalinclude:: helm-search.txt
Roger Maitland953b5f12018-03-22 15:24:04 -040063
64.. note::
Roger Maitlandd1237f32018-03-26 13:14:04 -040065 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 -040066
67**Step 7.** Once the repo is setup, installation of ONAP can be done with a
68single command::
69
Mike Elliotted5ff712018-11-07 15:47:19 -050070 > helm deploy dev local/onap --namespace onap
Roger Maitlandd1237f32018-03-26 13:14:04 -040071
Roger Maitland953b5f12018-03-22 15:24:04 -040072
73Use the following to monitor your deployment and determine when ONAP is ready for use::
74
75 > kubectl get pods --all-namespaces -o=wide
Mike Elliotted5ff712018-11-07 15:47:19 -050076
77Undeploying onap can be done using the following command::
Pawel Wieczorekaa859cd2019-01-23 17:32:18 +010078
Mike Elliotted5ff712018-11-07 15:47:19 -050079 > helm undeploy dev --purge
80
81
82More examples of using the deploy and undeploy plugins can be found here: https://wiki.onap.org/display/DW/OOM+Helm+%28un%29Deploy+plugins