#!/bin/bash NODES=$(kubectl get node --show-labels -o wide | grep "arch=arm64" | awk '{ print $1 }') CMD="talosctl upgrade " for n in ${NODES}; do CMD+=" -n $n " done echo $CMD $CMD