Comments (3)
Interesting, seems like --hostname 172.31.18.10
makes kube-router somehow to trip over and makes it not find the node object for itself. No idea yet why that happens though. I see the node object gets created correctly and it does have the CIDR:
k0s kc describe node | grep -i podcidr
PodCIDR: 10.244.0.0/24
PodCIDRs: 10.244.0.0/24
Adding --v=9
to get more debug shows kube-router can actually get the node object:
2024-06-14T07:38:36.24547568Z stderr F I0614 07:38:36.245359 9271 round_trippers.go:553] GET https://10.96.0.1:443/api/v1/nodes/172.31.18.10 200 OK in 1 milliseconds
2024-06-14T07:38:36.245482639Z stderr F I0614 07:38:36.245375 9271 round_trippers.go:570] HTTP Statistics: GetConnection 0 ms ServerProcessing 1 ms Duration 1 ms
2024-06-14T07:38:36.245483639Z stderr F I0614 07:38:36.245377 9271 round_trippers.go:577] Response Headers:
2024-06-14T07:38:36.245484555Z stderr F I0614 07:38:36.245390 9271 round_trippers.go:580] Date: Fri, 14 Jun 2024 07:38:36 GMT
2024-06-14T07:38:36.245486097Z stderr F I0614 07:38:36.245393 9271 round_trippers.go:580] Audit-Id: 8167f001-7613-4a81-89e2-6981dc51d106
2024-06-14T07:38:36.245487055Z stderr F I0614 07:38:36.245396 9271 round_trippers.go:580] Cache-Control: no-cache, private
2024-06-14T07:38:36.24548768Z stderr F I0614 07:38:36.245398 9271 round_trippers.go:580] Content-Type: application/json
2024-06-14T07:38:36.245488472Z stderr F I0614 07:38:36.245400 9271 round_trippers.go:580] X-Kubernetes-Pf-Flowschema-Uid: fa80718b-5e22-4cd2-8fae-411afcc187fb
2024-06-14T07:38:36.245489514Z stderr F I0614 07:38:36.245402 9271 round_trippers.go:580] X-Kubernetes-Pf-Prioritylevel-Uid: 02dabe64-320e-4474-bb95-2aecb53266c2
2024-06-14T07:38:36.24554618Z stderr F I0614 07:38:36.245479 9271 request.go:1212] Response Body: {"kind":"Node","apiVersion":"v1","metadata":{"name":"172.31.18.10","uid":"a72f0d7f-4a30-43dc-a0c2-88281147f33d","resourceVersion":"26
21","creationTimestamp":"2024-06-14T07:17:59Z","labels":{"beta.kubernetes.io/arch":"arm64","beta.kubernetes.io/os":"linux","kubernetes.io/arch":"arm64","kubernetes.io/hostname":"172.31.18.10","kubernetes.io/os":"linux","node-role.kube
rnetes.io/control-plane":"true","node.k0sproject.io/role":"control-plane"},"annotations":{"node.alpha.kubernetes.io/ttl":"0","volumes.kubernetes.io/controller-managed-attach-detach":"true"},"managedFields":[{"manager":"kube-controller
-manager","operation":"Update","apiVersion":"v1","time":"2024-06-14T07:17:59Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{"f:node.alpha.kubernetes.io/ttl":{}}},"f:spec":{"f:podCIDR":{},"f:podCIDRs":{".":{},"v:\
"10.244.0.0/24\"":{}}}}},{"manager":"kubelet","operation":"Update","apiVersion":"v1","time":"2024-06-14T07:17:59Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:volumes.kubernetes.io/controller-managed-a
ttach-detach":{}},"f:labels":{".":{},"f:beta.kubernetes.io/arch":{},"f:beta.kubernetes.io/os":{},"f:kubernetes.io/arch":{},"f:kubernetes.io/hostname":{},"f:kubernetes.io/os":{},"f:node.k0sproject.io/role":{}}}}},{"manager":"k0s","oper
ation":"Update","apiVersion":"v1","time":"2024-06-14T07:18:43Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:labels":{"f:node-role.kubernetes.io/control-plane":{}}}}},{"manager":"kubelet","operation":"Update","apiVersion":"v1"
,"time":"2024-06-14T07:33:49Z","fieldsType":"FieldsV1","fieldsV1":{"f:status":{"f:conditions":{"k:{\"type\":\"DiskPressure\"}":{"f:lastHeartbeatTime":{}},"k:{\"type\":\"MemoryPressure\"}":{"f:lastHeartbeatTime":{}},"k:{\"type\":\"PIDP
ressure\"}":{"f:lastHeartbeatTime":{}},"k:{\"type\":\"Ready\"}":{"f:lastHeartbeatTime":{},"f:lastTransitionTime":{},"f:message":{},"f:reason":{},"f:status":{}}},"f:images":{}}},"subresource":"status"}]},"spec":{"podCIDR":"10.244.0.0/2
4","podCIDRs":["10.244.0.0/24"]},"status":{"capacity":{"cpu":"10","ephemeral-storage":"61202244Ki","hugepages-1Gi":"0","hugepages-2Mi":"0","hugepages-32Mi":"0","hugepages-64Ki":"0","memory":"8029108Ki","pods":"110"},"allocatable":{"cp
u":"10","ephemeral-storage":"56403987978","hugepages-1Gi":"0","hugepages-2Mi":"0","hugepages-32Mi":"0","hugepages-64Ki":"0","memory":"7926708Ki","pods":"110"},"conditions":[{"type":"MemoryPressure","status":"False","lastHeartbeatTime"
:"2024-06-14T07:33:49Z","lastTransitionTime":"2024-06-14T07:17:59Z","reason":"KubeletHasSufficientMemory","message":"kubelet has sufficient memory available"},{"type":"DiskPressure","status":"False","lastHeartbeatTime":"2024-06-14T07:
33:49Z","lastTransitionTime":"2024-06-14T07:17:59Z","reason":"KubeletHasNoDiskPressure","message":"kubelet has no disk pressure"},{"type":"PIDPressure","status":"False","lastHeartbeatTime":"2024-06-14T07:33:49Z","lastTransitionTime":"
2024-06-14T07:17:59Z","reason":"KubeletHasSufficientPID","message":"kubelet has sufficient PID available"},{"type":"Ready","status":"True","lastHeartbeatTime":"2024-06-14T07:33:49Z","lastTransitionTime":"2024-06-14T07:18:09Z","reason"
:"KubeletReady","message":"kubelet is posting ready status"}],"addresses":[{"type":"InternalIP","address":"172.31.18.10"},{"type":"Hostname","address":"172.31.18.10"}],"daemonEndpoints":{"kubeletEndpoint":{"Port":10250}},"nodeInfo":{"
machineID":"","systemUUID":"","bootID":"1edbbb9c-c7f7-4b73-94d7-9f124db6ea90","kernelVersion":"6.6.22-linuxkit","osImage":"Alpine Linux v3.19","containerRuntimeVersion":"containerd://1.7.17","kubeletVersion":"v1.30.1+k0s","kubeProxyVe
rsion":"v1.30.1+k0s","operatingSystem":"linux","architecture":"arm64"},"images":[{"names":["quay.io/k0sproject/kube-router@sha256:fbb9c15ef791250f6d4e01939b0117cc630cd10a79981fa1951ea01571368ac4","quay.io/k0sproject/kube-router:v2.1.0
-iptables1.8.9-0"],"sizeBytes":29857138},{"names":["quay.io/k0sproject/cni-node@sha256:f9ae72f1be998ba3d0a9298d35cbd5577758cc08326406c63fb4804b0664391a","quay.io/k0sproject/cni-node:1.3.0-k0s.0"],"sizeBytes":24271349},{"names":["quay.
io/k0sproject/kube-proxy@sha256:e2f72c1f1f3e36876272ac37aa0dfa32346c727ed1a97976a4bd6b8936c9105d","quay.io/k0sproject/kube-proxy:v1.30.1"],"sizeBytes":20960996},{"names":["registry.k8s.io/pause@sha256:7031c1b283388d2c2e09b57badb803c05
ebed362dc88d84b480cc47f72a21097","registry.k8s.io/pause:3.9"],"sizeBytes":268051}]}}
2024-06-14T07:38:36.246728514Z stderr F I0614 07:38:36.246629 9271 ipset.go:206] running ipset command: path=`/usr/sbin/ipset` args=[list kube-router-pod-subnets]
2024-06-14T07:38:36.247594139Z stderr F I0614 07:38:36.247479 9271 ipset.go:206] running ipset command: path=`/usr/sbin/ipset` args=[list kube-router-node-ips]
2024-06-14T07:38:36.249708875Z stderr F failed to run kube-router: failed to create network routing controller: failed find the subnet of the node IP and interface onwhich its configured: failed to find interface with specified node i
p
But if you instead run with --hostname node-1
it works.
from k0s.
You're right, my documentation claim is invalid, as I have fiddled with --name and --hostname. Would you like me to close the issue record, or maybe leave it for you to follow up with arguments namespace investigation?
thanks
from k0s.
Related Issues (20)
- Remove pinning from outdated k0s-imported OCI images HOT 4
- Autopilot with controller+worker roles fails to update HOT 2
- Specify resolvers for coredns HOT 5
- `k0s kubeconfig` should support OIDC HOT 1
- konnectivity floods the log with "Failed to get a backend" err="No agent available" on normal reboot HOT 9
- Panic: concurrent map read and map write HOT 1
- Add SLES to OS testing matrix
- Backport bump Helm Library version HOT 4
- Manual upgrade failing because of helm timeout type HOT 3
- controller join not working with AWS NLB HOT 2
- Not accurate documentation for nvidia-container-runtime HOT 3
- Update to containerd 2.0 HOT 2
- kube-proxy is missing modprobe which prevents enabling IPVS (since 1.29.0) HOT 4
- fatal error: concurrent map read and map write HOT 2
- Helm extension charts are not installed if controller exits during first attempt HOT 3
- Cannot reach any public service on node after joined to cluster HOT 5
- Install helm chart from OCI doesn't work HOT 4
- Helm extension can't add helm chart repository HOT 4
- K0s iptables rules block ssh login HOT 6
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 k0s.