openairinterface / openair-k8s Goto Github PK
View Code? Open in Web Editor NEWOpenAirInterface on Kubernetes
License: Apache License 2.0
OpenAirInterface on Kubernetes
License: Apache License 2.0
I've been attempting to set this repository up on my cluster and running hack/run_oai_on_k8s
throws a ValidationError
when creating the oai-hss
deployment. The error is below.
cameron@m:~/openair-k8s$ hack/run_oai_on_k8s
namespace/oai created
serviceaccount/enb-sa created
serviceaccount/hss-sa created
serviceaccount/mme-sa created
serviceaccount/spgwc-sa created
serviceaccount/spgwu-sa created
clusterrolebinding.rbac.authorization.k8s.io/enb-rbac created
clusterrolebinding.rbac.authorization.k8s.io/hss-rbac created
clusterrolebinding.rbac.authorization.k8s.io/mme-rbac created
clusterrolebinding.rbac.authorization.k8s.io/spgwc-rbac created
clusterrolebinding.rbac.authorization.k8s.io/spgwu-rbac created
configmap/cassandra-config created
configmap/enb-config created
configmap/hss-config created
configmap/mme-config created
configmap/oai-db created
configmap/spgwc-config created
configmap/spgwu-config created
secret/hss-tls-secret created
secret/mme-tls-secret created
service/cassandra created
service/oai-enb created
service/oai-hss created
service/oai-mme created
service/oai-spgwc created
service/oai-spgwu created
deployment.apps/oai-enb created
error: error validating "STDIN": error validating data: ValidationError(Deployment.spec.template.spec.initContainers[0]): unknown field "restartPolicy" in io.k8s.api.core.v1.Container; if you choose to ignore these errors, turn validation off with --validate=false
When I looked at the YAML that Kustomize generated, this error seemed to be coming from the below section.
initContainers:
- command:
- sh
- -c
- cqlsh cassandra-0.cassandra.oai.svc.cluster.local --file /root/oai_db.cql
image: cassandra:3.11
name: init-db
restartPolicy: Never
volumeMounts:
- mountPath: /root
name: db
Which in turn comes from manifests/oai-hss/05_deployment.yaml
. The docs for Kubernetes 1.17 have no restartPolicy
field for Container
and I couldn't find one going back to 1.10. Is there a reason that this restartPolicy
field is in there that I'm missing?
Environment information:
cameron@m:~/openair-k8s$ kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:14:22Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:07:13Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}
cameron@m:~/openair-k8s$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
Hi,
I am trying to build the OAI containers but i am getting some errors. Two of them are about repositories that are deleted (?). I run the command:
hack/build_images oai-build-base:v1.0.0 oai-enb:v1.0.0 oai-hss:v1.0.0 oai-mme:v1.0.0 oai-nrue:v1.0.0 oai-spgwc:v1.0.0 oai-spgwu:v1.0.0 oai-ue:v1.0.0 rt-tests-cyclictest:v1.0.0
Error 1. I am getting this for the eNB, NRUE and UE.
Error 2. I am getting this for the HSS and the MME.
Error 3. I am getting this for the SPGWC and the SPGWU.
Hello Team,
I tried to build OAI using below command:
[cloud-user@openshift openair-k8s]$ ./hack/build_images
But facing below error:
== Building image oai-enb:1.1.1.el8
STEP 1: FROM localhost/oai-build-base:latest.el8 AS builder
Error: error creating build container: Error initializing source docker://localhost/oai-build-base:latest.el8: error pinging docker registry localhost: Get https://localhost/v2/: dial tcp [::1]:443: connect: connection refused
== Building image oai-gnb:develop-nr.el8
STEP 1: FROM localhost/oai-build-base:latest.el8 AS builder
Error: error creating build container: Error initializing source docker://localhost/oai-build-base:latest.el8: error pinging docker registry localhost: Get https://localhost/v2/: dial tcp [::1]:443: connect: connection refused
I am following the steps mentioned. Can you please resolve this problem.
Thanks
Kind Regards,
Faisal
Hi,
Is there any documentation on how to use this implementation? From the k8s manifests I was able to deduce the below, please correct me wherever needed:
1.) This is a kind of simulation whereby real HW is not needed (this will be for testing purposes).
2.) UE-OAI -- This is a simulated lte device (my assumption also), I could not find information about how to configure the msisdn, imsi, eNodeB information. Can it be run with more than 1 replica (separate deployment)?
I saw a Cassandra configmap file that has some UE information which I believe is what the HSS will use.
3.) Any other reason apart from small image size for using UBI images (this requires getting a redhat system just for the purpose of building the images) or are there pre-built images that can be used?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.