Using svcat to provision an Astra Database

The Open Service Broker API provides a standard RESTful interface for provisioning services from a provided catalog, such as Astra databases.

The Astra Service Broker supports only Kubernetes v1.13 and later.

Prerequisites

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. 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 database. Use this information to configure the driver. You can see this example in the Spring Reactive Pet Clinic sample app.