fix: bootstrap kube-vip without leader election
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
Run first-control-plane kube-vip manifest without --leaderElection so VIP can bind before API/RBAC are fully available. Also print kube-vip container exit details on failure.
This commit is contained in:
@@ -188,7 +188,6 @@ in
|
||||
--address "$vip" \
|
||||
--controlplane \
|
||||
--arp \
|
||||
--leaderElection \
|
||||
> /etc/kubernetes/manifests/kube-vip.yaml
|
||||
|
||||
# kube-vip bootstrap workaround for Kubernetes >=1.29.
|
||||
@@ -208,6 +207,7 @@ in
|
||||
for container_id in $(crictl ps -a --name kube-vip -q 2>/dev/null); do
|
||||
echo "--- kube-vip container $container_id ---"
|
||||
crictl logs "$container_id" 2>/dev/null || true
|
||||
crictl inspect "$container_id" 2>/dev/null | jq -r '.status | "exitCode=\(.exitCode) reason=\(.reason // "") message=\(.message // "")"' || true
|
||||
done
|
||||
echo "==> Checking if VIP is bound:"
|
||||
ip -4 addr show | grep "$vip" || echo "VIP NOT BOUND"
|
||||
|
||||
Reference in New Issue
Block a user