mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Warn when missing cloud-provider on kube controller
This commit warns the user / gives better information that when using --cloud-provider="" on kube-controller, that services such as LoadBalancer will not work. However, despite the error, kube-controller will still run as normal. Fixes https://github.com/kubernetes/kubernetes/issues/12716 Fixes https://github.com/kubernetes/kubernetes/issues/11172 Fixes https://github.com/kubernetes/kubernetes/issues/27085
This commit is contained in:
parent
03be7117a4
commit
13cecd6e4a
@ -160,7 +160,7 @@ func (s *ServiceController) Run(serviceSyncPeriod, nodeSyncPeriod time.Duration)
|
||||
|
||||
func (s *ServiceController) init() error {
|
||||
if s.cloud == nil {
|
||||
return fmt.Errorf("ServiceController should not be run without a cloudprovider.")
|
||||
return fmt.Errorf("WARNING: no cloud provider provided, services of type LoadBalancer will fail.")
|
||||
}
|
||||
|
||||
balancer, ok := s.cloud.LoadBalancer()
|
||||
|
Loading…
Reference in New Issue
Block a user