equinix-labs / terraform-equinix-metal-eks-anywhere

EKS Anywhere on Equinix Metal (Baremetal)
https://deploy.equinix.com/labs/terraform-equinix-metal-eks-anywhere/
Apache License 2.0
10 stars 5 forks source link

Automate the reboot of nodes #34

Closed displague closed 2 years ago

displague commented 2 years ago

The Metal nodes were previously set to automatically reboot. That automation was broken by later changes.

Trigger the reboots through automation.

displague commented 2 years ago

The reboot provision block could be moved to the create_cluster.sh script as a background task:

https://github.com/equinix-labs/terraform-equinix-metal-eks-anywhere/blob/f5fef49a026fdf88620d25bad6ba5b32f4c9831f/main.tf#L191-L218

# cluster create script
(sleep 300 && reboot_nodes.sh ) &
# more of the cluster create script
# eksctl waits for the nodes here
displague commented 2 years ago

We should get a message that the nodes will be rebooted from the script change above.

If not, we'll want to inform the user when this message appears. (we may need to update the README.md to do this)

null_resource.create_cluster (remote-exec): Creating new workload cluster