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