Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Pre requisite |
---|
|
# kubectl get pods -n ricplt # There should be ~16 pods running in the ricplt namespace. |
Step 1: Obtaining the Deployment Scripts and ChartsOnboard |
---|
NOTE: cd to your directory where installation will be, i.e. /home/user Run ... $ sudo -i $ git clone http://gerrit.o-ran-sc.org/r/it/dep $ cd dep |
Step 2: Generation of cloud-init Script Deploy xApp |
---|
Run ...
# The outputted script is will be used for preparing K8 cluster for RIC to deploy to file is "k8s-1node-cloud-init-k_1_16-h_2_12-d_cur.sh" |
Step 3: Update Version Combination SMO part |
---|
|
Step 4: Installation of Kubernetes, Helm, Docker, etc. |
Run ... $ ./k8s-1node-cloud-init-k_1_16-h_2_12-d_cur.sh NOTE: Be patient as this takes some time to complete. Upon completion of this script, the VM will be rebooted. You will then need to login once again. $ sudo -i $ kubectl get pods --all-namespaces # There should be 9 pods running in kube-system namespace. |
Populate the Database with test RAN data |
$ git clone http://gerrit.o-ran-sc.org/r/ric-app/ts $ cd ts/test/populatedb $ ls $ ./populate_db.sh |
Step 4: Create a Policy Type |
---|
155 cd ~/demo/ 158 POLICY_TYPE_ID="20008" 159 curl -v -X PUT "http://$(hostname):32080/a1mediator/a1-p/policytypes/${POLICY_TYPE_ID}" -H "accept: application/json" -H "Content-Type: application/json" -d @./ts-policy-type-${POLICY_TYPE_ID}.json # list policy types |
Step 5: List Policy Types | |
---|---|
Run ... $ curl -X GET --header "Content-Type: application/json" --header "accept: application/json" | |
Step 5: Deploy RIC using Recipe | |
Run ... $ cd /home/user/dep/bin | |
Step 6: Onboarding an xAPP | |
http://$(hostname):32080/ | onboarda1mediator/a1-p/policytypes |
Step 6: Create a Policy Instance |
---|
Run... $ POLICY_ID="tsapolicy145" $ curl -X PUT --header "api/v1/onboard/download" --header 'Content-Type: application/json' " --data -binary "@./onboard.hw.url" $ curl --location --request GET " "{\"threshold\" : 5}" http://$(hostname):32080 /onboard/api/v1/charts"/a1mediator/a1-p/policytypes/${POLICY_TYPE_ID}/policies/${POLICY_ID} |
|
---|
|
Helpful Hints |
---|
Kubectl commads: kubectl get pods -n nampespace - gets a list of Pods running kubectl get logs -n namespace name_of_running_pod |
Complete these tasks to get started
Recent space activity
Recently Updated | ||||||||
---|---|---|---|---|---|---|---|---|
|
Space contributors
Contributors | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|