Skip to content

Commit 3c744f3

Browse files
authored
Fix daemonset
Use same hostAlias strategy as static pods use to get around race condition when using a CNI like Cilium where kube-vip needs the VIP to exist to get a lease, and Cilium needs the VIP to exist to allow the lease traffic to succeed.
1 parent f89e4ad commit 3c744f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/kube-vip/kube-vip.yml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ spec:
8383
add:
8484
- NET_ADMIN
8585
- NET_RAW
86+
hostAliases:
87+
- hostnames:
88+
- kubernetes
89+
ip: 127.0.0.1
8690
hostNetwork: true
8791
serviceAccountName: kube-vip
8892
tolerations:

0 commit comments

Comments
 (0)