blob: 30537d6232efc512714144f445dc32dce91fb2fb [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
ajay07514982021-12-07 22:24:32 -080020SD-Core 5G has following K8s pods
ajayd19711c2021-12-07 12:07:04 -080021
ajay07514982021-12-07 22:24:32 -080022 - AMF: 2 CPU Cores, 4Gi RAM
23 - SMF: 2 CPU Cores, 4Gi RAM
24 - NRF: 2 CPU Cores, 1Gi RAM
25 - NSSF : 2 CPU Cores, 1Gi RAM
26 - AUSF: 1 CPU Core, 1Gi RAM
27 - PCF: 1 CPU Core, 1Gi RAM
28 - UDR
29 - UDM
30 - MongoDB: 2 CPU Core, 4Gi RAM
ajayd19711c2021-12-07 12:07:04 -080031
32Prepare access credential for SD-Core images
33--------------------------------------------
34
35Container images can be download from ONF self-hosted container registry but you have to gain the access token first.
36
371. Login to `Aether Harbor Registry <https://registry.aetherproject.org/harbor/sign-in?redirect_url=%2Fharbor%2Fprojects>`_ using your ONF Crowd credential,
382. Select ``User Profile`` drop-down menu in the upper-right corner
393. Generate the CLI secret and it's the secret token you have to access the container registry via CLI tool.
404. Login to the container registry with your username and access token
41 by ``docker login command`` to ensure you can access it.
42
43.. code-block::
44
45 ╰─$ docker login registry.aetherproject.org --username hwchiu
46 Password:
47 Login Succeeded
48
49Deployment Options
50------------------
51
52Development Environments
53""""""""""""""""""""""""
54
55TODO - AIAB document link
56
ajayd19711c2021-12-07 12:07:04 -080057Production Environments - 5G
58""""""""""""""""""""""""""""
59
60To install SD-Core into your Kubernetes cluster, follow instructions
61
62Step1 - Clone SD-Core 5G Helm chart
63'''''''''''''''''''''''''''''''''''
64.. code-block::
65
66 git clone ssh://gerrit.opencord.org:29418/sdcore-helm-charts
67 cd sdcore-helm-charts/sdcore-helm-charts/
68 helm dep update #Update Helm dependencies
69
70Step2 - Prepare your Helm value for 5G
71''''''''''''''''''''''''''''''''''''''
72
73You can modify existing values.yaml directly, but we recommend composing another value
74file myvalues.yaml using values.yaml as an example. We are highlighting a few things we
75need to modify here. More explanation of the supported Helm values can be found in the
76Configuration section below.
77
78Step3 - Install 5G using SD-Core umbrella helm chart
79''''''''''''''''''''''''''''''''''''''''''''''''''''
80
81The following command will deploy the SD-Core helm chart with release name sdcore-4g in the sdcore-4g namespace.
82
83.. code-block::
84
85 helm install -n sdcore-5g --create-namespace -f myvaules.yaml sdcore-5g .
86
87To verify the installation:
88
89.. code-block::
90
91 helm -n sdcore-5g ls
92
93To uninstall:
94
95.. code-block::
96
97 helm -n sdcore-5g uninstall sdcore-5g
98 kubectl delete namespace sdcore-5g # also remove the sdcore-5g if needed
99
100