mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
skip nic that are in failing state
This commit is contained in:
parent
ec37c0f643
commit
957b6be80d
@ -52,7 +52,8 @@ const (
|
|||||||
InternalLoadBalancerNameSuffix = "-internal"
|
InternalLoadBalancerNameSuffix = "-internal"
|
||||||
|
|
||||||
// nodeLabelRole specifies the role of a node
|
// nodeLabelRole specifies the role of a node
|
||||||
nodeLabelRole = "kubernetes.io/role"
|
nodeLabelRole = "kubernetes.io/role"
|
||||||
|
nicFailedState = "Failed"
|
||||||
|
|
||||||
storageAccountNameMaxLength = 24
|
storageAccountNameMaxLength = 24
|
||||||
)
|
)
|
||||||
@ -619,6 +620,11 @@ func (as *availabilitySet) ensureHostInPool(serviceName string, nodeName types.N
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if nic.ProvisioningState != nil && *nic.ProvisioningState == nicFailedState {
|
||||||
|
glog.V(3).Infof("ensureHostInPool skips node %s because its primdary nic %s is in Failed state", nodeName, nic.Name)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
var primaryIPConfig *network.InterfaceIPConfiguration
|
var primaryIPConfig *network.InterfaceIPConfiguration
|
||||||
primaryIPConfig, err = getPrimaryIPConfig(nic)
|
primaryIPConfig, err = getPrimaryIPConfig(nic)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user