Replies: 1 comment 4 replies
-
--node-ip sets the node's private IP, overriding the default behavior of selecting the primary IP of the interface targeted by the default route. There is also the --flannel-external-ip flag, which when set on the server, configures flannel's behavior on all nodes in the cluster. Flannel will target the node's external IPs for network overlay traffic, instead of the private IP. This is intended for use in environments where the nodes cannot reach each other on their private IPs. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm (still) developing some automation around k3s management and it's not clear to me which network configurations a) are supported and b) translate to which combination of flags/configuration.
--node-ip
and--node-external-ip
and when should I use either?--flannel-iface
and how does it relate to the two IP overrides above?Or, more specifically: if I have two network interfaces on each node, where the first one (
eth1
) has a default route and the second one (eth2
) is an isolated LAN connecting the nodes, is it possible to tell k3s to use the second interface for inter-node traffic and the first one only for cluster ingress/egress (because it might be less performant / more costly)?Will the configuration differ depending on whether
eth1
directly has a globally routable IPv4 vs. a private IPv4 behind a NAT with forwarded ports?Or, by example:
Case 1
1.2.3.4
, eth2 =10.10.10.1/24
5.6.7.8
, eth2 =10.10.10.2/24
(Assume that node1 may reach node2 by either IP, but the second one is preferable.)
Case 2
10.1.2.3
(NATed from1.2.3.4
), eth2 =10.10.10.1/24
10.5.6.7
(NATed from5.6.7.8
), eth2 =10.10.10.2/24
(Assume that node1 may reach node2 either by 5.6.7.8 or 10.10.10.2 (second one being preferable), but not by 10.5.6.7.)
Apologies for a long-winded question.
Beta Was this translation helpful? Give feedback.
All reactions