在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):OPENAIRINTERFACE/openair-k8s开源软件地址(OpenSource Url):https://github.com/OPENAIRINTERFACE/openair-k8s开源编程语言(OpenSource Language):Shell 82.6%开源软件介绍(OpenSource Introduction):OpenAirInterface on Kubernetesopenair-k8s allows building high-quality OCI-compliant container images for the OpenAirInterface 4G/5G radio access (eNB/gNB) and core networks (EPC) and deploying these components on OpenShift or other enterprise-grade Kubernetes distributions. Note: This is both experimental and work in progress. Building OAI Container ImagesBuild StrategyOpenAirInterface (OAI) components have many build-time dependencies, some of which need to be built from source. To ensure fast yet reproducible image builds, we create a common Images are built based on RHEL8 Universal Base Images (UBI) to yield small images with curated, high-quality content. PrerequisitesAs some of the required rpm packages for building OAI are not yet available via the UBI repos, images currently need to be built on a subscribed RHEL8 host, e.g. using the free RHEL8 developer subscriptions. On the RHEL8 build host: sudo subscription-manager register
sudo subscription-manager attach
sudo yum install -y git podman nmap-ncat
git clone http://github.com/OPENAIRINTERFACE/openair-k8s
cd openair-k8s BuildingTo build all OAI component images: hack/build_images To build selected OAI component images, e.g.: hack/build_images oai-enb oai-ue By default, OAI components are built using the stable git tag defined in the component's Dockerfile. To override this, specify an alternative git ref to build from, e.g.: hack/build_images oai-enb:v1.0.0 oai-ue:master Pushing to a RegistryTo push the OAI images to an external registry, e.g. oai-hss to quay.io: podman login quay.io
podman push oai-hss:1.0.1 quay.io/my_organisation/oai-hss:1.0.1 CleaningTo delete all local OAI component images: hack/clean_images Add Checking DockerfilesTo run a linter on all Dockerfiles: hack/check_dockerfiles Running OAI on PodmanPrerequisitesOAI containers will run with host networking (
RunningTo test the OAI container images on your local machine, you can run them in podman like this: hack/run_oai_on_podman CleaningTo delete the container instances created with above command, use: hack/clean_oai_on_podman Running OAI on KubernetesPrerequisitesObviously, a running k8s cluster with curl -L https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 -o ~/bin/kustomize && chmod a+x ~/bin/kustomize If necessary, generate new TLS certificates for the oai-hss and oai-mme services to match the namespace and cluster name you're deploying to, e.g.: hack/generate_certs -p hss -d manifests/oai-hss/certs oai-hss.oai.svc.cluster.local
hack/generate_certs -p mme -d manifests/oai-mme/certs oai-mme.oai.svc.cluster.local RunningIf your user has permissions to create namespaces on the k8s cluster, you can simply run: hack/run_oai_on_k8s ... which internally calls: kustomize build manifests | kubectl apply -f - If you need to use a namespace assigned to you, e.g. In order to run a single component, you have to point to the specific path where the manifests are located. For instnace, to run the MME on Kubernetes/OpenShift, please run:
and to delete that component from running on the cluster, execute:
CleaningTo remove all resources from the 'oai' namespace plus delete the namespace itself, run: hack/clean_oai_on_k8s |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论