blob: 5ffe8b3c6505e989dffac7c38e8a43ac24818c28 [file] [log] [blame]
ajayd19711c2021-12-07 12:07:04 -08001..
2 SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
3 SPDX-License-Identifier: Apache-2.0
4
ajay07514982021-12-07 22:24:32 -08005.. _deployment_5G_guide:
ajayd19711c2021-12-07 12:07:04 -08006
ajay07514982021-12-07 22:24:32 -080075G Deployment Guide
8===================
ajayd19711c2021-12-07 12:07:04 -08009
10Deployment Overview
11-------------------
12SD-Core is released with Helm chart and container images.
13We recommend using **Kubernetes** and **Helm** to deploy SD-Core.
14SD-Core images are hosted on an ONF member-only Docker registry.
15You need to obtain access token and supply that as part of the Helm value.
16
17Hardware resource requirement
18-----------------------------
19
ajayce0380c2021-12-14 21:51:00 -080020.. list-table:: CPU & Memory Requirements for 5G components
21 :widths: 5 5 5
22 :header-rows: 1
ajayd19711c2021-12-07 12:07:04 -080023
ajayce0380c2021-12-14 21:51:00 -080024 * - 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
ajayd19711c2021-12-07 12:07:04 -080061
ajayd19711c2021-12-07 12:07:04 -080062Deployment Options
63------------------
64
65Development Environments
66""""""""""""""""""""""""
67
ajayce0380c2021-12-14 21:51:00 -080068Please refer (see :ref:`aiab-guide`) to setup 5G development environment.
ajayd19711c2021-12-07 12:07:04 -080069
ajayd19711c2021-12-07 12:07:04 -080070Production Environments - 5G
71""""""""""""""""""""""""""""
72
73To install SD-Core into your Kubernetes cluster, follow instructions
74
75Step1 - Clone SD-Core 5G Helm chart
76'''''''''''''''''''''''''''''''''''
77.. code-block::
78
ajaycbd17062022-03-06 11:12:58 -080079 git clone "https://gerrit.opencord.org/sdcore-helm-charts"
ajayd19711c2021-12-07 12:07:04 -080080 cd sdcore-helm-charts/sdcore-helm-charts/
81 helm dep update #Update Helm dependencies
82
83Step2 - Prepare your Helm value for 5G
84''''''''''''''''''''''''''''''''''''''
85
86You can modify existing values.yaml directly, but we recommend composing another value
87file myvalues.yaml using values.yaml as an example. We are highlighting a few things we
88need to modify here. More explanation of the supported Helm values can be found in the
89Configuration section below.
90
91Step3 - Install 5G using SD-Core umbrella helm chart
92''''''''''''''''''''''''''''''''''''''''''''''''''''
93
ajaycbd17062022-03-06 11:12:58 -080094The following command will deploy the SD-Core helm chart with release name sdcore-5g in the sdcore-5g namespace.
ajayd19711c2021-12-07 12:07:04 -080095
96.. code-block::
97
ajaycbd17062022-03-06 11:12:58 -080098 helm install -n sdcore-5g --create-namespace -f myvalues.yaml sdcore-5g ~/cord/sdcore-helm-charts/sdcore-helm-charts
ajayd19711c2021-12-07 12:07:04 -080099
100To verify the installation:
101
102.. code-block::
103
104 helm -n sdcore-5g ls
ajaycbd17062022-03-06 11:12:58 -0800105 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:~$
ajayd19711c2021-12-07 12:07:04 -0800125
126To 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