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. |
Ajay Lotan Thakur | d057307 | 2022-05-04 19:16:52 -0700 | [diff] [blame] | 14 | SD-Core images are hosted on docker hub. |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 15 | |
| 16 | Hardware resource requirement |
| 17 | ----------------------------- |
| 18 | |
ajay | ce0380c | 2021-12-14 21:51:00 -0800 | [diff] [blame] | 19 | .. list-table:: CPU & Memory Requirements for 5G components |
| 20 | :widths: 5 5 5 |
| 21 | :header-rows: 1 |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 22 | |
ajay | ce0380c | 2021-12-14 21:51:00 -0800 | [diff] [blame] | 23 | * - SD-Core Component |
| 24 | - Required CPU |
| 25 | - Required Memory in Gi |
| 26 | * - AMF |
| 27 | - 2 CPU Cores |
| 28 | - 4Gi |
| 29 | * - SMF |
| 30 | - 2 CPU Cores |
| 31 | - 4Gi |
| 32 | * - NRF |
| 33 | - 2 CPU Cores |
| 34 | - 1Gi |
| 35 | * - NSSF |
| 36 | - 2 CPU Cores |
| 37 | - 1Gi |
| 38 | * - AUSF |
| 39 | - 1 CPU Cores |
| 40 | - 1Gi |
| 41 | * - PCF |
| 42 | - 1 CPU Cores |
| 43 | - 1Gi |
| 44 | * - UDR |
| 45 | - 2 CPU Cores |
| 46 | - 1Gi |
| 47 | * - UDM |
| 48 | - 2 CPU Cores |
| 49 | - 1Gi |
| 50 | * - Config5G(webconsole) |
| 51 | - 1 CPU Cores |
| 52 | - 1Gi |
| 53 | * - SimApp |
| 54 | - 1 CPU Cores |
| 55 | - 1Gi |
| 56 | * - MongoDB |
| 57 | - 2 CPU Cores |
| 58 | - 4Gi |
| 59 | |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 60 | |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 61 | Deployment Options |
| 62 | ------------------ |
| 63 | |
| 64 | Development Environments |
| 65 | """""""""""""""""""""""" |
| 66 | |
ajay | ce0380c | 2021-12-14 21:51:00 -0800 | [diff] [blame] | 67 | Please refer (see :ref:`aiab-guide`) to setup 5G development environment. |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 68 | |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 69 | Production Environments - 5G |
| 70 | """""""""""""""""""""""""""" |
| 71 | |
| 72 | To install SD-Core into your Kubernetes cluster, follow instructions |
| 73 | |
| 74 | Step1 - Clone SD-Core 5G Helm chart |
| 75 | ''''''''''''''''''''''''''''''''''' |
| 76 | .. code-block:: |
| 77 | |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 78 | git clone "https://gerrit.opencord.org/sdcore-helm-charts" |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 79 | cd sdcore-helm-charts/sdcore-helm-charts/ |
| 80 | helm dep update #Update Helm dependencies |
| 81 | |
| 82 | Step2 - Prepare your Helm value for 5G |
| 83 | '''''''''''''''''''''''''''''''''''''' |
| 84 | |
| 85 | You can modify existing values.yaml directly, but we recommend composing another value |
| 86 | file myvalues.yaml using values.yaml as an example. We are highlighting a few things we |
| 87 | need to modify here. More explanation of the supported Helm values can be found in the |
| 88 | Configuration section below. |
| 89 | |
| 90 | Step3 - Install 5G using SD-Core umbrella helm chart |
| 91 | '''''''''''''''''''''''''''''''''''''''''''''''''''' |
| 92 | |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 93 | 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] | 94 | |
| 95 | .. code-block:: |
| 96 | |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 97 | 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] | 98 | |
| 99 | To verify the installation: |
| 100 | |
| 101 | .. code-block:: |
| 102 | |
| 103 | helm -n sdcore-5g ls |
ajay | cbd1706 | 2022-03-06 11:12:58 -0800 | [diff] [blame] | 104 | ajayonf@node:~$ helm -n sdcore-5g ls |
| 105 | NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION |
| 106 | sdcore-5g sdcore-5g 1 2022-03-05 16:25:32.338495035 -0700 MST deployed sd-core-0.10.9 |
| 107 | ajayonf@node:~$ |
| 108 | |
| 109 | ajayonf@node:~$ kubectl get pods -n sdcore-5g |
| 110 | NAME READY STATUS RESTARTS AGE |
| 111 | amf-66bf99c879-5x4ms 1/1 Running 0 3m23s |
| 112 | ausf-65dc454b79-jp2cb 1/1 Running 0 3m23s |
| 113 | mongodb-6df94d8dd9-h8p4w 1/1 Running 0 3m23s |
| 114 | nrf-65bcfbb496-xvt6t 1/1 Running 0 3m23s |
| 115 | nssf-6f58859d67-552l2 1/1 Running 0 3m23s |
| 116 | pcf-5b4c75f57d-sl5rh 1/1 Running 0 3m23s |
| 117 | simapp-d8994999d-98k6v 1/1 Running 0 3m23s |
| 118 | smf-77c89ccc6d-4d8g2 1/1 Running 0 3m23s |
| 119 | udm-6dcdc457c6-gwmfk 1/1 Running 0 3m23s |
| 120 | udr-84678ff6dc-zkj52 1/1 Running 0 3m23s |
| 121 | upf-0 0/5 Pending 0 3m23s |
| 122 | webui-66b4df44b-9clwf 1/1 Running 0 3m23s |
| 123 | ajayonf@node:~$ |
ajay | d19711c | 2021-12-07 12:07:04 -0800 | [diff] [blame] | 124 | |
| 125 | To uninstall: |
| 126 | |
| 127 | .. code-block:: |
| 128 | |
| 129 | helm -n sdcore-5g uninstall sdcore-5g |
| 130 | kubectl delete namespace sdcore-5g # also remove the sdcore-5g if needed |
| 131 | |
| 132 | |