1
0
mirror of https://github.com/jcwimer/kubernetes-ansible synced 2026-05-18 10:04:45 +00:00

Added rook-ceph manual deployments

This commit is contained in:
2019-02-12 09:23:34 -05:00
parent 5463188d89
commit 14b2a8542a
13 changed files with 749 additions and 0 deletions

19
rook/ceph-rook-status.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
mon_namespace="rook-ceph"
mon_pod=$(kubectl -n "${mon_namespace}" get pods | grep mon0 | awk '{print $1}')
function run_command () {
local pod="${1}"
local namespace="${2}"
local command="${3}"
kubectl -n "${namespace}" exec -it "${pod}" -- ${command}
}
function run_command_on_mon () {
local command="${1}"
run_command "${mon_pod}" "${mon_namespace}" "${command}"
}
run_command_on_mon "ceph status"