mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
fix(k3s): bind control-plane metrics to node addresses (#311)
* fix(k3s): bind control-plane metrics to node addresses * docs(microvm): document remote deployment workflow * fix(microvm): deploy runner before guest switch * docs(microvm): standardize on just deployment commands * docs(k3s): explain control-plane metrics address * docs(hosts): move generic build commands to host guide * docs: simplify command operation guidance
This commit is contained in:
1 parent
c752703488
commit
069e081fec
8 files changed
+89
-15
No files matched your search
@@ -12,6 +12,8 @@
|
||||
clusterInit ? false,
|
||||
kubeletExtraArgs ? [ ],
|
||||
k3sExtraArgs ? [ ],
|
||||
# Bind embedded K3s control-plane HTTPS metrics to the node address so vmagent can scrape them.
|
||||
metricsBindAddress ? null,
|
||||
nodeLabels ? [ ],
|
||||
nodeTaints ? [ ],
|
||||
disableFlannel ? true,
|
||||
@@ -76,6 +78,10 @@ in
|
||||
++ (map (label: "--node-label=${label}") nodeLabels)
|
||||
++ (map (taint: "--node-taint=${taint}") nodeTaints)
|
||||
++ (map (arg: "--kubelet-arg=${arg}") kubeletExtraArgs)
|
||||
++ (lib.optionals (metricsBindAddress != null) [
|
||||
"--kube-controller-manager-arg=bind-address=${metricsBindAddress}"
|
||||
"--kube-scheduler-arg=bind-address=${metricsBindAddress}"
|
||||
])
|
||||
++ (lib.optionals disableFlannel [ "--flannel-backend=none" ])
|
||||
++ k3sExtraArgs;
|
||||
in
|
||||
|
||||
Reference in new issue
Block a user