Zack Williams | 16042b6 | 2020-03-29 22:03:16 -0700 | [diff] [blame] | 1 | .. _pod_physical: |
Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 2 | |
| 3 | Deploy a physical VOLTHA POD |
| 4 | ============================ |
| 5 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 6 | This document assumes you POD is already correctly cabled, if not you can |
Zack Williams | 16042b6 | 2020-03-29 22:03:16 -0700 | [diff] [blame] | 7 | refer to :ref:`lab_setup` |
Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 8 | |
| 9 | Requires: |
| 10 | |
| 11 | - a physical kubernetes cluster |
Zack Williams | 6ebfe06 | 2020-04-09 16:08:29 -0700 | [diff] [blame] | 12 | - `kind-voltha <https://gerrit.opencord.org/gitweb?p=kind-voltha.git>`_ cloned |
| 13 | on your machine |
Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 14 | |
| 15 | |
Zack Williams | c6460c2 | 2019-12-18 14:54:43 -0700 | [diff] [blame] | 16 | Enter the ``kind-voltha`` directory and execute this command (``kubectl`` must |
| 17 | be installed and pointing to your cluster): |
Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 18 | |
| 19 | .. code:: bash |
| 20 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 21 | DEPLOY_K8S=no WITH_RADIUS=y CONFIG_SADIS=y SADIS_CFG="my-sadis-cfg.json" ./voltha up |
| 22 | |
| 23 | *``my-sadis-cfg.json`` is a reference to your own ``sadis`` configuration. |
| 24 | This is needed to specify the appropriate values for your devices and subsribers* |
Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 25 | |
| 26 | If you already have a ``radius`` server that you want to use, change the flag to ``WITH_RADIUS=n`` |
| 27 | and `configure ONOS accordingly <https://github.com/opencord/aaa>`_. |
| 28 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 29 | For more information please check :doc:`kind-voltha page <../kind-voltha/README>`. |
Andrea Campanella | 61fd666 | 2020-07-27 16:56:55 +0200 | [diff] [blame] | 30 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 31 | After the deployment please refer to :ref:`operate` . |
Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 32 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 33 | HA Cluster |
| 34 | ---------- |
Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 35 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 36 | To deploy ONOS in a multi instance environment for redundancy, High avaliablity and scale, you can add |
| 37 | `NUM_OF_ONOS=3 NUM_OF_ATOMIX=3` to any of the workflow command. You can pick the number of instances onf ONOS |
| 38 | and ATOMIX independently. As a good suggestion is 3 or 5. |
Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 39 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 40 | If you are planning to support a big number of ONU we suggest to horizontally scale |
| 41 | the ``openonu-adapater``, you can do so by setting the ``NUM_OF_OPENONU`` variable. |
| 42 | Generally speaking a single ``openonu-adapter`` instance can support up to 200 ONU devices. |
| 43 | |
| 44 | As an example for the ATT workflow: |
Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 45 | |
| 46 | .. code:: bash |
| 47 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 48 | WITH_RADIUS=y CONFIG_SADIS=y SADIS_CFG="my-sadis-cfg.json" NUM_OF_ONOS=3 NUM_OF_ATOMIX=3 NUM_OF_OPENONU=8 ./voltha up |
Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 49 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 50 | Configuration for in-band OLT control |
| 51 | ------------------------------------- |
Matteo Scandolo | 1f5530b | 2019-12-17 10:12:31 -0800 | [diff] [blame] | 52 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 53 | If OLT is being used in in-band connectivity mode, the following |
| 54 | `document <https://docs.google.com/document/d/1OKDJCPEFVTEythAFUS_I7Piew4jHmhk25llK6UF04Wg>`_ |
| 55 | details the configuration aspects in ONOS and the aggregation switch to |
| 56 | trunk/switch in-band packets from the OLT to BNG or Voltha. |