File tree Expand file tree Collapse file tree 3 files changed +23
-9
lines changed
Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 11apiVersion : v2
22appVersion : 2.5.0
33name : bee
4- version : 0.17.2
4+ version : 0.17.3
55kubeVersion : " >=1.19.0-0"
66description : Ethereum Swarm Bee Helm chart for Kubernetes
77home : https://www.ethswarm.org
Original file line number Diff line number Diff line change @@ -110,14 +110,22 @@ spec:
110110 if ! [ -f /home/bee/.bee.yaml ]; then cp -p /tmp/.bee.yaml /home/bee/.bee.yaml; fi;
111111 export INDEX=$(echo $(hostname) | rev | cut -d'-' -f 1 | rev);
112112 {{- if .Values.p2pFixedPort.enabled }}
113- PUBLIC_IP=$(wget -T 10 {{ .Values.p2pFixedPort.publicIpUrl }} -q -O -);
114- NAT_PORT=$(( {{ .Values.p2pFixedPort.nodePortStart }} + INDEX ));
115- printf 'nat-addr: %s:%s\n' "${PUBLIC_IP}" "${NAT_PORT}" >> /home/bee/.bee.yaml;
113+ for url in {{ .Values.p2pFixedPort.publicIpUrls | join " " }}; do
114+ PUBLIC_IP=$(wget -T 10 $url -q -O -) && [ -n "$PUBLIC_IP" ] && break
115+ done;
116+ if [ -n "${PUBLIC_IP}" ]; then
117+ NAT_PORT=$(( {{ .Values.p2pFixedPort.nodePortStart }} + INDEX ));
118+ printf 'nat-addr: %s:%s\n' "${PUBLIC_IP}" "${NAT_PORT}" >> /home/bee/.bee.yaml;
119+ fi;
116120 {{- end }}
117121 {{- if .Values.p2pWssFixedPort.enabled }}
118- PUBLIC_IP=$(wget -T 10 {{ .Values.p2pWssFixedPort.publicIpUrl }} -q -O -);
119- NAT_PORT=$(( {{ .Values.p2pWssFixedPort.nodePortStart }} + INDEX ));
120- printf 'nat-wss-addr: %s:%s\n' "${PUBLIC_IP}" "${NAT_PORT}" >> /home/bee/.bee.yaml;
122+ for url in {{ .Values.p2pWssFixedPort.publicIpUrls | join " " }}; do
123+ PUBLIC_IP=$(wget -T 10 $url -q -O -) && [ -n "$PUBLIC_IP" ] && break
124+ done;
125+ if [ -n "${PUBLIC_IP}" ]; then
126+ NAT_PORT=$(( {{ .Values.p2pWssFixedPort.nodePortStart }} + INDEX ));
127+ printf 'nat-wss-addr: %s:%s\n' "${PUBLIC_IP}" "${NAT_PORT}" >> /home/bee/.bee.yaml;
128+ fi;
121129 {{- end }}
122130 echo 'node initialization done';
123131 volumeMounts :
Original file line number Diff line number Diff line change @@ -58,7 +58,10 @@ singlePodSts:
5858p2pFixedPort :
5959 enabled : false
6060 nodePortStart : 31000
61- publicIpUrl : http://ifconfig.me/ip
61+ publicIpUrls :
62+ - http://ifconfig.me/ip
63+ - http://icanhazip.com
64+ - http://ifconfig.co/ip
6265
6366# # If enabled, creates ingress for HTTP api
6467# # Creates one ingress per pod and additionally one common ingress for all pods
@@ -212,7 +215,10 @@ beeConfig:
212215p2pWssFixedPort :
213216 enabled : false
214217 nodePortStart : 31001
215- publicIpUrl : http://ifconfig.me/ip
218+ publicIpUrls :
219+ - http://ifconfig.me/ip
220+ - http://icanhazip.com
221+ - http://ifconfig.co/ip
216222
217223
218224# # Password for decrypting bee keys (please set it for production deployments)
You can’t perform that action at this time.
0 commit comments