deploy: use osd as failureDomain for ec pool

in Rook 1.8 templates the failureDomain is
set to host for ec pools, as we are using
single node minikube cluster, setting the
failureDomain for osd.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2022-01-25 11:54:49 +05:30 committed by mergify[bot]
parent 0d6db19252
commit 8a479d3865

View File

@ -130,6 +130,7 @@ function delete_block_pool() {
function create_block_ec_pool() { function create_block_ec_pool() {
curl -o block-pool-ec.yaml "${ROOK_URL}/pool-ec.yaml" curl -o block-pool-ec.yaml "${ROOK_URL}/pool-ec.yaml"
sed -i "s/ec-pool/${ROOK_BLOCK_EC_POOL_NAME}/g" block-pool-ec.yaml sed -i "s/ec-pool/${ROOK_BLOCK_EC_POOL_NAME}/g" block-pool-ec.yaml
sed -i "s/failureDomain: host/failureDomain: osd/g" block-pool-ec.yaml
kubectl_retry create -f "./block-pool-ec.yaml" kubectl_retry create -f "./block-pool-ec.yaml"
rm -f "./block-pool-ec.yaml" rm -f "./block-pool-ec.yaml"