Add script to easily ssh into tusd container

e.g. to empty out temp files while benchmarking /cc @acconut @ifedapoolarewaju @kiloreux
This commit is contained in:
Kevin van Zonneveld 2018-04-13 13:52:55 +02:00
parent c470fe3a9d
commit e630c7051b
1 changed files with 17 additions and 0 deletions

17
.infra/console.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Copyright (c) 2018, Transloadit Ltd.
# Authors:
# - Kevin van Zonneveld <kevin@transloadit.com>
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