colima icon indicating copy to clipboard operation
colima copied to clipboard

How to disable servicelb when start a kubernetes cluster?

Open changzhi1990 opened this issue 3 years ago • 1 comments

I would like to start a Kubernetes cluster without loadbalance service. So I use this command: colima start --kubernetes --edit

Then I add these configurations in the ending of the configuration file:

k3os:
  k3s_args:
  - "--disable"
  - "servicelb"
  - "--disable"
  - "traefik"

But it doesn't disable loadbalance service at all. The loadbalance service still working fine:

xxx@xxx-MacBook-Air ~ % kubectl get services
NAME         TYPE           CLUSTER-IP     EXTERNAL-IP    PORT(S)          AGE
kubernetes   ClusterIP      10.43.0.1      <none>         443/TCP          62s
nginx-lb     LoadBalancer   10.43.78.117   192.168.5.15   8080:32123/TCP   24s

Does something wrong with my colima config file?

Thanks

changzhi1990 avatar May 21 '22 14:05 changzhi1990

You created the nginx-lb service.

To remove it, you should either delete the service kubectl delete sec nginx-lb or change the service type from LoadBalancer

abiosoft avatar May 21 '22 19:05 abiosoft