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 | |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 62 | Deployment Options |
| 63 | ------------------ |
| 64 | |
| 65 | Development Environments |
| 66 | """""""""""""""""""""""" |
| 67 | |
ajay | ce0380c | 2021-12-14 21:51:00 -0800 | [diff] [blame] | 68 | Please refer (see :ref:`aiab-guide`) to setup 5G development environment. |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 69 | |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 70 | Production Environments - 5G |
| 71 | """""""""""""""""""""""""""" |
| 72 | |
| 73 | To install SD-Core into your Kubernetes cluster, follow instructions |
| 74 | |
| 75 | Step1 - Clone SD-Core 5G Helm chart |
| 76 | ''''''''''''''''''''''''''''''''''' |
| 77 | .. code-block:: |
| 78 | |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 79 | git clone "https://gerrit.opencord.org/sdcore-helm-charts" |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 80 | cd sdcore-helm-charts/sdcore-helm-charts/ |
| 81 | helm dep update #Update Helm dependencies |
| 82 | |
| 83 | Step2 - Prepare your Helm value for 5G |
| 84 | '''''''''''''''''''''''''''''''''''''' |
| 85 | |
| 86 | You can modify existing values.yaml directly, but we recommend composing another value |
| 87 | file myvalues.yaml using values.yaml as an example. We are highlighting a few things we |
| 88 | need to modify here. More explanation of the supported Helm values can be found in the |
| 89 | Configuration section below. |
| 90 | |
| 91 | Step3 - Install 5G using SD-Core umbrella helm chart |
| 92 | '''''''''''''''''''''''''''''''''''''''''''''''''''' |
| 93 | |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 94 | The following command will deploy the SD-Core helm chart with release name sdcore-5g in the sdcore-5g namespace. |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 95 | |
| 96 | .. code-block:: |
| 97 | |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 98 | helm install -n sdcore-5g --create-namespace -f myvalues.yaml sdcore-5g ~/cord/sdcore-helm-charts/sdcore-helm-charts |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 99 | |
| 100 | To verify the installation: |
| 101 | |
| 102 | .. code-block:: |
| 103 | |
| 104 | helm -n sdcore-5g ls |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 105 | ajayonf@node:~$ helm -n sdcore-5g ls |
| 106 | NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION |
| 107 | sdcore-5g sdcore-5g 1 2022-03-05 16:25:32.338495035 -0700 MST deployed sd-core-0.10.9 |
| 108 | ajayonf@node:~$ |
| 109 | |
| 110 | ajayonf@node:~$ kubectl get pods -n sdcore-5g |
| 111 | NAME READY STATUS RESTARTS AGE |
| 112 | amf-66bf99c879-5x4ms 1/1 Running 0 3m23s |
| 113 | ausf-65dc454b79-jp2cb 1/1 Running 0 3m23s |
| 114 | mongodb-6df94d8dd9-h8p4w 1/1 Running 0 3m23s |
| 115 | nrf-65bcfbb496-xvt6t 1/1 Running 0 3m23s |
| 116 | nssf-6f58859d67-552l2 1/1 Running 0 3m23s |
| 117 | pcf-5b4c75f57d-sl5rh 1/1 Running 0 3m23s |
| 118 | simapp-d8994999d-98k6v 1/1 Running 0 3m23s |
| 119 | smf-77c89ccc6d-4d8g2 1/1 Running 0 3m23s |
| 120 | udm-6dcdc457c6-gwmfk 1/1 Running 0 3m23s |
| 121 | udr-84678ff6dc-zkj52 1/1 Running 0 3m23s |
| 122 | upf-0 0/5 Pending 0 3m23s |
| 123 | webui-66b4df44b-9clwf 1/1 Running 0 3m23s |
| 124 | ajayonf@node:~$ |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 125 | |
| 126 | To uninstall: |
| 127 | |
| 128 | .. code-block:: |
| 129 | |
| 130 | helm -n sdcore-5g uninstall sdcore-5g |
| 131 | kubectl delete namespace sdcore-5g # also remove the sdcore-5g if needed |
| 132 | |
| 133 | |