[k8s] add command to find and run commands in the ceph-toolbox

This commit is contained in:
Nico Schottelius 2023-06-09 08:55:49 +02:00
parent 7ff34081ac
commit f2df5e8c48

10
k8s/rook-toolbox.sh Executable file
View file

@ -0,0 +1,10 @@
#!/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}') -- "$@"