mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 14:11:14 +00:00
skip nic that are in failing state
This commit is contained in:
@@ -53,6 +53,7 @@ const (
|
|||||||
|
|
||||||
// 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 {
|
||||||
|
Reference in New Issue
Block a user