Skip to content

Commit

Permalink
Improve Pod Initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Adigun committed Apr 21, 2021
1 parent becce0b commit b7ce0df
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 10 deletions.
1 change: 1 addition & 0 deletions Arm-Architecture/Dockerfiles/open5gs-epc/open5gs-epc-aio
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN apt-get update && \
netbase \
iptables \
net-tools \
dnsutils \
pkg-config && \
apt-get clean && \
git clone -b v2.2.6 --recursive https://github.com/open5gs/open5gs && \
Expand Down
6 changes: 5 additions & 1 deletion Arm-Architecture/templates/hss-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ spec:
- name: hss
image: "{{ .Values.open5gs.image.repository }}:{{ .Values.open5gs.image.tag }}"
imagePullPolicy: {{ .Values.open5gs.image.pullPolicy }}
command: ["open5gs-hssd", "-c", "/open5gs/config-map/hss.yaml"]
command: ["/bin/sh", "-c"]
args:
- until nslookup s6a.mme.open5gs.service; do echo waiting for mme DNS record to be ready; done;
sleep 10;
open5gs-hssd -c /open5gs/config-map/hss.yaml
volumeMounts:
- name: open5gs-hss-config
mountPath: /open5gs/config-map/hss.yaml
Expand Down
8 changes: 7 additions & 1 deletion Arm-Architecture/templates/mme-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ spec:
- name: mme
image: "{{ .Values.open5gs.image.repository }}:{{ .Values.open5gs.image.tag }}"
imagePullPolicy: {{ .Values.open5gs.image.pullPolicy }}
command: ["open5gs-mmed", "-c", "/open5gs/config-map/mme.yaml"]
command: ["/bin/sh", "-c"]
args:
- until nslookup s6a.hss.open5gs.service; do echo waiting for hss DNS record to be ready; done;
until nslookup s11.sgwc.open5gs.service; do echo waiting for sgwc DNS record to be ready; done;
until nslookup s5.smf.open5gs.service; do echo waiting for smf DNS record to be ready; done;
sleep 10;
open5gs-mmed -c /open5gs/config-map/mme.yaml
volumeMounts:
- name: open5gs-mme-config
mountPath: /open5gs/config-map/mme.yaml
Expand Down
6 changes: 5 additions & 1 deletion Arm-Architecture/templates/pcrf-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ spec:
- name: pcrf
image: "{{ .Values.open5gs.image.repository }}:{{ .Values.open5gs.image.tag }}"
imagePullPolicy: {{ .Values.open5gs.image.pullPolicy }}
command: ["open5gs-pcrfd", "-c", "/open5gs/config-map/pcrf.yaml"]
command: ["/bin/sh", "-c"]
args:
- until nslookup s5.smf.open5gs.service; do echo waiting for smf DNS record to be ready; done;
sleep 10;
open5gs-pcrfd -c /open5gs/config-map/pcrf.yaml
volumeMounts:
- name: open5gs-pcrf-config
mountPath: /open5gs/config-map/pcrf.yaml
Expand Down
4 changes: 3 additions & 1 deletion Arm-Architecture/templates/sgw-c-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ spec:
imagePullPolicy: {{ .Values.open5gs.image.pullPolicy }}
command: ["/bin/sh", "-c"]
args:
- open5gs-sgwcd -c /open5gs/config-map/sgwc.yaml;
- until nslookup sx.sgwu.open5gs.service; do echo waiting for sgwu DNS record to be ready; done;
sleep 10;
open5gs-sgwcd -c /open5gs/config-map/sgwc.yaml;
volumeMounts:
- name: open5gs-sgwc-config
mountPath: /open5gs/config-map/sgwc.yaml
Expand Down
5 changes: 4 additions & 1 deletion Arm-Architecture/templates/smf-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ spec:
imagePullPolicy: {{ .Values.open5gs.image.pullPolicy }}
command: ["/bin/sh", "-c"]
args:
- open5gs-smfd -c /open5gs/config-map/smf.yaml;
- until nslookup gx.pcrf.open5gs.service; do echo waiting for pcrf DNS record to be ready; done;
until nslookup sx.upf.open5gs.service; do echo waiting for upf DNS record to be ready; done;
sleep 10;
open5gs-smfd -c /open5gs/config-map/smf.yaml;
volumeMounts:
- name: open5gs-smf-config
mountPath: /open5gs/config-map/smf.yaml
Expand Down
1 change: 1 addition & 0 deletions x86-Architecture/Dockerfiles/open5gs-epc/open5gs-epc-aio
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN apt-get update && \
netbase \
net-tools \
iptables \
dnsutils \
pkg-config && \
apt-get clean && \
git clone -b v2.2.6 --recursive https://github.com/open5gs/open5gs && \
Expand Down
6 changes: 5 additions & 1 deletion x86-Architecture/templates/hss-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ spec:
- name: hss
image: "{{ .Values.open5gs.image.repository }}:{{ .Values.open5gs.image.tag }}"
imagePullPolicy: {{ .Values.open5gs.image.pullPolicy }}
command: ["open5gs-hssd", "-c", "/open5gs/config-map/hss.yaml"]
command: ["/bin/sh", "-c"]
args:
- until nslookup s6a.mme.open5gs.service; do echo waiting for mme DNS record to be ready; done;
sleep 10;
open5gs-hssd -c /open5gs/config-map/hss.yaml
volumeMounts:
- name: open5gs-hss-config
mountPath: /open5gs/config-map/hss.yaml
Expand Down
8 changes: 7 additions & 1 deletion x86-Architecture/templates/mme-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ spec:
- name: mme
image: "{{ .Values.open5gs.image.repository }}:{{ .Values.open5gs.image.tag }}"
imagePullPolicy: {{ .Values.open5gs.image.pullPolicy }}
command: ["open5gs-mmed", "-c", "/open5gs/config-map/mme.yaml"]
command: ["/bin/sh", "-c"]
args:
- until nslookup s6a.hss.open5gs.service; do echo waiting for hss DNS record to be ready; done;
until nslookup s11.sgwc.open5gs.service; do echo waiting for sgwc DNS record to be ready; done;
until nslookup s5.smf.open5gs.service; do echo waiting for smf DNS record to be ready; done;
sleep 10;
open5gs-mmed -c /open5gs/config-map/mme.yaml
volumeMounts:
- name: open5gs-mme-config
mountPath: /open5gs/config-map/mme.yaml
Expand Down
6 changes: 5 additions & 1 deletion x86-Architecture/templates/pcrf-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ spec:
- name: pcrf
image: "{{ .Values.open5gs.image.repository }}:{{ .Values.open5gs.image.tag }}"
imagePullPolicy: {{ .Values.open5gs.image.pullPolicy }}
command: ["open5gs-pcrfd", "-c", "/open5gs/config-map/pcrf.yaml"]
command: ["/bin/sh", "-c"]
args:
- until nslookup s5.smf.open5gs.service; do echo waiting for smf DNS record to be ready; done;
sleep 10;
open5gs-pcrfd -c /open5gs/config-map/pcrf.yaml
volumeMounts:
- name: open5gs-pcrf-config
mountPath: /open5gs/config-map/pcrf.yaml
Expand Down
4 changes: 3 additions & 1 deletion x86-Architecture/templates/sgw-c-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ spec:
imagePullPolicy: {{ .Values.open5gs.image.pullPolicy }}
command: ["/bin/sh", "-c"]
args:
- open5gs-sgwcd -c /open5gs/config-map/sgwc.yaml;
- until nslookup sx.sgwu.open5gs.service; do echo waiting for sgwu DNS record to be ready; done;
sleep 10;
open5gs-sgwcd -c /open5gs/config-map/sgwc.yaml;
volumeMounts:
- name: open5gs-sgwc-config
mountPath: /open5gs/config-map/sgwc.yaml
Expand Down
5 changes: 4 additions & 1 deletion x86-Architecture/templates/smf-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ spec:
imagePullPolicy: {{ .Values.open5gs.image.pullPolicy }}
command: ["/bin/sh", "-c"]
args:
- open5gs-smfd -c /open5gs/config-map/smf.yaml;
- until nslookup gx.pcrf.open5gs.service; do echo waiting for pcrf DNS record to be ready; done;
until nslookup sx.upf.open5gs.service; do echo waiting for upf DNS record to be ready; done;
sleep 10;
open5gs-smfd -c /open5gs/config-map/smf.yaml;
volumeMounts:
- name: open5gs-smf-config
mountPath: /open5gs/config-map/smf.yaml
Expand Down

0 comments on commit b7ce0df

Please sign in to comment.