[k8s] add script to connect to ceph pod

This commit is contained in:
Nico Schottelius 2023-04-20 13:52:07 +02:00
parent dc641911d4
commit 7f712a2c98
1 changed files with 7 additions and 0 deletions

7
k8s/k8s-ceph-tools.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# Connect to the pod running ceph-tools
POD=$(kubectl -n rook-ceph get pods \
-l app=rook-ceph-tools --output=jsonpath={.items..metadata.name})
kubectl -n rook-ceph exec -ti $POD -- bash