From f7cdd5a9bd3ba83dbed140f872c603728cce095a Mon Sep 17 00:00:00 2001 From: gman Date: Tue, 20 Mar 2018 16:25:35 +0100 Subject: [PATCH] cephfs/deploy: added more convenience scripts --- deploy/cephfs/kubernetes/exec-bash.sh | 3 +++ deploy/cephfs/kubernetes/logs.sh | 3 +++ 2 files changed, 6 insertions(+) create mode 100755 deploy/cephfs/kubernetes/exec-bash.sh create mode 100755 deploy/cephfs/kubernetes/logs.sh diff --git a/deploy/cephfs/kubernetes/exec-bash.sh b/deploy/cephfs/kubernetes/exec-bash.sh new file mode 100755 index 000000000..e2e91d851 --- /dev/null +++ b/deploy/cephfs/kubernetes/exec-bash.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +kubectl exec -it $(kubectl get pods -l app=csi-cephfsplugin -o=name | head -n 1 | cut -f2 -d"/") -c csi-cephfsplugin bash diff --git a/deploy/cephfs/kubernetes/logs.sh b/deploy/cephfs/kubernetes/logs.sh new file mode 100755 index 000000000..9a07653cd --- /dev/null +++ b/deploy/cephfs/kubernetes/logs.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +kubectl logs $(kubectl get pods -l app=csi-cephfsplugin -o=name | head -n 1) -c csi-cephfsplugin