blob: 91be3a6d9021c3c3fbe7f368251ab10ee07c22ab [file] [log] [blame]
Zack Williams16042b62020-03-29 22:03:16 -07001.. _pod_physical:
Matteo Scandolo1f5530b2019-12-17 10:12:31 -08002
3Deploy a physical VOLTHA POD
4============================
5
Matteo Scandoloef5d6f42020-07-27 16:46:38 -07006This document assumes you POD is already correctly cabled, if not you can
Zack Williams16042b62020-03-29 22:03:16 -07007refer to :ref:`lab_setup`
Matteo Scandolo1f5530b2019-12-17 10:12:31 -08008
9Requires:
10
11- a physical kubernetes cluster
Zack Williams6ebfe062020-04-09 16:08:29 -070012- `kind-voltha <https://gerrit.opencord.org/gitweb?p=kind-voltha.git>`_ cloned
13 on your machine
Matteo Scandolo1f5530b2019-12-17 10:12:31 -080014
15
Zack Williamsc6460c22019-12-18 14:54:43 -070016Enter the ``kind-voltha`` directory and execute this command (``kubectl`` must
17be installed and pointing to your cluster):
Matteo Scandolo1f5530b2019-12-17 10:12:31 -080018
19.. code:: bash
20
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070021 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.
24This is needed to specify the appropriate values for your devices and subsribers*
Matteo Scandolo1f5530b2019-12-17 10:12:31 -080025
26If you already have a ``radius`` server that you want to use, change the flag to ``WITH_RADIUS=n``
27and `configure ONOS accordingly <https://github.com/opencord/aaa>`_.
28
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070029For more information please check :doc:`kind-voltha page <../kind-voltha/README>`.
Andrea Campanella61fd6662020-07-27 16:56:55 +020030
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070031After the deployment please refer to :ref:`operate` .
Matteo Scandolo1f5530b2019-12-17 10:12:31 -080032
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070033HA Cluster
34----------
Matteo Scandolo1f5530b2019-12-17 10:12:31 -080035
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070036To 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
38and ATOMIX independently. As a good suggestion is 3 or 5.
Matteo Scandolo1f5530b2019-12-17 10:12:31 -080039
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070040If you are planning to support a big number of ONU we suggest to horizontally scale
41the ``openonu-adapater``, you can do so by setting the ``NUM_OF_OPENONU`` variable.
42Generally speaking a single ``openonu-adapter`` instance can support up to 200 ONU devices.
43
44As an example for the ATT workflow:
Matteo Scandolo1f5530b2019-12-17 10:12:31 -080045
46.. code:: bash
47
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070048 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 Scandolo1f5530b2019-12-17 10:12:31 -080049
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070050Configuration for in-band OLT control
51-------------------------------------
Matteo Scandolo1f5530b2019-12-17 10:12:31 -080052
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070053If OLT is being used in in-band connectivity mode, the following
54`document <https://docs.google.com/document/d/1OKDJCPEFVTEythAFUS_I7Piew4jHmhk25llK6UF04Wg>`_
55details the configuration aspects in ONOS and the aggregation switch to
56trunk/switch in-band packets from the OLT to BNG or Voltha.