k0sctl icon indicating copy to clipboard operation
k0sctl copied to clipboard

Warn about bad cluster configurations

Open twz123 opened this issue 2 years ago • 3 comments

There have been some reports about high k0s resource consumption recently. Those reports were related to bad cluster configurations. What about adding some sort of warning into k0sctl once it detects such a configuration?

Things to warn about:

  • No load balancer (i.e. neither api.externalAddress is set nor network.nodeLocalLoadBalancing is enabled) for clusters with more than one controller (#950)
  • An even number of controllers when internal etcd is used
  • Node-local load balancing is enabled, but conflicts with other cluster settings.

Maybe also worth a warning, albeit there's no user report about it yet:

  • More than one controller is configured when using kine+sqlite.

twz123 avatar Mar 27 '23 07:03 twz123

hey there,

I think i typically felt into the first item :(

thanks for the warning,

xinity avatar Mar 27 '23 11:03 xinity

Added NLLB to the checklist. See k0sproject/k0s#4056.

twz123 avatar Feb 21 '24 10:02 twz123

I agree. I've tried to upgrade my K0s cluster from 1.28.4 to 1.29.2 and kubelet failed because of I use this featureGates deprecated option:

      spec:
        workerProfiles:
          - name: myprofile
            values:
              featureGates: 
                SeccompDefault: true

It would be interesting if k0sctl had warned me about this option before upgrading

jsalgado78 avatar Mar 06 '24 07:03 jsalgado78