Merge pull request 'fix: bootstrap kube-vip without leader election' (#97) from stage into master
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 17m12s
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 17m12s
Reviewed-on: #97
This commit was merged in pull request #97.
This commit is contained in:
@@ -188,7 +188,6 @@ in
|
|||||||
--address "$vip" \
|
--address "$vip" \
|
||||||
--controlplane \
|
--controlplane \
|
||||||
--arp \
|
--arp \
|
||||||
--leaderElection \
|
|
||||||
> /etc/kubernetes/manifests/kube-vip.yaml
|
> /etc/kubernetes/manifests/kube-vip.yaml
|
||||||
|
|
||||||
# kube-vip bootstrap workaround for Kubernetes >=1.29.
|
# 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
|
for container_id in $(crictl ps -a --name kube-vip -q 2>/dev/null); do
|
||||||
echo "--- kube-vip container $container_id ---"
|
echo "--- kube-vip container $container_id ---"
|
||||||
crictl logs "$container_id" 2>/dev/null || true
|
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
|
done
|
||||||
echo "==> Checking if VIP is bound:"
|
echo "==> Checking if VIP is bound:"
|
||||||
ip -4 addr show | grep "$vip" || echo "VIP NOT BOUND"
|
ip -4 addr show | grep "$vip" || echo "VIP NOT BOUND"
|
||||||
|
|||||||
Reference in New Issue
Block a user