Using svcat to provision an Astra DB Database
The Open Service Broker API provides a standard RESTful interface for provisioning services from a provided catalog, such as Astra DB databases.
The Astra DB Service Broker supports only Kubernetes v1.13 and later. |
Prerequisites
-
A running Kubernetes cluster you can access via command line
-
Helm package manager for Kubernetes
-
DataStax Astra DB account with service account credentials
Provision your database using svcat
svcat provision <db_name> \
--class astra-database \
--plan <plan_option> \
--params-json \
'{
"cloud_provider": "<cloud_provider>",
"region": "<region>",
"capacity_units": 1,
"keyspace": "<keyspace_name>"
}'
You will see the following results:
Name: <db_name>
Namespace: default
Status:
Class:
Plan:
Parameters:
capacity_units: 1
cloud_provider: <cloud_provider>
keyspace: <keyspace_name>
region: <region>
Check your instance status
The service catalog handles the provisioning and communication with Astra DB. After a few minutes, check the instance status:
svcat get instances
You will see the following results:
NAME NAMESPACE CLASS PLAN STATUS
+-------+-----------+-------+------+--------+
<db_name> default Ready
Try it out
Get your secure connect bundle from the Connect page for your Astra DB database. Use this information to configure the driver. You can see this example in the Spring Reactive Pet Clinic sample app.