blob: 6b0f2f3b572e13e946d1881048433674b3088abf [file] [log] [blame]
Scott Bakerfab7c9e2021-07-29 17:12:16 -07001.. vim: syntax=rst
2
3Aether SD-Core Developer Guide
4==============================
5
6Clone Repositories
7------------------
8
9Clone the following repositories, using your gerrit ids as necessary::
10
11 mkdir -p ~/cord #need to clone below 2 repos in this directory
12 git clone "ssh://<username>@gerrit.opencord.org:29418/helm-charts"
13 git clone "ssh://<username>@gerrit.opencord.org:29418/aether-helm-charts"
14
15 cd ~ #go back to home directory
16 git clone "ssh://<username>@gerrit.opencord.org:29418/aether-in-a-box"
17
18Start the 4G Core
19-----------------
20
21Deploy Aether-in-a-Box and start the 4G core::
22
23 cd aether-in-a-box
24
25 #create K8s cluster for you and also start 4G network functions and carry out 1 ping test
26 make test
27
Andy Bavier90f20892021-08-23 17:18:01 -070028Create the pull secret
29----------------------
Scott Bakerfab7c9e2021-07-29 17:12:16 -070030
31The deployment may fail and leave pods in ImagePullBackoff status if the
Andy Bavier90f20892021-08-23 17:18:01 -070032necessary secret is not present. To create the pull secret, follow these
33steps:
Scott Bakerfab7c9e2021-07-29 17:12:16 -070034
Andy Bavier90f20892021-08-23 17:18:01 -070035* Log into the `Aether Harbor Registry <https://registry.aetherproject.org>`_ using your Crowd credentials
36* Select *User Profile* from the drop-down menu in the upper right corner
37* Copy the *CLI secret* to the clipboard
38
39Then run the following command, replacing the bracketed fields with the information
40from your User Profile::
41
42 kubectl -n omec create secret docker-registry aether.registry \
43 --docker-server=https://registry.aetherproject.org \
44 --docker-username=<your-username> \
45 --docker-password=<pasted-cli-secret> \
46 --docker-email=<your-email>
Scott Bakerfab7c9e2021-07-29 17:12:16 -070047
48
49
50Transition from 4G Core to 5G Core
51----------------------------------
52
53Before starting the 5G core, the 4G Core must be stopped::
54
55 make reset-test #this does not destroy K8s cluster.
56
57Now, start the 5G Core::
58
59 make 5gc #this will start all 5G network functions with default images.
60
61 kubectl get pods -n omec #verify that all 5g pods are started.
62
63Sample output::
64
65 NAME READY STATUS RESTARTS AGE
66 amf-7d6f649b4f-jzd9r 1/1 Running 0 41s
67 ausf-8dd5d7465-xrjdl 1/1 Running 0 41s
68 gnbsim-0 1/1 Running 0 25s
69 mongodb-55555bc884-wqcrh 1/1 Running 0 41s
70 nrf-ddd7d8d5b-vjv84 1/1 Running 0 41s
71 nssf-7978bb74cc-zct9v 1/1 Running 0 41s
72 pcf-5bbbff96d6-l54f6 1/1 Running 0 41s
73 smf-86b6fd5674-tq8h9 1/1 Running 0 41s
74 udm-5fdf9cf56d-76hlt 1/1 Running 0 41s
75 udr-d8f855c6b-jj8lw 1/1 Running 0 41s
76 ue-setup-if-mftrm 0/1 Completed 0 23d
77 ue-teardown-if-whbvm 0/1 Completed 0 23d
78 upf-0 4/4 Running 0 55s
79 webui-79c8b7dfc7-wn6st 1/1 Running 0 41s
80
81Developer Loop
82--------------
83
84Deploy custom images by editing `~/aether-in-a-box/aether-in-a-box-values.yaml`::
85
86 images:
87 tags:
88 webui: registry.aetherproject.org/omecproject/5gc-webui:onf-release3.0.5-roc-935305f
89 pullPolicy: IfNotPresent
90 pullSecrets:
91 - name: "aether.registry"
92
93Stop the 5G Core and start it again::
94
95 make reset-5g-test
96 make 5gc