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 | |
| 19 | > git clone 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 | |
Roger Maitland | 9e5067c | 2018-03-27 10:57:08 -0400 | [diff] [blame] | 133 | **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] | 134 | |
| 135 | > helm serve & |
| 136 | |
| 137 | Note the port number that is listed and use it in the Helm repo add as |
| 138 | follows:: |
| 139 | |
| 140 | > helm repo add local http://127.0.0.1:8879 |
| 141 | |
Roger Maitland | 9e5067c | 2018-03-27 10:57:08 -0400 | [diff] [blame] | 142 | **Step 4.** Verify your Helm repository setup with:: |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 143 | |
| 144 | > helm repo list |
| 145 | NAME URL |
| 146 | local http://127.0.0.1:8879 |
| 147 | |
Roger Maitland | 9e5067c | 2018-03-27 10:57:08 -0400 | [diff] [blame] | 148 | **Step 5.** Build a local Helm repository (from the kubernetes directory):: |
| 149 | |
| 150 | > make all |
| 151 | |
Roger Maitland | 953b5f1 | 2018-03-22 15:24:04 -0400 | [diff] [blame] | 152 | **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 Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 164 | 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] | 165 | |
| 166 | **Step 7.** Once the repo is setup, installation of ONAP can be done with a |
| 167 | single command:: |
| 168 | |
Roger Maitland | fe3f541 | 2018-03-29 13:05:16 -0400 | [diff] [blame] | 169 | > helm install local/onap -n dev --namespace onap |
Roger Maitland | d1237f3 | 2018-03-26 13:14:04 -0400 | [diff] [blame] | 170 | |
| 171 | .. note:: |
| 172 | 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] | 173 | |
| 174 | Use the following to monitor your deployment and determine when ONAP is ready for use:: |
| 175 | |
| 176 | > kubectl get pods --all-namespaces -o=wide |