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:
ryan4yin | 二花 authored and GitHub committed 2026-09-24 11:13:59 +08:00
1 parent c752703488
commit 069e081fec
8 files changed
+89 -15

No files matched your search

+6
View File
@@ -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