dazzling-lion-75594
04/01/2025, 2:05 PM-c
and -t
parameters so the node would join my existing cluster. I can see it joined the cluster successfully, but I get some pods created in my new node with SysctlForbidden
status. They're called svclb-**traefik-**
, so I believe it's the network setup trying to replicate svcs entrypoints and failing. If I describe some of these pods, I see a Warning event from kubelet with message forbidden sysctl: "net.ipv4.ip_forward" not whitelisted
.
K3D is running in my local PC, I'm using it to learn how to join and leave clusters, maybe to run k3s in HA etc. The pc uses arch linux up-to-date and docker 28.x. I see that net.ipv4.ip_forward
is already 1 in this machine, but I see no references to whitelists anywhere. How can I debug this situation?wide-garage-9465
04/01/2025, 2:09 PMsvclb*
pods are from the K3s built-in service loadbalancer implementation.
That's a way to provide services with type: LoadBalancer
in K3s. Basically it deploys proxy pods to the nodes (k3s containers in the case of k3s) with hostPort
bindings.dazzling-lion-75594
04/01/2025, 2:11 PMwide-garage-9465
04/01/2025, 2:14 PM--allowed-unsafe-sysctls=net.ipv4.ip_forward
(passed in as a k3s-arg). I wonder why this would be required though.
How did you create the cluster and how did you join the node? Can you paste the commands here, please?dazzling-lion-75594
04/01/2025, 2:18 PMcurl -sfL <https://get.k3s.io> | sh -
.
Today I've installed k3d in my local PC using wget -q -O - <https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh> | bash
, then I ran k3d node create k3d-arch-01 -c <https://url-to-server:6443> -t very-l0ng-tok3n
wide-garage-9465
04/01/2025, 2:23 PM--k3s-arg '--kubelet-arg=allowed-unsafe-sysctls=net.ipv4.ip_forward'
dazzling-lion-75594
04/01/2025, 2:24 PMdazzling-lion-75594
04/01/2025, 2:54 PM--k3s-arg
is documented in k3d.io docs, but my installed CLI says unknown flag: --k3s-arg
. Running k3d node create --help
also does not show this flag in list. There's a second flag also not available in my system, it's --runtime-ulimit
. I'm using k3d v5.0.0dazzling-lion-75594
04/01/2025, 2:54 PMwide-garage-9465
04/01/2025, 2:55 PMdazzling-lion-75594
04/01/2025, 2:56 PMdazzling-lion-75594
04/01/2025, 2:57 PMdazzling-lion-75594
04/01/2025, 3:05 PMdazzling-lion-75594
04/01/2025, 4:30 PMwide-garage-9465
04/01/2025, 5:22 PMdazzling-lion-75594
04/02/2025, 12:01 PM