Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
{
"id": "498ae72f-411f-11eb-9d07-046c59cc737e",
"items": [
{
"id": "498ae72f-411f-11eb-9d07-046c59cc737e",
"properties": {
"clusterId": "498ae72f-411f-11eb-9d07-046c59cc737e",
"earliestRecoveryTargetTime": "2021-10-23T01:21:10Z",
"size": 2052,
"baseBackups": [
{
"created": "2020-12-10T13:37:50+01:00",
"size": 543
}
]
}
}
],
"offset": 200,
"limit": 100,
"total": 200,
"_links": {
"prev": "<PREVIOUS-PAGE-URI>",
"self": "<THIS-PAGE-URI>",
"next": "<NEXT-PAGE-URI>"
}
}curl -X 'GET' \
'https://mariadb.de-txl.ionos.com/backups?limit=100&offset=200' \
-H 'accept: application/json'{
"id": "498ae72f-411f-11eb-9d07-046c59cc737e",
"items": [
{
"id": "498ae72f-411f-11eb-9d07-046c59cc737e",
"properties": {
"clusterId": "498ae72f-411f-11eb-9d07-046c59cc737e",
"earliestRecoveryTargetTime": "2021-10-23T01:21:10Z",
"size": 2052,
"baseBackups": [
{
"created": "2020-12-10T13:37:50+01:00",
"size": 543
}
]
}
}
],
"offset": 200,
"limit": 100,
"total": 200,
"_links": {
"prev": "<PREVIOUS-PAGE-URI>",
"self": "<THIS-PAGE-URI>",
"next": "<NEXT-PAGE-URI>"
}
}curl -X 'POST' \
'https://mariadb.de-txl.ionos.com/clusters/{clusterId}/restore' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"backupId": "498axce2f-411f-11eb-9d07-046c80cc737e",
"recoveryTargetTime": "2020-12-10T13:37:50+01:00"
}'curl -X 'GET' \
'https://mariadb.de-txl.ionos.com/clusters/498ae72f-411f-11eb-9d07-046c59cc737e' \
-H 'accept: application/json'curl -X 'GET' \
'https://mariadb.de-txl.ionos.com/backups/{backupId}' \
-H 'accept: application/json'{
"type": "cluster",
"id": "498ae72f-411f-11eb-9d07-046c59cc737e",
"metadata": {
"createdDate": "2020-12-10T13:37:50+01:00",
"createdBy": "[email protected]",
"createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedDate": "2020-12-11T13:37:50+01:00",
"lastModifiedBy": "[email protected]",
"lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"state": "AVAILABLE"
},
"properties": {
"displayName": "MariaDB cluster",
"mariadbVersion": "10.6",
"dnsName": "ma-yourcluster.mariadb.region.ionos.com",
"instances": 2,
"ram": 2,
"cores": 4,
"storageSize": 10,
"connections": [
{
"datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
"lanId": "2",
"cidr": "192.168.1.100/24"
}
],
"maintenanceWindow": {
"time": "16:30:59",
"dayOfTheWeek": "Monday"
}
}
}{
"id": "498ae72f-411f-11eb-9d07-046c59cc737e",
"properties": {
"clusterId": "498ae72f-411f-11eb-9d07-046c59cc737e",
"earliestRecoveryTargetTime": "2021-10-23T01:21:10Z",
"size": 2052,
"baseBackups": [
{
"created": "2020-12-10T13:37:50+01:00",
"size": 543
}
]
}
}curl -X 'DELETE' \
'https://mariadb.de-txl.ionos.com/clusters/498ae72f-411f-11eb-9d07-046c59cc737e' \
-H 'accept: application/json'curl -X 'POST' \
'https://mariadb.de-txl.ionos.com/clusters' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"properties": {
"mariadbVersion": "10.6",
"instances": 2,
"cores": 4,
"ram": 2,
"storageSize": 10,
"connections": [
{
"datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
"lanId": "2",
"cidr": "192.168.1.100/24"
}
],
"displayName": "MariaDB cluster",
"maintenanceWindow": {
"time": "16:30:59",
"dayOfTheWeek": "Monday"
},
"credentials": {
"username": "db-admin",
"password": "TopSecret!"
}
}
}'{
"type": "cluster",
"id": "498ae72f-411f-11eb-9d07-046c59cc737e",
"metadata": {
"createdDate": "2020-12-10T13:37:50+01:00",
"createdBy": "[email protected]",
"createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedDate": "2020-12-11T13:37:50+01:00",
"lastModifiedBy": "[email protected]",
"lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"state": "BUSY"
},
"properties": {
"displayName": "MariaDB cluster",
"mariadbVersion": "10.6",
"dnsName": "ma-yourcluster.mariadb.region.ionos.com",
"instances": 2,
"ram": 2,
"cores": 4,
"storageSize": 10,
"connections": [
{
"datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
"lanId": "2",
"cidr": "192.168.1.100/24"
}
],
"maintenanceWindow": {
"time": "16:30:59",
"dayOfTheWeek": "Monday"
}
}
} {
"type": "cluster",
"id": "498ae72f-411f-11eb-9d07-046c59cc737e",
"metadata": {
"createdDate": "2020-12-10T13:37:50+01:00",
"createdBy": "[email protected]",
"createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedDate": "2020-12-11T13:37:50+01:00",
"lastModifiedBy": "[email protected]",
"lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"state": "DESTROYING"
},
"properties": {
"displayName": "MariaDB cluster",
"mariadbVersion": "10.6",
"dnsName": "ma-yourcluster.mariadb.region.ionos.com",
"instances": 2,
"ram": 2,
"cores": 4,
"storageSize": 10,
"connections": [
{
"datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
"lanId": "2",
"cidr": "192.168.1.100/24"
}
],
"maintenanceWindow": {
"time": "16:30:59",
"dayOfTheWeek": "Monday"
}
}
}ionosctl k8s nodepool create --cluster-id xyz-my-cluster --datacenter-id xyz-my-datacenter --lan-ids 3 --dhcp=true --name=my_nodepool# pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: connectivity-test
labels:
role: connectivity-test
spec:
containers:
- name: connectivity-test
image: mysql
stdin: true
tty: true
command:
- "/bin/bash"kubectl attach -it connectivity-test
mysql -u <USERNAME> -p -h <DNS_NAME> --execute \"SHOW DATABASES;\"curl -X 'POST' \
'https://mariadb.de-txl.ionos.com/clusters' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
{
"properties": {
"mariadbVersion": "10.6",
"instances": 3,
"cores": 4,
"ram": 4,
"storageSize": 10,
"connections": [
{
"datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
"lanId": "2",
"cidr": "192.168.1.100/24"
}
],
"displayName": "MariaDB cluster",
"maintenanceWindow": {
"time": "16:30:59",
"dayOfTheWeek": "Monday"
},
"credentials": {
"username": "cluster_admin",
"password": "my-t0p-secret-password"
},
"fromBackup": {
"backupId": "498ae72f-411f-11eb-9d07-046c59cc737e",
"recoveryTargetTime": "2020-12-10T13:37:50+01:00"
}
}
}'{
"id": "498ae72f-411f-11eb-9d07-046c59cc737e",
"metadata": {
"createdDate": "2020-12-10T13:37:50+01:00",
"createdBy": "[email protected]",
"createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedDate": "2020-12-11T13:37:50+01:00",
"lastModifiedBy": "[email protected]",
"lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"state": "AVAILABLE"
},
"properties": {
"displayName": "MariaDB cluster",
"mariadbVersion": "10.6",
"dnsName": "ma-yourcluster.mariadb.region.ionos.com",
"instances": 3,
"ram": 4,
"cores": 4,
"storageSize": 10,
"connections": [
{
"datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
"lanId": "2",
"cidr": "192.168.1.100/24"
}
],
"maintenanceWindow": {
"time": "16:30:59",
"dayOfTheWeek": "Monday"
}
}
}ssh command as follows and the credentials that you set in the POST request: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..."
donessh -i .ignore.id_rsa "root@${CUSTOMER_PUBLIC_IP}"DATABASE_IP="CUSTOMER_PUBLIC_IP"
read -p "DNS Name: " DNS_NAMECREATE USER user@abc IDENTIFIED BY 'password';
GRANT SELECT ON table.t2 to 'user'@'%';{
"type": "collection",
"id": "498ae72f-411f-11eb-9d07-046c59cc737e",
"items": [
{
"type": "cluster",
"id": "498ae72f-411f-11eb-9d07-046c59cc737e",
"metadata": {
"createdDate": "2020-12-10T13:37:50+01:00",
"createdBy": "[email protected]",
"createdByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"lastModifiedDate": "2020-12-11T13:37:50+01:00",
"lastModifiedBy": "[email protected]",
"lastModifiedByUserId": "87f9a82e-b28d-49ed-9d04-fba2c0459cd3",
"state": "AVAILABLE"
},
"properties": {
"displayName": "MariaDB cluster",
"mariadbVersion": "10.6",
"dnsName": "ma-yourcluster.mariadb.region.ionos.com",
"instances": 2,
"ram": 2,
"cores": 4,
"storageSize": 10,
"connections": [
{
"datacenterId": "5a029f4a-72e5-11ec-90d6-0242ac120003",
"lanId": "2",
"cidr": "192.168.1.100/24"
}
],
"maintenanceWindow": {
"time": "16:30:59",
"dayOfTheWeek": "Monday"
}
}
}
],
"offset": 200,
"limit": 100,
"_links": {
"prev": "<PREVIOUS-PAGE-URI>",
"self": "<THIS-PAGE-URI>",
"next": "<NEXT-PAGE-URI>"
}
}