[k8s] add command to find and run commands in the ceph-toolbox
This commit is contained in:
parent
7ff34081ac
commit
f2df5e8c48
1 changed files with 10 additions and 0 deletions
10
k8s/rook-toolbox.sh
Executable file
10
k8s/rook-toolbox.sh
Executable 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}') -- "$@"
|
Loading…
Reference in a new issue