Skip to content

Commit 8ecc5c1

Browse files
committed
K8S-35 ip routes for public ips
1 parent be942d9 commit 8ecc5c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manifest.jps

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)