...
The installation script is basically the same as the steps described on this page: Deploy NONRTRIC in Minikube but with a few additions.
Prerequisite
Virtualbox. (Can be downloaded from this page Download Virtualbox)
...
Put the following Vagrantfile in that directory.
Vagrantfile |
---|
Vagrant.configure("2") do |config| |
This file will create an Ubuntu VM, copy the install script to the VM and setup port forwarding to the kubernetes proxy in the VM.
To be able to run the R-App manager Mock outside the cluster, you need to mount the target directory so that the
helm command can see it like the R-App manager sees it.
Example, replace the first argument with your actual path.
config.vm.synced_folder "/home/qpatbuh/src/nonrtric-prototyping/rapp-manager/target", "/home/vagrant/target"
Put the following file in the same directory as the Vagrantfile. Make sure that indentation is preserved during copy.
install.sh |
---|
#!/bin/bash |
#git clone "https://gerrit.o-ran-sc.org/r/it/dep" |
|
#Create serviceaccount and clusterrolebinding and patch the tiller-deployment to user service account. kubectl create serviceaccount --namespace kube-system tiller kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
|
Set execution mode on the file.
...