b6b6957a94
New charts: * ceph-mon * ceph-osd * ceph-client Deleted: * ceph Co-authored-by: Randeep Jalli <rj2083@att.com> Co-authored-by: Pete Birley <pete@port.direct> Change-Id: Ic476f5839e749f5765d44d46bcfd4eae9ef96849
15 lines
306 B
Smarty
15 lines
306 B
Smarty
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
NUMBER_OF_MONS=$(ceph mon stat | awk '$3 == "mons" {print $2}')
|
|
if [ "${NUMBER_OF_MONS}" -gt "1" ]; then
|
|
if [[ ${K8S_HOST_NETWORK} -eq 0 ]]; then
|
|
ceph mon remove "${POD_NAME}"
|
|
else
|
|
ceph mon remove "${NODE_NAME}"
|
|
fi
|
|
else
|
|
echo "we are the last mon, not removing"
|
|
fi
|