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_5G_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 | 5G 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 5G 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 | * - AMF |
| 28 | - 2 CPU Cores |
| 29 | - 4Gi |
| 30 | * - SMF |
| 31 | - 2 CPU Cores |
| 32 | - 4Gi |
| 33 | * - NRF |
| 34 | - 2 CPU Cores |
| 35 | - 1Gi |
| 36 | * - NSSF |
| 37 | - 2 CPU Cores |
| 38 | - 1Gi |
| 39 | * - AUSF |
| 40 | - 1 CPU Cores |
| 41 | - 1Gi |
| 42 | * - PCF |
| 43 | - 1 CPU Cores |
| 44 | - 1Gi |
| 45 | * - UDR |
| 46 | - 2 CPU Cores |
| 47 | - 1Gi |
| 48 | * - UDM |
| 49 | - 2 CPU Cores |
| 50 | - 1Gi |
| 51 | * - Config5G(webconsole) |
| 52 | - 1 CPU Cores |
| 53 | - 1Gi |
| 54 | * - SimApp |
| 55 | - 1 CPU Cores |
| 56 | - 1Gi |
| 57 | * - MongoDB |
| 58 | - 2 CPU Cores |
| 59 | - 4Gi |
| 60 | |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 61 | |
| 62 | Prepare access credential for SD-Core images |
| 63 | -------------------------------------------- |
| 64 | |
| 65 | Container images can be download from ONF self-hosted container registry but you have to gain the access token first. |
| 66 | |
| 67 | 1. Login to `Aether Harbor Registry <https://registry.aetherproject.org/harbor/sign-in?redirect_url=%2Fharbor%2Fprojects>`_ using your ONF Crowd credential, |
| 68 | 2. Select ``User Profile`` drop-down menu in the upper-right corner |
| 69 | 3. Generate the CLI secret and it's the secret token you have to access the container registry via CLI tool. |
| 70 | 4. Login to the container registry with your username and access token |
| 71 | by ``docker login command`` to ensure you can access it. |
| 72 | |
| 73 | .. code-block:: |
| 74 | |
| 75 | ╰─$ docker login registry.aetherproject.org --username hwchiu |
| 76 | Password: |
| 77 | Login Succeeded |
| 78 | |
| 79 | Deployment Options |
| 80 | ------------------ |
| 81 | |
| 82 | Development Environments |
| 83 | """""""""""""""""""""""" |
| 84 | |
ajay | ce0380c | 2021-12-14 21:51:00 -0800 | [diff] [blame] | 85 | Please refer (see :ref:`aiab-guide`) to setup 5G development environment. |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 86 | |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 87 | Production Environments - 5G |
| 88 | """""""""""""""""""""""""""" |
| 89 | |
| 90 | To install SD-Core into your Kubernetes cluster, follow instructions |
| 91 | |
| 92 | Step1 - Clone SD-Core 5G Helm chart |
| 93 | ''''''''''''''''''''''''''''''''''' |
| 94 | .. code-block:: |
| 95 | |
| 96 | git clone ssh://gerrit.opencord.org:29418/sdcore-helm-charts |
| 97 | cd sdcore-helm-charts/sdcore-helm-charts/ |
| 98 | helm dep update #Update Helm dependencies |
| 99 | |
| 100 | Step2 - Prepare your Helm value for 5G |
| 101 | '''''''''''''''''''''''''''''''''''''' |
| 102 | |
| 103 | You can modify existing values.yaml directly, but we recommend composing another value |
| 104 | file myvalues.yaml using values.yaml as an example. We are highlighting a few things we |
| 105 | need to modify here. More explanation of the supported Helm values can be found in the |
| 106 | Configuration section below. |
| 107 | |
| 108 | Step3 - Install 5G using SD-Core umbrella helm chart |
| 109 | '''''''''''''''''''''''''''''''''''''''''''''''''''' |
| 110 | |
| 111 | The following command will deploy the SD-Core helm chart with release name sdcore-4g in the sdcore-4g namespace. |
| 112 | |
| 113 | .. code-block:: |
| 114 | |
| 115 | helm install -n sdcore-5g --create-namespace -f myvaules.yaml sdcore-5g . |
| 116 | |
| 117 | To verify the installation: |
| 118 | |
| 119 | .. code-block:: |
| 120 | |
| 121 | helm -n sdcore-5g ls |
| 122 | |
| 123 | To uninstall: |
| 124 | |
| 125 | .. code-block:: |
| 126 | |
| 127 | helm -n sdcore-5g uninstall sdcore-5g |
| 128 | kubectl delete namespace sdcore-5g # also remove the sdcore-5g if needed |
| 129 | |
| 130 | |