diff --git a/pkg/component/controller/kine.go b/pkg/component/controller/kine.go index 2b3e31e67006..eb199b042db7 100644 --- a/pkg/component/controller/kine.go +++ b/pkg/component/controller/kine.go @@ -118,6 +118,8 @@ func (k *Kine) Start(ctx context.Context) error { // invalid URLs that are understood by kine. // https://github.com/k3s-io/kine/blob/v0.10.1/pkg/endpoint/endpoint.go#L277-L285 fmt.Sprintf("--listen-address=unix://%s", k.K0sVars.KineSocketPath), + // Enable metrics on port 2380. The default is 8080, which clashes with kube-router. + "--metrics-bind-address=:2380", }, UID: k.uid, GID: k.gid, diff --git a/pkg/component/controller/metrics.go b/pkg/component/controller/metrics.go index a76bd49e9f43..01412e60c8a5 100644 --- a/pkg/component/controller/metrics.go +++ b/pkg/component/controller/metrics.go @@ -205,7 +205,7 @@ func (m *Metrics) newKineJob() (*job, error) { return &job{ log: m.log.WithField("metrics_job", "kine"), - scrapeURL: "http://localhost:8080/metrics", + scrapeURL: "http://localhost:2380/metrics", name: "kine", hostname: m.hostname, scrapeClient: httpClient,