colima
colima copied to clipboard
How to disable servicelb when start a kubernetes cluster?
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
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