blob: 8e75bbfc617c7ec18ce172a842f76f68a5b73c11 [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.
Ajay Lotan Thakurd0573072022-05-04 19:16:52 -070014SD-Core images are hosted on docker hub.
ajayd19711c2021-12-07 12:07:04 -080015
16Hardware resource requirement
17-----------------------------
18
ajayce0380c2021-12-14 21:51:00 -080019.. list-table:: CPU & Memory Requirements for 5G components
20 :widths: 5 5 5
21 :header-rows: 1
ajayd19711c2021-12-07 12:07:04 -080022
ajayce0380c2021-12-14 21:51:00 -080023 * - 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
ajayd19711c2021-12-07 12:07:04 -080060
ajayd19711c2021-12-07 12:07:04 -080061Deployment Options
62------------------
63
64Development Environments
65""""""""""""""""""""""""
66
ajayce0380c2021-12-14 21:51:00 -080067Please refer (see :ref:`aiab-guide`) to setup 5G development environment.
ajayd19711c2021-12-07 12:07:04 -080068
ajayd19711c2021-12-07 12:07:04 -080069Production Environments - 5G
70""""""""""""""""""""""""""""
71
72To install SD-Core into your Kubernetes cluster, follow instructions
73
74Step1 - Clone SD-Core 5G Helm chart
75'''''''''''''''''''''''''''''''''''
76.. code-block::
77
ajaycbd17062022-03-06 11:12:58 -080078 git clone "https://gerrit.opencord.org/sdcore-helm-charts"
ajayd19711c2021-12-07 12:07:04 -080079 cd sdcore-helm-charts/sdcore-helm-charts/
80 helm dep update #Update Helm dependencies
81
82Step2 - Prepare your Helm value for 5G
83''''''''''''''''''''''''''''''''''''''
84
85You can modify existing values.yaml directly, but we recommend composing another value
86file myvalues.yaml using values.yaml as an example. We are highlighting a few things we
87need to modify here. More explanation of the supported Helm values can be found in the
88Configuration section below.
89
90Step3 - Install 5G using SD-Core umbrella helm chart
91''''''''''''''''''''''''''''''''''''''''''''''''''''
92
ajaycbd17062022-03-06 11:12:58 -080093The 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 -080094
95.. code-block::
96
ajaycbd17062022-03-06 11:12:58 -080097 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 -080098
99To verify the installation:
100
101.. code-block::
102
103 helm -n sdcore-5g ls
ajaycbd17062022-03-06 11:12:58 -0800104 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:~$
ajayd19711c2021-12-07 12:07:04 -0800124
125To 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