From e630c7051bf32b2f86f304f024a3b94746491fde Mon Sep 17 00:00:00 2001 From: Kevin van Zonneveld Date: Fri, 13 Apr 2018 13:52:55 +0200 Subject: [PATCH] Add script to easily ssh into tusd container e.g. to empty out temp files while benchmarking /cc @acconut @ifedapoolarewaju @kiloreux --- .infra/console.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 .infra/console.sh diff --git a/.infra/console.sh b/.infra/console.sh new file mode 100755 index 0000000..df88705 --- /dev/null +++ b/.infra/console.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# Copyright (c) 2018, Transloadit Ltd. +# Authors: +# - Kevin van Zonneveld + +set -o pipefail +set -o errexit +set -o nounset +# set -o xtrace + +# # Set magic variables for current FILE & DIR +# __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +# __file="${__dir}/$(basename "${0}")" +# __base="$(basename ${__file})" +# __root="$(cd "$(dirname "${__dir}")" && pwd)" + +kubectl exec -it $(kubectl get pods --namespace tus -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}') --namespace tus -- /bin/sh \ No newline at end of file