hetzner-k3s icon indicating copy to clipboard operation
hetzner-k3s copied to clipboard

add flag to not disable metrics-server

Open Privatecoder opened this issue 4 months ago • 5 comments

Hi Vito,

what is the specific reason for --disable metrics-server in master_install_script.sh?

In order to see instance metrics in Rancher for example one needs to remove this line from the auto-generated k3s.service but it will be overwritten eventually (for example on upgrading the cluster nodes).

Can we implement a flag to not disable metrics-server when creating the cluster through cluster_config.yaml?

Cheers Max

Privatecoder avatar Mar 02 '24 13:03 Privatecoder

Hi! I have added the metrics server manually:

https://kubernetes-sigs.github.io/metrics-server/

I think that some folks run a more "complete" monitoring solution like Grafana/Prometheus. If you do that, then you would not need the metrics server.

michaelfresco avatar Mar 20 '24 16:03 michaelfresco

Well, you could just go ahead and re-enable metrics-server by removing the --disable metrics-server in the masters k3s.service.

Also Rancher uses metrics-server to display node-metrics in the overview..

I would probably add the option to enable / disable this (along with the other disabled options) as flags in the cluster_configuration.yaml

Privatecoder avatar Mar 20 '24 16:03 Privatecoder

I think that Vito Botta settled on pretty sane defaults. You basically get a clean cluster, without too much overhead. It's not that hard to manually apply that metrics server, if you really needed. (ps. if it really bothers you, maybe create a PR and try to add this feature?)

michaelfresco avatar Mar 24 '24 20:03 michaelfresco

@michaelfresco you guessed it right. The goal was to get a more "Standard" cluster, with not too much k3s specific things, so I have kept the extra software installed automatically to a minimum like CCM, CSI, autoscaler and upgrade controller. But this is a small thing that I can do with a simple setting so I will add it.

vitobotta avatar Apr 12 '24 13:04 vitobotta

Project card ref. https://github.com/users/vitobotta/projects/4/views/1?pane=issue&itemId=59923702

vitobotta avatar Apr 16 '24 12:04 vitobotta