Binding to a single ip #7826
Replies: 12 comments
-
try ./k3s server --bind-address=192.168.123.100 |
Beta Was this translation helpful? Give feedback.
-
@warmchang Looks like it still binds to more than just the provided ip. |
Beta Was this translation helpful? Give feedback.
-
@NoUseFreak The argument should have |
Beta Was this translation helpful? Give feedback.
-
I have the same problem, every network inteface see ports 80/443 associated to k3s 😓. Even if I use the |
Beta Was this translation helpful? Give feedback.
-
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 180 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
I miss the notification… someone can reopen it please? |
Beta Was this translation helpful? Give feedback.
-
@davinkevin sure, but can you provide a more complete report on what your experiencing and how to reproduce, including the version of k3s that you're running. |
Beta Was this translation helpful? Give feedback.
-
With a complete new install on a VM with nothing except k3s, I have 2 network interfaces: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1c:42:5f:e1:c9 brd ff:ff:ff:ff:ff:ff
inet 192.168.228.95/16 brd 192.168.255.255 scope global dynamic enp0s5
valid_lft 85656sec preferred_lft 85656sec
inet6 fe80::21c:42ff:fe5f:e1c9/64 scope link
valid_lft forever preferred_lft forever
3: enp0s6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1c:42:73:84:98 brd ff:ff:ff:ff:ff:ff
inet 192.168.193.128/16 brd 192.168.255.255 scope global dynamic enp0s6
valid_lft 85656sec preferred_lft 85656sec
inet6 fe80::21c:42ff:fe73:8498/64 scope link
valid_lft forever preferred_lft forever So, If I install and start k3s with no options, I have k3s binded to both If I try to attach only to one interface, I've tried a lot of parameters, the last one for this issue is: k3s server --node-ip=192.168.193.128 --flannel-iface=enp0s6 --bind-address=192.168.193.128 You can see on the following capture, both terms on the right has a 404 page coming from k3s ingresses. If only one interface was successfully bound, only the one on the bottom right should display this 404 message. I've done this with Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
Are here any updates? I also have trouble to bind the node-port to my local ip:
|
Beta Was this translation helpful? Give feedback.
-
The issue is not related to kube-proxy or the bind-address. We are using portmap cni by default to forward the traffic of the host to containers. Portmap should be configurable using the cni conf file and by default is forwarding all the traffic.
I used @davinkevin configuration as example. This file should not forward the traffic that has |
Beta Was this translation helpful? Give feedback.
-
I'm going to convert this to a discussion since it seems to be a specific problem people are having that's unrelated to a k3s bug |
Beta Was this translation helpful? Give feedback.
-
Did anyone get the example flannel config to work? I've tried, but port 80 and 443 still get redirected to k3s for all IPs configured for my network interface. I'm a bit stuck here, because |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I am trying to bind the full cluster to a single ip. I have mulitple nics on my server and would like to run it as a single node cluster.
Can someone help me get the list of arguments to run it on a single ip only.
Currenlty once it starts, it seems to bind port 80/443 on every ip and responding with a 404 not found.
I already tried setting the following:
Beta Was this translation helpful? Give feedback.
All reactions