mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Report node.Ready == false until cbr0 is configured correctly
This commit is contained in:
parent
c312d8230e
commit
197115853e
@ -1819,7 +1819,9 @@ func (kl *Kubelet) setNodeStatus(node *api.Node) error {
|
||||
|
||||
networkConfigured := true
|
||||
if kl.configureCBR0 {
|
||||
if err := kl.reconcileCBR0(node.Spec.PodCIDR); err != nil {
|
||||
if len(node.Spec.PodCIDR) == 0 {
|
||||
networkConfigured = false
|
||||
} else if err := kl.reconcileCBR0(node.Spec.PodCIDR); err != nil {
|
||||
networkConfigured = false
|
||||
glog.Errorf("Error configuring cbr0: %v", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user