| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 | 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-ceph $i /var/lib/cephdonefor i in $CONTROL ; do  ./bin/wipe-ceph $i /var/lib/cephdonefor i in $DATA ; do  ./bin/wipe-node $idoneNODES=()for i in $DATA ; do  echo mindwipe $i  NODES+=(" -n $i ")donefor i in $CONTROL ; do  echo mindwipe $i  NODES+=(" -n $i ")done#exittalosctl 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 control plane nodes"for i in $CONTROL; do  while ! nc -z 192.168.0.11 50000 ; do    j=$((j+1))    echo $j  done  echo "Applying controlplane config to $i"  talosctl apply --insecure -f nodeconfig/controlplane.yaml -n $idonesleep 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 $jdone#echo "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 $i#doneecho "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
 |