Skip to content

Commit e5ef634

Browse files
committed
Add init containers to ueransim setup
1 parent 0af0924 commit e5ef634

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

ueransim/ueransim-gnb/gnb-deployment.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ spec:
2222
{ "name": "n3network", "interface": "n3", "ips": [ "10.10.3.231/24" ] }
2323
]'
2424
spec:
25+
initContainers:
26+
- name: wait-bsf
27+
image: busybox:1.32.0
28+
env:
29+
- name: DEPENDENCIES
30+
value: bsf-nbsf:80
31+
command: ["sh", "-c", "until nc -z $DEPENDENCIES; do echo waiting for the BSF; sleep 2; done;"]
2532
containers:
2633
- image: ghcr.io/niloysh/ueransim:v3.2.6
2734
name: gnb

ueransim/ueransim-ue/ue1/ue-deployment.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ spec:
2121
component: ue
2222
name: ue1
2323
spec:
24+
initContainers:
25+
- name: wait-gnb
26+
image: busybox:1.32.0
27+
env:
28+
- name: DEPENDENCIES
29+
value: gnb-service:4997
30+
command: ["sh", "-c", "until nc -z -u $DEPENDENCIES; do echo waiting for the gNB; sleep 2; done;"]
2431
containers:
2532
- image: ghcr.io/niloysh/ueransim:v3.2.6
2633
imagePullPolicy: Always

ueransim/ueransim-ue/ue2/ue-deployment.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ spec:
2121
component: ue
2222
name: ue2
2323
spec:
24+
initContainers:
25+
- name: wait-gnb
26+
image: busybox:1.32.0
27+
env:
28+
- name: DEPENDENCIES
29+
value: gnb-service:4997
30+
command: ["sh", "-c", "until nc -z -u $DEPENDENCIES; do echo waiting for the gNB; sleep 2; done;"]
2431
containers:
2532
- image: ghcr.io/niloysh/ueransim:v3.2.6
2633
imagePullPolicy: Always

ueransim/ueransim-ue/ue3/ue-deployment.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ spec:
2121
component: ue
2222
name: ue3
2323
spec:
24+
initContainers:
25+
- name: wait-gnb
26+
image: busybox:1.32.0
27+
env:
28+
- name: DEPENDENCIES
29+
value: gnb-service:4997
30+
command: ["sh", "-c", "until nc -z -u $DEPENDENCIES; do echo waiting for the gNB; sleep 2; done;"]
2431
containers:
2532
- image: ghcr.io/niloysh/ueransim:v3.2.6
2633
imagePullPolicy: Always

0 commit comments

Comments
 (0)