Skip to content

Commit 55569f1

Browse files
authored
Updating webui deployment of free5gc control plane (#108)
1 parent 3f0e26c commit 55569f1

File tree

3 files changed

+58
-36
lines changed

3 files changed

+58
-36
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The releases of Nephio to date focus on:
126126
the Cluster API. At this time only KIND cluster creation is supported.
127127
- Orchestration/automation of 5G core network functions deployment and
128128
management. This release focuses on network functions from
129-
[free5gc](https://free5gc.org/).
129+
[free5gc](https://free5gc.org/) and [OAI](https://openairinterface.org/).
130130

131131
While the releases to date use Cluster API, KIND, free5gc and OAI for demonstration
132132
purposes, the exact same principles and even code can be used for managing other

content/en/docs/guides/user-guides/exercise-1-free5gc.md

Lines changed: 57 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ catalog-distros-sandbox git Package false True https://github
7979
catalog-infra-capi git Package false True https://github.com/nephio-project/catalog.git
8080
catalog-nephio-core git Package false True https://github.com/nephio-project/catalog.git
8181
catalog-nephio-optional git Package false True https://github.com/nephio-project/catalog.git
82-
catalog-workloads-free5gc git Package false True https://github.com/Nordix/catalog.git
82+
catalog-workloads-free5gc git Package false True https://github.com/nephio-project/catalog.git
8383
catalog-workloads-oai-ran git Package false True https://github.com/nephio-project/catalog.git
8484
catalog-workloads-tools git Package false True https://github.com/nephio-project/catalog.git
8585
mgmt git Package true True http://172.18.0.200:3000/nephio/mgmt.git
@@ -105,21 +105,22 @@ kpt alpha rpkg get --name nephio-workload-cluster
105105
```console
106106
NAME PACKAGE WORKSPACENAME REVISION LATEST LIFECYCLE REPOSITORY
107107
catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f nephio-workload-cluster main main false Published catalog-infra-capi
108+
catalog-infra-capi-b0ae9512aab3de73bbae623a3b554ade57e15596 nephio-workload-cluster v2.0.0 v2.0.0 true Published catalog-infra-capi
108109
```
109110
</details>
110111

111112
Then, use the NAME from that in the `clone` operation, and the resulting PackageRevision name to perform the `propose`
112113
and `approve` operations:
113114

114115
```bash
115-
kpt alpha rpkg clone -n default catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f --repository mgmt regional
116+
kpt alpha rpkg clone -n default catalog-infra-capi-b0ae9512aab3de73bbae623a3b554ade57e15596 --repository mgmt regional
116117
```
117118

118119
<details>
119120
<summary>The output is similar to:</summary>
120121

121122
```console
122-
catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f created
123+
mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868 created
123124
```
124125
</details>
125126

@@ -130,7 +131,7 @@ and the `set-labels` function to do this.
130131
To pull the package to a local directory, use the `rpkg pull` command:
131132

132133
```bash
133-
kpt alpha rpkg pull -n default catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f regional
134+
kpt alpha rpkg pull -n default mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868 regional
134135
```
135136

136137
The package is now in the `regional` directory. So you can execute the `set-labels` function against the package
@@ -145,9 +146,9 @@ kpt fn eval --image gcr.io/kpt-fn/set-labels:v0.2.0 regional -- "nephio.org/site
145146

146147
```console
147148
[RUNNING] "gcr.io/kpt-fn/set-labels:v0.2.0"
148-
[PASS] "gcr.io/kpt-fn/set-labels:v0.2.0" in 3.7s
149+
[PASS] "gcr.io/kpt-fn/set-labels:v0.2.0" in 2.6s
149150
Results:
150-
[info]: set 18 labels in total
151+
[info]: set 22 labels in total
151152
```
152153
</details>
153154

@@ -159,7 +160,7 @@ In any case, you now can push the package with the labels applied back to the
159160
repository:
160161

161162
```bash
162-
kpt alpha rpkg push -n default catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f regional
163+
kpt alpha rpkg push -n default mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868 regional
163164
```
164165

165166
<details>
@@ -174,26 +175,26 @@ kpt alpha rpkg push -n default catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6
174175
Finally, you propose and approve the package.
175176

176177
```bash
177-
kpt alpha rpkg propose -n default catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f
178+
kpt alpha rpkg propose -n default mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868
178179
```
179180

180181
<details>
181182
<summary>The output is similar to:</summary>
182183

183184
```console
184-
catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f proposed
185+
mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868 proposed
185186
```
186187
</details>
187188

188189
```bash
189-
kpt alpha rpkg approve -n default catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f
190+
kpt alpha rpkg approve -n default mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868
190191
```
191192

192193
<details>
193194
<summary>The output is similar to:</summary>
194195

195196
```console
196-
catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f approved
197+
mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868 approved
197198
```
198199
</details>
199200

@@ -262,8 +263,8 @@ kubectl get machinesets
262263
<summary>The output is similar to:</summary>
263264

264265
```console
265-
NAME CLUSTER REPLICAS READY AVAILABLE AGE VERSION
266-
regional-md-0-lvmvm-8msw6 regional 1 1 1 143m v1.26.3
266+
NAME CLUSTER REPLICAS READY AVAILABLE AGE VERSION
267+
regional-md-0-m6cr5-wtzlx regional 1 1 1 5m36s v1.26.3
267268
```
268269
</details>
269270

@@ -272,7 +273,7 @@ regional-md-0-lvmvm-8msw6 regional 1 1 1 143m v1.
272273
Next, you can deploy two Edge clusters by applying the PackageVariantSet that can be found in the `tests` directory:
273274

274275
```bash
275-
kubectl apply -f test-infra/e2e/tests/002-edge-clusters.yaml
276+
kubectl apply -f test-infra/e2e/tests/free5gc/002-edge-clusters.yaml
276277
```
277278

278279
<details>
@@ -370,15 +371,6 @@ worker nodes.
370371
./test-infra/e2e/provision/hacks/vlan-interfaces.sh
371372
```
372373

373-
<details>
374-
<summary>The output is similar to:</summary>
375-
376-
```console
377-
378-
```
379-
</details>
380-
381-
382374
Finally, you want to configure the resource backend to be aware of these clusters. The resource backend is an IP address
383375
and VLAN index management system. It is included for demonstration purposes to show how Nephio package specialization
384376
can interact with external systems to fully configure packages. But it needs to be configured to match our topology.
@@ -792,7 +784,7 @@ Step 4.
792784
Once the subscriber is registered, you can deploy UERANSIM:
793785

794786
```bash
795-
kubectl apply -f test-infra/e2e/tests/007-edge01-ueransim.yaml
787+
kubectl apply -f test-infra/e2e/tests/free5gc/007-edge01-ueransim.yaml
796788
```
797789

798790
You can check to see if the simulated UE is up and running by checking the UERANSIM deployment. First, you can use the
@@ -801,7 +793,7 @@ UERANSIM pods.
801793

802794
```bash
803795
get_capi_kubeconfig edge01
804-
kubectl --kubeconfig edge01-kubeconfig -n ueransim get po
796+
kubectl --kubeconfig edge01-kubeconfig -n ueransim get pod
805797
```
806798

807799
<details>
@@ -861,7 +853,7 @@ kubectl get packagevariant edge-free5gc-upf-edge01-free5gc-upf -o jsonpath='{.st
861853
<summary>The output is similar to:</summary>
862854

863855
```console
864-
edge01-e827e1b4d5ea1d76d1514de20d1ee27bf884c72e
856+
edge01-6b26ca0f4fdf83212a73faff159bd013b41207ee
865857
```
866858
</details>
867859

@@ -871,7 +863,7 @@ This way you retrieve the downstream target name of the package. You can also re
871863
Next create a new package revision from the existing UPF package.
872864

873865
```bash
874-
kpt alpha rpkg copy -n default edge01-e827e1b4d5ea1d76d1514de20d1ee27bf884c72e --workspace upf-scale-package
866+
kpt alpha rpkg copy -n default edge01-6b26ca0f4fdf83212a73faff159bd013b41207ee --workspace upf-scale-package
875867
```
876868
<details>
877869
<summary>The output is similar to:</summary>
@@ -928,6 +920,10 @@ kpt fn eval --image gcr.io/kpt-fn/search-replace:v0.2.0 /tmp/upf-scale-package -
928920
[PASS] "gcr.io/kpt-fn/search-replace:v0.2.0" in 6.3s
929921
Results:
930922
[info] spec.maxUplinkThroughput: Mutated field value to "10"
923+
[RUNNING] "gcr.io/kpt-fn/search-replace:v0.2.0"
924+
[PASS] "gcr.io/kpt-fn/search-replace:v0.2.0" in 400ms
925+
Results:
926+
[info] spec.maxDownlinkThroughput: Mutated field value to "10"
931927
```
932928
</details>
933929

@@ -941,13 +937,15 @@ kpt pkg diff /tmp/upf-scale-package | grep linkThroughput
941937
<summary>The output is similar to:</summary>
942938

943939
```console
944-
From https://github.com/nephio-project/free5gc-packages
945-
* tag pkg-example-upf-bp/v3 -> FETCH_HEAD
946-
Adding package "pkg-example-upf-bp".
947-
< maxUplinkThroughput: 10G
940+
From https://github.com/nephio-project/catalog
941+
* tag workloads/free5gc/pkg-example-upf-bp/v2.0.0 -> FETCH_HEAD
942+
Adding package "workloads/free5gc/pkg-example-upf-bp".
943+
< maxUplinkThroughput: 10
948944
< maxDownlinkThroughput: 10
949945
> maxUplinkThroughput: 5G
950946
> maxDownlinkThroughput: 5G
947+
< maxDownlinkThroughput: 5G
948+
< maxUplinkThroughput: 5G
951949
```
952950
</details>
953951

@@ -963,24 +961,48 @@ kpt alpha rpkg approve -n default edge01-40c616e5d87053350473d3ffa1387a9a534f8f4
963961
<summary>The output is similar to:</summary>
964962

965963
```console
964+
[RUNNING] "gcr.io/kpt-fn/apply-replacements:v0.1.1"
965+
[PASS] "gcr.io/kpt-fn/apply-replacements:v0.1.1"
966+
[RUNNING] "gcr.io/kpt-fn/apply-replacements:v0.1.1"
967+
[PASS] "gcr.io/kpt-fn/apply-replacements:v0.1.1"
968+
[RUNNING] "gcr.io/kpt-fn/set-namespace:v0.4.1"
969+
[PASS] "gcr.io/kpt-fn/set-namespace:v0.4.1"
970+
Results:
971+
[info]: all namespaces are already "free5gc-upf". no value changed
972+
[RUNNING] "docker.io/nephio/nfdeploy-fn:v2.0.0"
973+
[PASS] "docker.io/nephio/nfdeploy-fn:v2.0.0"
974+
[RUNNING] "docker.io/nephio/interface-fn:v2.0.0"
975+
[PASS] "docker.io/nephio/interface-fn:v2.0.0"
976+
[RUNNING] "docker.io/nephio/dnn-fn:v2.0.0"
977+
[PASS] "docker.io/nephio/dnn-fn:v2.0.0"
978+
[RUNNING] "docker.io/nephio/nad-fn:v2.0.0"
979+
[PASS] "docker.io/nephio/nad-fn:v2.0.0"
980+
[RUNNING] "docker.io/nephio/dnn-fn:v2.0.0"
981+
[PASS] "docker.io/nephio/dnn-fn:v2.0.0"
982+
[RUNNING] "docker.io/nephio/interface-fn:v2.0.0"
983+
[PASS] "docker.io/nephio/interface-fn:v2.0.0"
984+
[RUNNING] "docker.io/nephio/nfdeploy-fn:v2.0.0"
985+
[PASS] "docker.io/nephio/nfdeploy-fn:v2.0.0
966986
edge01-40c616e5d87053350473d3ffa1387a9a534f8f42 proposed
967987
edge01-40c616e5d87053350473d3ffa1387a9a534f8f42 approved
968988
```
969989
</details>
970990

971991
You can check the current lifecycle stage of a package using the `kpt alpha rpkg get` command.
972992
```bash
973-
kpt alpha rpkg get
993+
kpt alpha rpkg get | grep free5gc-upf
974994
```
975995

976996
<details>
977997
<summary>The output is similar to:</summary>
978998

979999
```console
9801000
NAME PACKAGE WORKSPACENAME REVISION LATEST LIFECYCLE REPOSITORY
981-
edge01-e72d245b864db0fd234d9b4ead2f96edcf6bb3e4 free5gc-operator packagevariant-1 main false Published edge01
982-
edge01-7c9bf9f43768ecd2b45a8be84698763cdd2593b6 free5gc-operator packagevariant-1 v1 true Published edge01
983-
edge01-40c616e5d87053350473d3ffa1387a9a534f8f42 free5gc-upf upf-scale-package v2 true Published edge01
1001+
edge01-5e5621cee05df46c3e9ad6dd50ab485f4ebeeffd free5gc-upf upf-scale-package main false Published edge01
1002+
edge01-6b26ca0f4fdf83212a73faff159bd013b41207ee free5gc-upf packagevariant-1 v1 false Published edge01
1003+
edge01-40c616e5d87053350473d3ffa1387a9a534f8f42 free5gc-upf upf-scale-package v2 true Published edge01
1004+
edge02-b5d2931f75d20d95e7d3d9b1fb10bcfa9156b9ba free5gc-upf packagevariant-1 main false Published edge02
1005+
edge02-be05d7134eca3e02fecd63c4e4031f728d5f0e84 free5gc-upf packagevariant-1 v1 true Published edge02
9841006
```
9851007
</details>
9861008

9.35 KB
Loading

0 commit comments

Comments
 (0)