This script automates the setup, installation, and deployment of a Kubernetes-based environment to run the RIC platform and deploy xApps. It includes steps to configure dependencies, build software components, and deploy an SS-xApp for cellular networks.
- Operating System: Ubuntu (or similar Linux distribution)
- Access: Root/sudo privileges
- Software Dependencies: Docker, Kubernetes, and other utilities installed via the script.
- Container Management:
- Stops and removes any existing Docker container named
ric.
- Stops and removes any existing Docker container named
- System Setup:
- Disables swap for Kubernetes compatibility.
- Installs essential tools and dependencies such as
git,vim,tmux, anddocker.io.
- OAIC Cloning:
- Clones the OpenAirInterface Cellular (OAIC) repository and submodules.
- Kubernetes Setup:
- Installs and configures Kubernetes with a single-node setup.
- Verifies pod deployments.
- InfluxDB Setup:
- Installs and configures an NFS server and storage class.
- RIC Platform Deployment:
- Pulls and deploys the E2 RIC platform.
- ASN1C Compiler:
- Builds and installs the ASN1C compiler for specific use cases.
- SS-xApp Deployment:
- Builds and deploys the SS-xApp with a preconfigured database.
- Nginx Configuration:
- Configures Nginx to serve xApp configuration files.
- Logging:
- Includes commands to monitor SS-xApp logs.
Execute the script with root privileges:
sudo bash installation_script.sh- Check Kubernetes Pods:
sudo kubectl get pods -A
- Validate Nginx Configuration:
sudo nginx -t
- The SS-xApp will be automatically deployed. Verify the deployment via Kubernetes:
sudo kubectl get pods -A
To view logs of the SS-xApp:
sudo kubectl logs -f -n ricxapp -l app=ricxapp-ss- Replace the
CONTAINER_NAMEin the script if using a custom container name. - Ensure Docker, Kubernetes, and Helm are installed if not included in the base OS.
- Customize the script as needed, especially the repository URLs and xApp configurations.
- Issue: Kubernetes pods are not starting.
- Solution: Verify the Kubernetes installation and ensure all dependencies are installed.
- Issue: Nginx configuration fails.
- Solution: Check the
/etc/nginx/conf.d/xApp_config.local.conffile for syntax errors and correct paths.
- Solution: Check the