| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 | ARM=$(kubectl get nodes  -o wide --show-labels | grep -v STATUS | grep -v master | grep arm64 | awk '{print $1}')X86=$(kubectl get nodes  -o wide --show-labels | grep -v STATUS | grep -v control-plane | grep amd64 | awk '{print $1}')CONTROL=$(kubectl get nodes  -o wide --show-labels | grep -v STATUS | grep control-plane| awk '{print $1}')DATA=$(kubectl get nodes  -o wide --show-labels | grep -v STATUS | grep -v master| awk '{print $1}')for i in $DATA ; do  ./bin/wipe-node $idoneNODES=()for i in $DATA ; do  echo mindwipe $i  NODES+=(" -n $i ")donetalosctl reset --system-labels-to-wipe STATE --system-labels-to-wipe EPHEMERAL --graceful=false --reboot ${NODES[@]}echo "Waiting for master node to come online"j=0while ! nc -z 192.168.0.11 50000 ; do  j=$((j+1))  echo $jdonesleep 10echo "Applying config to 192.168.0.11"talosctl apply --insecure -f nodeconfig/controlplane.yaml -n 192.168.0.11sleep 10j=0while ! nc -z 192.168.0.11 50000 ; do  j=$((j+1))  echo $jdoneecho "bootstrap master"talosctl bootstrap -n 192.168.0.11sleep 20j=0while ! nc -z 192.168.0.11 6443 ; do  j=$((j+1))  echo $jdoneecho "applying configs for x86 workers"for i in $X86 ; do  echo "talosctl apply --insecure -f nodeconfig/worker.yaml -n $i"  talosctl apply --insecure -f nodeconfig/worker.yaml -n $idoneecho "sleeping 30"sleep 30echo "applying configs for arm workers"for i in $ARM ; do  echo "talosctl apply --insecure -f nodeconfig/pi.yaml -n $i"  talosctl apply --insecure -f nodeconfig/pi.yaml -n $idone
 |