ungleich-tools/k8s/rook-toolbox.sh

11 lines
264 B
Bash
Raw Normal View History

#!/bin/sh
# Nico Schottelius, 2023-06-09
# Enter the ceph toolbox
if [ -z "$@" ]; then
# set $1 to bash
set -- bash
fi
kubectl exec -n rook-ceph -ti $(kubectl -n rook-ceph get pods -l app=rook-ceph-tools -o jsonpath='{.items[*].metadata.name}') -- "$@"