chore(ci): update build configs for new openshift cluster

Signed-off-by: Sagar Arora <sagar.arora@openairinterface.org>
This commit is contained in:
Sagar Arora
2025-01-17 10:29:20 +01:00
parent 50f2c2a3dd
commit 75f6f3ca6f
13 changed files with 87 additions and 10 deletions
+3 -3
View File
@@ -49,11 +49,11 @@ will need `etc-pki-entitlement` inside the container image.
To import `etc-pki-entitlement` in your project follow this
[guide](https://docs.openshift.com/container-platform/4.14/cicd/builds/running-entitled-builds.html#builds-source-secrets-entitlements_running-entitled-builds)
In case you have difficulties in following it then you can copy the
certificates from an RHEL9 host
You can do it as a kubeadmin/system admin user or you should have the rights
to read secrets from `openshift-config-managed` project
```bash
oc create secret generic etc-pki-entitlement --from-file /etc/pki/entitlement/{NUMBER_ON_YOUR_COMPUTER}.pem --from-file /etc/pki/entitlement/{NUMBER_ON_YOUR_COMPUTER}-key.pem
oc get secret etc-pki-entitlement -n openshift-config-managed -o json | jq 'del(.metadata.resourceVersion)' | jq 'del(.metadata.creationTimestamp)' | jq 'del(.metadata.uid)' | jq 'del(.metadata.namespace)' | oc create -f -
```
# 2. Build of `base` shared image
+4 -3
View File
@@ -19,15 +19,16 @@
# * contact@openairinterface.org
# */
#---------------------------------------------------------------------
## Resource consumption 3Gi, 5CPU
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: "oai-clang"
namespace: "oaicicd-ran"
spec:
runPolicy: "Serial"
nodeSelector:
kubernetes.io/hostname: demophon
node-role.kubernetes.io/fhi72-intel3: ""
runPolicy: "Serial"
source:
type: "Binary"
strategy:
+9
View File
@@ -25,6 +25,15 @@ apiVersion: build.openshift.io/v1
metadata:
name: "oai-enb"
spec:
resources:
limits:
cpu: 2
memory: 2Gi
requests:
cpu: 0.5
memory: 1Gi
nodeSelector:
node-role.kubernetes.io/ran-build: ""
runPolicy: "Serial"
source:
type: "Binary"
+10
View File
@@ -24,7 +24,17 @@ kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: "oai-gnb-aw2s"
namespace: "oaicicd-ran"
spec:
resources:
limits:
cpu: 2
memory: 2Gi
requests:
cpu: 0.5
memory: 1Gi
nodeSelector:
node-role.kubernetes.io/fhi72: ""
runPolicy: "Serial"
source:
type: "Binary"
+10
View File
@@ -24,7 +24,17 @@ kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: "oai-gnb"
namespace: "oaicicd-ran"
spec:
resources:
limits:
cpu: 2
memory: 2Gi
requests:
cpu: 0.5
memory: 1Gi
nodeSelector:
node-role.kubernetes.io/ran-build: ""
runPolicy: "Serial"
source:
type: "Binary"
+10
View File
@@ -24,7 +24,17 @@ kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: "oai-gnb-fhi72"
namespace: "oaicicd-ran"
spec:
resources:
limits:
cpu: 2
memory: 2Gi
requests:
cpu: 0.5
memory: 1Gi
nodeSelector:
node-role.kubernetes.io/fhi72: ""
runPolicy: "Serial"
source:
type: "Binary"
+10
View File
@@ -24,7 +24,17 @@ kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: "oai-lte-ue"
namespace: "oaicicd-ran"
spec:
resources:
limits:
cpu: 2
memory: 2Gi
requests:
cpu: 0.5
memory: 1Gi
nodeSelector:
node-role.kubernetes.io/ran-base: ""
runPolicy: "Serial"
source:
type: "Binary"
+9
View File
@@ -25,6 +25,15 @@ apiVersion: build.openshift.io/v1
metadata:
name: "oai-nr-cuup"
spec:
resources:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 0.5
memory: 1Gi
nodeSelector:
node-role.kubernetes.io/ran-build: ""
runPolicy: "Serial"
source:
type: "Binary"
+10
View File
@@ -24,7 +24,17 @@ kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: "oai-nr-ue"
namespace: "oaicicd-ran"
spec:
resources:
limits:
cpu: 2
memory: 2Gi
requests:
cpu: 0.5
memory: 1Gi
nodeSelector:
node-role.kubernetes.io/fhi72-intel3: ""
runPolicy: "Serial"
source:
type: "Binary"
+3 -1
View File
@@ -19,15 +19,17 @@
# * contact@openairinterface.org
# */
#---------------------------------------------------------------------
### Resource consumption 12Gi, 19CPU (SMT ENABLED)
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: "oai-physim"
namespace: "oaicicd-ran"
spec:
runPolicy: "Serial"
nodeSelector:
kubernetes.io/hostname: demophon
node-role.kubernetes.io/ran-base: ""
source:
type: "Binary"
strategy:
+3 -1
View File
@@ -20,14 +20,16 @@
# */
#---------------------------------------------------------------------
#
### Resource consumption 16Gi, 10CPU
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: "ran-base"
namespace: "oaicicd-ran"
spec:
runPolicy: "Serial"
nodeSelector:
kubernetes.io/hostname: acamas
node-role.kubernetes.io/ran-base: ""
source:
type: "Binary"
secrets:
+3 -1
View File
@@ -20,14 +20,16 @@
# */
#---------------------------------------------------------------------
#
### Resource consumption 2.5Gi, 17CPU (SMT ENABLED)
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: "ran-build"
namespace: "oaicicd-ran"
spec:
runPolicy: "Serial"
nodeSelector:
kubernetes.io/hostname: acamas
node-role.kubernetes.io/ran-build: ""
source:
type: "Binary"
strategy:
+3 -1
View File
@@ -20,14 +20,16 @@
# */
#---------------------------------------------------------------------
#
### Resource consumption 5Gi, 9CPU
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: "ran-build-fhi72"
namespace: "oaicicd-ran"
spec:
runPolicy: "Serial"
nodeSelector:
kubernetes.io/hostname: demophon
node-role.kubernetes.io/fhi72: ""
source:
type: "Binary"
strategy: