File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,9 @@ actions:
172172 rm -f /etc/machine-id
173173 systemd-machine-id-setup
174174 systemctl daemon-reload > /dev/null 2>&1
175+ local_ip=$(/usr/sbin/ip route get 1.2.3.4 | grep -v 'cache' | uniq | head -n 1 | sed -n 's/.* src \([^ ]*\).*/\1/p')
176+ [ -n "${local_ip}" ] && local_ip_route="10.244.0.0/15 dev venet0 src ${local_ip}"
177+ [ -n "${local_ip_route}" ] && /usr/sbin/ip route add ${local_ip_route} && echo "${local_ip_route}" >> /etc/sysconfig/network-scripts/route-venet0
175178 ${globals.worker_join_cmd} --ignore-preflight-errors=swap,numcpu > /dev/null 2>&1
176179 sleep 5
177180 - configure-all-post: ${this}
@@ -499,7 +502,7 @@ addons:
499502
500503 - id: upgrade-k8s-addon
501504 type: update
502- baseUrl: https://raw.githubusercontent.com/jelastic-jps/kubernetes/v1.16.3
505+ baseUrl: https://raw.githubusercontent.com/jelastic-jps/kubernetes/v1.15.6
503506 name: Kubernetes Cluster Upgrade
504507 description: Upgrade Kubernetes cluster to a newer version
505508 logo: /images/k8s-logo.png
You can’t perform that action at this time.
0 commit comments