Skip to content

Commit 680a882

Browse files
committed
add BGP router static ips during kube-vip configuration
Signed-off-by: Marques Johansson <[email protected]>
1 parent fd8e94a commit 680a882

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/controller_pool/controller-primary.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ EOF
108108
}
109109

110110
function kube_vip {
111+
kubectl apply -f https://kube-vip.io/manifests/rbac.yaml
112+
GATEWAY_IP=$(curl https://metadata.platformequinix.com/metadata | jq -r ".network.addresses[] | select(.public == false) | .gateway");
113+
ip route add 169.254.255.1 via $GATEWAY_IP
114+
ip route add 169.254.255.2 via $GATEWAY_IP
111115
alias kube-vip="docker run --network host --rm ghcr.io/kube-vip/kube-vip:v0.3.8"
112116
kube-vip manifest daemonset \
113117
--interface lo \

0 commit comments

Comments
 (0)