k0sproject / k0sproject/k0sctl

using privateInterface does not seem to pick the right address

Open
#760 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
582
Forks
113
Avg merge
2d 13h
Merged PRs (30d)
34

Description

We tries to deploy k0s in linode (akamai). The vpc in linode seems to do source/dest check (and operates in layer 3), which means that kube-router does not work. to work around this we added a vlan (layer 2), which give the node a second interface, eth1.

Kubelet ended up using the ip of eth0, so we tried to use the `privateInterface` option in the k0sctl config.

For the controller, it picked up the ip address of eth1 as expected, but the worker nodes did not append `--node-ip` to kubelet, which led to node to node config not working.

Should `privateInterface` set `--node-ip` as an extra arg for kubelet?

setting the `privateAddress` did appear to work.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the privateInterface handling in the k0sctl configuration and compare how controller and worker kubelet arguments are generated. Reproduce the Linode setup with eth0 and eth1, then verify whether the worker receives --node-ip for the selected interface and add coverage for the confirmed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.