@@ -79,7 +79,7 @@ catalog-distros-sandbox git Package false True https://github
79
79
catalog-infra-capi git Package false True https://github.com/nephio-project/catalog.git
80
80
catalog-nephio-core git Package false True https://github.com/nephio-project/catalog.git
81
81
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
83
83
catalog-workloads-oai-ran git Package false True https://github.com/nephio-project/catalog.git
84
84
catalog-workloads-tools git Package false True https://github.com/nephio-project/catalog.git
85
85
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
105
105
``` console
106
106
NAME PACKAGE WORKSPACENAME REVISION LATEST LIFECYCLE REPOSITORY
107
107
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
108
109
```
109
110
</details >
110
111
111
112
Then, use the NAME from that in the ` clone ` operation, and the resulting PackageRevision name to perform the ` propose `
112
113
and ` approve ` operations:
113
114
114
115
``` 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
116
117
```
117
118
118
119
<details >
119
120
<summary >The output is similar to:</summary >
120
121
121
122
``` console
122
- catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f created
123
+ mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868 created
123
124
```
124
125
</details >
125
126
@@ -130,7 +131,7 @@ and the `set-labels` function to do this.
130
131
To pull the package to a local directory, use the ` rpkg pull ` command:
131
132
132
133
``` bash
133
- kpt alpha rpkg pull -n default catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f regional
134
+ kpt alpha rpkg pull -n default mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868 regional
134
135
```
135
136
136
137
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
145
146
146
147
``` console
147
148
[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
149
150
Results:
150
- [info]: set 18 labels in total
151
+ [info]: set 22 labels in total
151
152
```
152
153
</details >
153
154
@@ -159,7 +160,7 @@ In any case, you now can push the package with the labels applied back to the
159
160
repository:
160
161
161
162
``` bash
162
- kpt alpha rpkg push -n default catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f regional
163
+ kpt alpha rpkg push -n default mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868 regional
163
164
```
164
165
165
166
<details >
@@ -174,26 +175,26 @@ kpt alpha rpkg push -n default catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6
174
175
Finally, you propose and approve the package.
175
176
176
177
``` bash
177
- kpt alpha rpkg propose -n default catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f
178
+ kpt alpha rpkg propose -n default mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868
178
179
```
179
180
180
181
<details >
181
182
<summary >The output is similar to:</summary >
182
183
183
184
``` console
184
- catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f proposed
185
+ mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868 proposed
185
186
```
186
187
</details >
187
188
188
189
``` bash
189
- kpt alpha rpkg approve -n default catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f
190
+ kpt alpha rpkg approve -n default mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868
190
191
```
191
192
192
193
<details >
193
194
<summary >The output is similar to:</summary >
194
195
195
196
``` console
196
- catalog-infra-capi-d4d7d55835a5578f5c43fc8244deb6a091a8643f approved
197
+ mgmt-08c26219f9879acdefed3469f8c3cf89d5db3868 approved
197
198
```
198
199
</details >
199
200
@@ -262,8 +263,8 @@ kubectl get machinesets
262
263
<summary >The output is similar to:</summary >
263
264
264
265
``` 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
267
268
```
268
269
</details >
269
270
@@ -272,7 +273,7 @@ regional-md-0-lvmvm-8msw6 regional 1 1 1 143m v1.
272
273
Next, you can deploy two Edge clusters by applying the PackageVariantSet that can be found in the ` tests ` directory:
273
274
274
275
``` 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
276
277
```
277
278
278
279
<details >
@@ -370,15 +371,6 @@ worker nodes.
370
371
./test-infra/e2e/provision/hacks/vlan-interfaces.sh
371
372
```
372
373
373
- <details >
374
- <summary >The output is similar to:</summary >
375
-
376
- ``` console
377
-
378
- ```
379
- </details >
380
-
381
-
382
374
Finally, you want to configure the resource backend to be aware of these clusters. The resource backend is an IP address
383
375
and VLAN index management system. It is included for demonstration purposes to show how Nephio package specialization
384
376
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.
792
784
Once the subscriber is registered, you can deploy UERANSIM:
793
785
794
786
``` 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
796
788
```
797
789
798
790
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.
801
793
802
794
``` bash
803
795
get_capi_kubeconfig edge01
804
- kubectl --kubeconfig edge01-kubeconfig -n ueransim get po
796
+ kubectl --kubeconfig edge01-kubeconfig -n ueransim get pod
805
797
```
806
798
807
799
<details >
@@ -861,7 +853,7 @@ kubectl get packagevariant edge-free5gc-upf-edge01-free5gc-upf -o jsonpath='{.st
861
853
<summary >The output is similar to:</summary >
862
854
863
855
``` console
864
- edge01-e827e1b4d5ea1d76d1514de20d1ee27bf884c72e
856
+ edge01-6b26ca0f4fdf83212a73faff159bd013b41207ee
865
857
```
866
858
</details >
867
859
@@ -871,7 +863,7 @@ This way you retrieve the downstream target name of the package. You can also re
871
863
Next create a new package revision from the existing UPF package.
872
864
873
865
``` 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
875
867
```
876
868
<details >
877
869
<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 -
928
920
[PASS] "gcr.io/kpt-fn/search-replace:v0.2.0" in 6.3s
929
921
Results:
930
922
[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"
931
927
```
932
928
</details >
933
929
@@ -941,13 +937,15 @@ kpt pkg diff /tmp/upf-scale-package | grep linkThroughput
941
937
<summary >The output is similar to:</summary >
942
938
943
939
``` 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
948
944
< maxDownlinkThroughput: 10
949
945
> maxUplinkThroughput: 5G
950
946
> maxDownlinkThroughput: 5G
947
+ < maxDownlinkThroughput: 5G
948
+ < maxUplinkThroughput: 5G
951
949
```
952
950
</details >
953
951
@@ -963,24 +961,48 @@ kpt alpha rpkg approve -n default edge01-40c616e5d87053350473d3ffa1387a9a534f8f4
963
961
<summary >The output is similar to:</summary >
964
962
965
963
``` 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
966
986
edge01-40c616e5d87053350473d3ffa1387a9a534f8f42 proposed
967
987
edge01-40c616e5d87053350473d3ffa1387a9a534f8f42 approved
968
988
```
969
989
</details >
970
990
971
991
You can check the current lifecycle stage of a package using the ` kpt alpha rpkg get ` command.
972
992
``` bash
973
- kpt alpha rpkg get
993
+ kpt alpha rpkg get | grep free5gc-upf
974
994
```
975
995
976
996
<details >
977
997
<summary >The output is similar to:</summary >
978
998
979
999
``` console
980
1000
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
984
1006
```
985
1007
</details >
986
1008
0 commit comments