chore(ci): update build configs for new openshift cluster
Signed-off-by: Sagar Arora <sagar.arora@openairinterface.org>
This commit is contained in:
+3
-3
@@ -49,11 +49,11 @@ will need `etc-pki-entitlement` inside the container image.
|
|||||||
To import `etc-pki-entitlement` in your project follow this
|
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)
|
[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
|
You can do it as a kubeadmin/system admin user or you should have the rights
|
||||||
certificates from an RHEL9 host
|
to read secrets from `openshift-config-managed` project
|
||||||
|
|
||||||
```bash
|
```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
|
# 2. Build of `base` shared image
|
||||||
|
|||||||
@@ -19,15 +19,16 @@
|
|||||||
# * contact@openairinterface.org
|
# * contact@openairinterface.org
|
||||||
# */
|
# */
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
|
## Resource consumption 3Gi, 5CPU
|
||||||
kind: BuildConfig
|
kind: BuildConfig
|
||||||
apiVersion: build.openshift.io/v1
|
apiVersion: build.openshift.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "oai-clang"
|
name: "oai-clang"
|
||||||
|
namespace: "oaicicd-ran"
|
||||||
spec:
|
spec:
|
||||||
runPolicy: "Serial"
|
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: demophon
|
node-role.kubernetes.io/fhi72-intel3: ""
|
||||||
|
runPolicy: "Serial"
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
@@ -25,6 +25,15 @@ apiVersion: build.openshift.io/v1
|
|||||||
metadata:
|
metadata:
|
||||||
name: "oai-enb"
|
name: "oai-enb"
|
||||||
spec:
|
spec:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 2
|
||||||
|
memory: 2Gi
|
||||||
|
requests:
|
||||||
|
cpu: 0.5
|
||||||
|
memory: 1Gi
|
||||||
|
nodeSelector:
|
||||||
|
node-role.kubernetes.io/ran-build: ""
|
||||||
runPolicy: "Serial"
|
runPolicy: "Serial"
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
|
|||||||
@@ -24,7 +24,17 @@ kind: BuildConfig
|
|||||||
apiVersion: build.openshift.io/v1
|
apiVersion: build.openshift.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "oai-gnb-aw2s"
|
name: "oai-gnb-aw2s"
|
||||||
|
namespace: "oaicicd-ran"
|
||||||
spec:
|
spec:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 2
|
||||||
|
memory: 2Gi
|
||||||
|
requests:
|
||||||
|
cpu: 0.5
|
||||||
|
memory: 1Gi
|
||||||
|
nodeSelector:
|
||||||
|
node-role.kubernetes.io/fhi72: ""
|
||||||
runPolicy: "Serial"
|
runPolicy: "Serial"
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
|
|||||||
@@ -24,7 +24,17 @@ kind: BuildConfig
|
|||||||
apiVersion: build.openshift.io/v1
|
apiVersion: build.openshift.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "oai-gnb"
|
name: "oai-gnb"
|
||||||
|
namespace: "oaicicd-ran"
|
||||||
spec:
|
spec:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 2
|
||||||
|
memory: 2Gi
|
||||||
|
requests:
|
||||||
|
cpu: 0.5
|
||||||
|
memory: 1Gi
|
||||||
|
nodeSelector:
|
||||||
|
node-role.kubernetes.io/ran-build: ""
|
||||||
runPolicy: "Serial"
|
runPolicy: "Serial"
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
|
|||||||
@@ -24,7 +24,17 @@ kind: BuildConfig
|
|||||||
apiVersion: build.openshift.io/v1
|
apiVersion: build.openshift.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "oai-gnb-fhi72"
|
name: "oai-gnb-fhi72"
|
||||||
|
namespace: "oaicicd-ran"
|
||||||
spec:
|
spec:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 2
|
||||||
|
memory: 2Gi
|
||||||
|
requests:
|
||||||
|
cpu: 0.5
|
||||||
|
memory: 1Gi
|
||||||
|
nodeSelector:
|
||||||
|
node-role.kubernetes.io/fhi72: ""
|
||||||
runPolicy: "Serial"
|
runPolicy: "Serial"
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
|
|||||||
@@ -24,7 +24,17 @@ kind: BuildConfig
|
|||||||
apiVersion: build.openshift.io/v1
|
apiVersion: build.openshift.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "oai-lte-ue"
|
name: "oai-lte-ue"
|
||||||
|
namespace: "oaicicd-ran"
|
||||||
spec:
|
spec:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 2
|
||||||
|
memory: 2Gi
|
||||||
|
requests:
|
||||||
|
cpu: 0.5
|
||||||
|
memory: 1Gi
|
||||||
|
nodeSelector:
|
||||||
|
node-role.kubernetes.io/ran-base: ""
|
||||||
runPolicy: "Serial"
|
runPolicy: "Serial"
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
|
|||||||
@@ -25,6 +25,15 @@ apiVersion: build.openshift.io/v1
|
|||||||
metadata:
|
metadata:
|
||||||
name: "oai-nr-cuup"
|
name: "oai-nr-cuup"
|
||||||
spec:
|
spec:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 1
|
||||||
|
memory: 2Gi
|
||||||
|
requests:
|
||||||
|
cpu: 0.5
|
||||||
|
memory: 1Gi
|
||||||
|
nodeSelector:
|
||||||
|
node-role.kubernetes.io/ran-build: ""
|
||||||
runPolicy: "Serial"
|
runPolicy: "Serial"
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
|
|||||||
@@ -24,7 +24,17 @@ kind: BuildConfig
|
|||||||
apiVersion: build.openshift.io/v1
|
apiVersion: build.openshift.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "oai-nr-ue"
|
name: "oai-nr-ue"
|
||||||
|
namespace: "oaicicd-ran"
|
||||||
spec:
|
spec:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 2
|
||||||
|
memory: 2Gi
|
||||||
|
requests:
|
||||||
|
cpu: 0.5
|
||||||
|
memory: 1Gi
|
||||||
|
nodeSelector:
|
||||||
|
node-role.kubernetes.io/fhi72-intel3: ""
|
||||||
runPolicy: "Serial"
|
runPolicy: "Serial"
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
|
|||||||
@@ -19,15 +19,17 @@
|
|||||||
# * contact@openairinterface.org
|
# * contact@openairinterface.org
|
||||||
# */
|
# */
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
|
### Resource consumption 12Gi, 19CPU (SMT ENABLED)
|
||||||
|
|
||||||
kind: BuildConfig
|
kind: BuildConfig
|
||||||
apiVersion: build.openshift.io/v1
|
apiVersion: build.openshift.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "oai-physim"
|
name: "oai-physim"
|
||||||
|
namespace: "oaicicd-ran"
|
||||||
spec:
|
spec:
|
||||||
runPolicy: "Serial"
|
runPolicy: "Serial"
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: demophon
|
node-role.kubernetes.io/ran-base: ""
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
@@ -20,14 +20,16 @@
|
|||||||
# */
|
# */
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
### Resource consumption 16Gi, 10CPU
|
||||||
kind: BuildConfig
|
kind: BuildConfig
|
||||||
apiVersion: build.openshift.io/v1
|
apiVersion: build.openshift.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "ran-base"
|
name: "ran-base"
|
||||||
|
namespace: "oaicicd-ran"
|
||||||
spec:
|
spec:
|
||||||
runPolicy: "Serial"
|
runPolicy: "Serial"
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: acamas
|
node-role.kubernetes.io/ran-base: ""
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
secrets:
|
secrets:
|
||||||
|
|||||||
@@ -20,14 +20,16 @@
|
|||||||
# */
|
# */
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
### Resource consumption 2.5Gi, 17CPU (SMT ENABLED)
|
||||||
kind: BuildConfig
|
kind: BuildConfig
|
||||||
apiVersion: build.openshift.io/v1
|
apiVersion: build.openshift.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "ran-build"
|
name: "ran-build"
|
||||||
|
namespace: "oaicicd-ran"
|
||||||
spec:
|
spec:
|
||||||
runPolicy: "Serial"
|
runPolicy: "Serial"
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: acamas
|
node-role.kubernetes.io/ran-build: ""
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
@@ -20,14 +20,16 @@
|
|||||||
# */
|
# */
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
### Resource consumption 5Gi, 9CPU
|
||||||
kind: BuildConfig
|
kind: BuildConfig
|
||||||
apiVersion: build.openshift.io/v1
|
apiVersion: build.openshift.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "ran-build-fhi72"
|
name: "ran-build-fhi72"
|
||||||
|
namespace: "oaicicd-ran"
|
||||||
spec:
|
spec:
|
||||||
runPolicy: "Serial"
|
runPolicy: "Serial"
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: demophon
|
node-role.kubernetes.io/fhi72: ""
|
||||||
source:
|
source:
|
||||||
type: "Binary"
|
type: "Binary"
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
Reference in New Issue
Block a user