From 93e054131b69c92cd66046461b9111def6bcabc5 Mon Sep 17 00:00:00 2001 From: topahadzi Date: Fri, 27 Oct 2023 17:03:38 +0700 Subject: [PATCH] fix error no current context --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index c3cf845..f33c217 100755 --- a/test.sh +++ b/test.sh @@ -13,7 +13,7 @@ if [ -z "$NODE_NAMES" ]; then fi for NODE_NAME in $NODE_NAMES; do - kubectl config get-contexts + kubectl config set-context default --cluster kubernetes --user=service-account kubectl config use-context default echo "Running command on node: $NODE_NAME" kubectl node_shell $NODE_NAME -- reboot