mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
e2e: Check that node is healthy before isolating from master
We simulate network failure, check the node is offline, and then check it recovers. This adds a check that the node is online before simulating network failure.
This commit is contained in:
parent
5bd82ffe6d
commit
8ce6c2db96
@ -375,6 +375,9 @@ func performTemporaryNetworkFailure(c *client.Client, ns, rcName string, replica
|
||||
}
|
||||
}()
|
||||
|
||||
Logf("Waiting for node %s to be ready", node.Name)
|
||||
waitForNodeToBe(c, node.Name, true, 2*time.Minute)
|
||||
|
||||
// The command will block all outgoing network traffic from the node to the master
|
||||
// When multi-master is implemented, this test will have to be improved to block
|
||||
// network traffic to all masters.
|
||||
|
Loading…
Reference in New Issue
Block a user