Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [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 2018 Amdocs, Bell Canada |
| 4 | |
| 5 | .. _quick-start-label: |
| 6 | |
| 7 | OOM Quick Start Guide |
| 8 | ##################### |
| 9 | |
| 10 | .. figure:: oomLogoV2-medium.png |
| 11 | :align: right |
| 12 | |
| 13 | Once a kubernetes environment is available (follow the instructions in |
| 14 | :ref:`cloud-setup-guide-label` if you don't have a cloud environment |
| 15 | available), follow the following instructions to deploy ONAP. |
| 16 | |
| 17 | **Step 1.** Clone the OOM repository from ONAP gerrit:: |
| 18 | |
Roger Maitland | 8476bbe | 2018-06-07 10:07:31 -0400 | [diff] [blame] | 19 | > git clone -b beijing http://gerrit.onap.org/r/oom |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 20 | > cd oom/kubernetes |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 21 | |
| 22 | |
| 23 | **Step 2.** Customize the onap/values.yaml file to suit your deployment. You |
| 24 | may 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 Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 64 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 65 | aai: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 66 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 67 | appc: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 68 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 69 | clamp: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 70 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 71 | cli: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 72 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 73 | consul: # Consul Health Check Monitoring |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 74 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 75 | dcaegen2: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 76 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 77 | esr: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 78 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 79 | log: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 80 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 81 | message-router: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 82 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 83 | mock: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 84 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 85 | msb: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 86 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 87 | multicloud: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 88 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 89 | policy: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 90 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 91 | portal: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 92 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 93 | robot: # Robot Health Check |
| 94 | enabled: true |
| 95 | sdc: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 96 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 97 | sdnc: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 98 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 99 | 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 Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 125 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 126 | vfc: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 127 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 128 | vid: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 129 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 130 | vnfsdk: |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 131 | enabled: true |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 132 | |
Abdelmuhaimen Seaudi | d7133a1 | 2018-07-18 10:59:20 +0000 | [diff] [blame] | 133 | .. note:: |
| 134 | To generate openStackEncryptedPasswordHere : |
| 135 | |
Abdelmuhaimen Seaudi | 5bf6678 | 2018-07-26 13:38:17 +0000 | [diff] [blame] | 136 | ``root@olc-rancher:~# cd so/resources/config/mso/`` |
Abdelmuhaimen Seaudi | d7133a1 | 2018-07-18 10:59:20 +0000 | [diff] [blame] | 137 | |
Abdelmuhaimen Seaudi | 5bf6678 | 2018-07-26 13:38:17 +0000 | [diff] [blame] | 138 | ``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 Seaudi | d7133a1 | 2018-07-18 10:59:20 +0000 | [diff] [blame] | 139 | |
Roger Maitland | 9e5067c | 2018-03-27 10:57:08 -0400 | [diff] [blame] | 140 | **Step 3.** To setup a local Helm server to server up the ONAP charts:: |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 141 | |
| 142 | > helm serve & |
| 143 | |
| 144 | Note the port number that is listed and use it in the Helm repo add as |
| 145 | follows:: |
| 146 | |
| 147 | > helm repo add local http://127.0.0.1:8879 |
| 148 | |
Roger Maitland | 9e5067c | 2018-03-27 10:57:08 -0400 | [diff] [blame] | 149 | **Step 4.** Verify your Helm repository setup with:: |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 150 | |
| 151 | > helm repo list |
| 152 | NAME URL |
| 153 | local http://127.0.0.1:8879 |
| 154 | |
Roger Maitland | 9e5067c | 2018-03-27 10:57:08 -0400 | [diff] [blame] | 155 | **Step 5.** Build a local Helm repository (from the kubernetes directory):: |
| 156 | |
| 157 | > make all |
| 158 | |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 159 | **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 Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 171 | 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 Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 172 | |
| 173 | **Step 7.** Once the repo is setup, installation of ONAP can be done with a |
| 174 | single command:: |
| 175 | |
Roger Maitland | fe3f541 | 2018-03-29 13:05:16 -0400 | [diff] [blame] | 176 | > helm install local/onap -n dev --namespace onap |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 177 | |
| 178 | .. note:: |
| 179 | The requirement for the use of the `onap` namespace will be lifted once the OOM team completes their Beijing deveivers. |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 180 | |
| 181 | Use the following to monitor your deployment and determine when ONAP is ready for use:: |
| 182 | |
| 183 | > kubectl get pods --all-namespaces -o=wide |