Verify the Status of a MariaDB Cluster
while [[ $(curl -sXGET "https://mariadb.de-txl.ionos.com/clusters/${UUID}" -H "Authorization: Bearer ${TOKEN}" | jq -r .metadata.state) != "AVAILABLE" ]]; do
sleep 5
clear
echo -e "Cluster status:\n"
kg mariadbcluster "${UUID}" -ojsonpath='{.status.conditions}' | yq -P
echo -e "\ncluster is not available yet, waiting 5 seconds..."
doneInitialize the database and connect it to the cluster
ssh -i .ignore.id_rsa "root@${CUSTOMER_PUBLIC_IP}"DATABASE_IP="CUSTOMER_PUBLIC_IP"
read -p "DNS Name: " DNS_NAMEDescription
Command
Manage access
Create Users
Last updated
Was this helpful?