You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environmental Info:
k3s version v1.23.10+k3s1 (826b949)
go version go1.17.13
Node(s) CPU architecture, OS, and Version:
Linux r420 5.15.47 #1-NixOS SMP Tue Jun 14 16:36:28 UTC 2022 x86_64 GNU/Linux
Cluster Configuration:
Single server.
Describe the bug:
I am trying to pass through arguments to the kube scheduler, controller manager, and proxy in order to fix the known prometheus-stack issue here. But the values I provide to k3s server do not seem to be working.
Since I'm using NixOS, most of my configuration is passed via command line flags. To avoid duplicating my Nix config here, here's my ExecStartEx from SystemD.
But when I check the logs for these arguments, I see that they are not being passed directly to the underlying services. For example, here are the logs for kube-controller-manager.
This is a problem with how urfave/cli parses args and flags. Boolean flags (such as --etcd-expose-metrics) don't consume the following argument from argv, so everything from true onwards is treated as args, not as flags. Any leftover args are ignored.
tl;dr you can do --etcd-expose-metrics or --etcd-expose-metrics=true but not --etcd-expose-metrics true
Once you fix that, k3s will exit with another error, due to your use of an invalid controller-manager flag:
Environmental Info:
k3s version v1.23.10+k3s1 (826b949)
go version go1.17.13
Node(s) CPU architecture, OS, and Version:
Linux r420 5.15.47 #1-NixOS SMP Tue Jun 14 16:36:28 UTC 2022 x86_64 GNU/Linux
Cluster Configuration:
Single server.
Describe the bug:
I am trying to pass through arguments to the kube scheduler, controller manager, and proxy in order to fix the known prometheus-stack issue here. But the values I provide to
k3s server
do not seem to be working.Since I'm using NixOS, most of my configuration is passed via command line flags. To avoid duplicating my Nix config here, here's my
ExecStartEx
from SystemD.But when I check the logs for these arguments, I see that they are not being passed directly to the underlying services. For example, here are the logs for kube-controller-manager.
Steps To Reproduce:
Expected behavior:
I expected the bind-address to be set to 0.0.0.0 for all services.
Actual behavior:
No arguments appear to have been passed.
Additional context / logs:
Note: Some command line flags are working, so it's not just a nixos issue. The
--node-label app=zigbee-controller
is working as expected.The text was updated successfully, but these errors were encountered: