Comments (5)
Same for me. On a fresh cluster deployment if kube-vip it's enabled the deployment fails.
Variables used in setting up kube-vip:
# Kube VIP
kube_vip_enabled: true
kube_vip_arp_enabled: true
kube_vip_controlplane_enabled: true
kube_vip_address: "{{ hostvars[groups['kube_control_plane'][0]]['virtual_ip_addresses'][0] }}" # evaluates to an IP
loadbalancer_apiserver:
address: "{{ kube_vip_address }}"
port: 6443
kube_vip_interface: ens192
kube_vip_services_enabled: false
kube_vip_dns_mode: first
kube_vip_cp_detect: false
kube_vip_leasename: plndr-cp-lock
kube_vip_enable_node_labeling: true
kube_vip_lb_enable: true
This are the logs from the kube-vip container:
E0526 16:28:30.201192 1 leaderelection.go:332] error retrieving resource lock kube-system/plndr-cp-lock: leases.coordination.k8s.io "plndr-cp-lock" is forbidden: User "kubernetes-admin" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "kube-system"
E0526 16:28:32.303578 1 leaderelection.go:332] error retrieving resource lock kube-system/plndr-cp-lock: leases.coordination.k8s.io "plndr-cp-lock" is forbidden: User "kubernetes-admin" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "kube-system"
And this from the journaclt:
May 26 16:30:11 k8s-g1-cplane-1-56a631.example.com kubelet[14529]: I0526 16:30:11.764300 14529 csi_plugin.go:880] Failed to contact API server when waiting for CSINode publishing: Get "https://lb-apiserver.kubernetes.local:6443/apis/storage.k8s.io/v1/csinodes/k8s-g1-cplane-1-56a631.example.com": dial tcp 172.19.20.99:6443: connect: no route to host
May 26 16:30:11 k8s-g1-cplane-1-56a631.example.com kubelet[14529]: W0526 16:30:11.764339 14529 reflector.go:539] k8s.io/[email protected]/tools/cache/reflector.go:229: failed to list *v1.Node: Get "https://lb-apiserver.kubernetes.local:6443/api/v1/nodes?fieldSelector=metadata.name%3Dk8s-g1-cplane-1-56a631.example.com&limit=500&resourceVersion=0": dial tcp 172.19.20.99:6443: connect: no route to host
I redacted the domain with example.com
Workaround:
- Deploy a fresh cluster without kube-vip the deployed succeeds.
- Enable kube-vip and re-run cluster.yml the cluster deployment succeeds and kube-vip works as expected.
from kubespray.
Same issue for me.
from kubespray.
kube-vip requires workarounds to support k8s v1.29+
from kubespray.
I would be great to add kube-vip to the test matrix also ...
from kubespray.
Proposed PR: #11242
from kubespray.
Related Issues (20)
- Add control plane node failed after one first intialization HOT 2
- The Auto Bump PR is blocked by label `do-not-merge/release-note-label-needed`
- Calico/Tigera operator support
- tf-elastx_cleanup is failing with 'resource in use' HOT 1
- Possibility to install cluster without CNI HOT 5
- Incorrect links in docs/operations/ha-mode.md
- Failure to upgrade a flatcar cluster due to patch "Refactor bootstrap-os (#10983)" HOT 2
- Please enable only either the metallb or kube-vip loadbalancer service, but not both.
- Using the playbook scale.yml to scale out cluster worker nodes will restart kube-proxy.
- molecule tests are failing HOT 2
- bootstrap-os : Include vars file error HOT 2
- Can not find conntrack to install Ubuntu 24.04 HOT 3
- Failde to run scale.yml when adding a node HOT 1
- Add Node IPs to Kubelet systemd Hardening default IP ranges
- Add functionality to pull OIDC provider CA file HOT 1
- Can I copy kubeconfig to each node? I didn't find the relevant configuration. I hope each node has $HOME/.kube/config HOT 2
- Uninstall (reset role) should delete local_release_dir as well
- HTTP proxy not working on Rocky Linux (& likely other OS) after pull/10983
- Kubespray can not be used on Oracle Linux 8
- Multus Daemonset does not configure a priorityClassName
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubespray.