From 633c29b62cf7dcc445a2e88436e625e3fd74de4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Wed, 21 Feb 2024 22:04:33 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Install=20Ngrok=20binary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prepare-labs/lib/commands.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/prepare-labs/lib/commands.sh b/prepare-labs/lib/commands.sh index ec1b797b..e9f0c27f 100644 --- a/prepare-labs/lib/commands.sh +++ b/prepare-labs/lib/commands.sh @@ -829,6 +829,14 @@ EOF sudo tar -zxvf- -C /usr/local/bin kubent kubent --version fi" + + # Ngrok. Note that unfortunately, this is the x86_64 binary. + # We might have to rethink how to handle this for multi-arch environments. + pssh " + if [ ! -x /usr/local/bin/ngrok ]; then + curl -fsSL https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz | + sudo tar -zxvf- -C /usr/local/bin ngrok + fi" } _cmd kubereset "Wipe out Kubernetes configuration on all nodes"