ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 1 | .. |
| 2 | SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 3 | SPDX-License-Identifier: Apache-2.0 |
| 4 | |
ajay | 0751498 | 2021-12-07 22:24:32 -0800 | [diff] [blame] | 5 | .. _deployment_4G_guide: |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 6 | |
ajay | 0751498 | 2021-12-07 22:24:32 -0800 | [diff] [blame] | 7 | 4G Deployment Guide |
| 8 | ==================== |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 9 | |
| 10 | Deployment Overview |
| 11 | ------------------- |
| 12 | SD-Core is released with Helm chart and container images. |
| 13 | We recommend using **Kubernetes** and **Helm** to deploy SD-Core. |
| 14 | SD-Core images are hosted on an ONF member-only Docker registry. |
| 15 | You need to obtain access token and supply that as part of the Helm value. |
| 16 | |
| 17 | Hardware resource requirement |
| 18 | ----------------------------- |
| 19 | |
ajay | ce0380c | 2021-12-14 21:51:00 -0800 | [diff] [blame] | 20 | .. list-table:: CPU & Memory Requirements for 4G components |
| 21 | :widths: 5 5 5 |
| 22 | :header-rows: 1 |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 23 | |
ajay | ce0380c | 2021-12-14 21:51:00 -0800 | [diff] [blame] | 24 | * - SD-Core Component |
| 25 | - Required CPU |
| 26 | - Required Memory in Gi |
| 27 | * - MME |
| 28 | - 2 CPU Cores |
| 29 | - 2Gi |
| 30 | * - SPGW |
| 31 | - 2 CPU Cores |
| 32 | - 5Gi |
| 33 | * - PCRF |
| 34 | - 2 CPU Cores |
| 35 | - 1Gi |
| 36 | * - HSS |
| 37 | - 2 CPU Cores |
| 38 | - 1Gi |
| 39 | * - Config4G |
| 40 | - 1 CPU Cores |
| 41 | - 1Gi |
| 42 | * - SimApp |
| 43 | - 1 CPU Cores |
| 44 | - 1Gi |
| 45 | * - Cassandra |
| 46 | - 2 CPU Cores |
| 47 | - 4Gi |
| 48 | |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 49 | |
| 50 | Prepare access credential for SD-Core images |
| 51 | -------------------------------------------- |
| 52 | |
| 53 | Container images can be download from ONF self-hosted container registry but you have to gain the access token first. |
| 54 | |
| 55 | 1. Login to `Aether Harbor Registry <https://registry.aetherproject.org/harbor/sign-in?redirect_url=%2Fharbor%2Fprojects>`_ using your ONF Crowd credential, |
| 56 | 2. Select ``User Profile`` drop-down menu in the upper-right corner |
| 57 | 3. Generate the CLI secret and it's the secret token you have to access the container registry via CLI tool. |
| 58 | 4. Login to the container registry with your username and access token |
| 59 | by ``docker login command`` to ensure you can access it. |
| 60 | |
| 61 | .. code-block:: |
| 62 | |
| 63 | ╰─$ docker login registry.aetherproject.org --username hwchiu |
| 64 | Password: |
| 65 | Login Succeeded |
| 66 | |
| 67 | Deployment Options |
| 68 | ------------------ |
| 69 | |
| 70 | Development Environments |
| 71 | """""""""""""""""""""""" |
ajay | ce0380c | 2021-12-14 21:51:00 -0800 | [diff] [blame] | 72 | Please refer (see :ref:`aiab-guide`) to setup 4G development environment. |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 73 | |
| 74 | Production Environments - 4G |
| 75 | """""""""""""""""""""""""""" |
| 76 | |
| 77 | To install SD-Core into your Kubernetes cluster, follow instructions |
| 78 | |
| 79 | Step1 - Clone SD-Core 4G Helm chart |
| 80 | ''''''''''''''''''''''''''''''''''' |
| 81 | .. code-block:: |
| 82 | |
| 83 | git clone ssh://gerrit.opencord.org:29418/sdcore-helm-charts |
| 84 | cd sdcore-helm-charts/sdcore-helm-charts/ |
| 85 | helm dep update #Update Helm dependencies |
| 86 | |
| 87 | Step2 - Prepare your Helm values for 4G |
| 88 | ''''''''''''''''''''''''''''''''''''''' |
| 89 | |
| 90 | You can modify existing values.yaml directly, but we recommend composing another value |
| 91 | file myvalues.yaml using values.yaml as an example. We are highlighting a few things we |
| 92 | need to modify here. More explanation of the supported Helm values can be found in the |
| 93 | Configuration section below. |
| 94 | |
| 95 | Step3 - Install 4G using SD-Core umbrella helm chart |
| 96 | '''''''''''''''''''''''''''''''''''''''''''''''''''' |
| 97 | |
| 98 | The following command will deploy the SD-Core helm chart with release name sdcore-4g in the sdcore-4g namespace. |
| 99 | |
| 100 | .. code-block:: |
| 101 | |
| 102 | helm install -n sdcore-4g --create-namespace -f myvaules.yaml sdcore-4g . |
| 103 | |
| 104 | To verify the installation: |
| 105 | |
| 106 | .. code-block:: |
| 107 | |
| 108 | helm -n sdcore-4g ls |
| 109 | |
| 110 | To uninstall: |
| 111 | |
| 112 | .. code-block:: |
| 113 | |
| 114 | helm -n sdcore-4g uninstall sdcore-4g |
| 115 | kubectl delete namespace sdcore-4g # also remove the sdcore-4g if needed |