[k8s] add script to connect to ceph pod
This commit is contained in:
parent
dc641911d4
commit
7f712a2c98
1 changed files with 7 additions and 0 deletions
7
k8s/k8s-ceph-tools.sh
Normal file
7
k8s/k8s-ceph-tools.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue