11 lines
264 B
Bash
11 lines
264 B
Bash
|
#!/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}') -- "$@"
|