Manage Serverless Instances on StreamNative Cloud
- Ursa Engine is currently not available for Serverless instances.
- Serverless instances are currently only available on Google Cloud. More cloud providers will be supported in the future.
Create an instance
In the UI, you will create a Serverless instance and a cluster within the instance.
-
Navigate to the Organization Dashboard.
-
Click Instances on the left navigation pane to go to the Instances page.
-
Click + New Instance button to start the instance creation process.
-
On the Choose the deployment type for your instance page, click Deploy Serverless to start the instance creation process.
-
On the Instance Configuration page, enter the Instance Name and select the Cloud Provider.
Item Description Instance Name Enter a name for the instance. An instance name starts with a lowercase letter, contains any combination of lowercase letters (a-z), numbers (0-9), and hyphens (-), and must be 4-40 characters. Cloud Provider Select the cloud provider. Currently, Google Cloud is available. -
Click Cluster Location to start the cluster creation process.
-
On the Cluster Name page, enter the Cluster Name and select the Location from the dropdown list.
Item Description Cluster Name Enter a name for the cluster. A cluster name starts with a lowercase letter, contains any combination of lowercase letters (a-z), numbers (0-9), and hyphens (-), and must be 4-10 characters. Location Select the location from the dropdown list. The location represents the available regions in the designated cloud provider. -
Click Finish.
The cluster page appears, showing the cluster creation process. Depending on the chosen cloud provider and other settings, it might take a few seconds to several minutes to provision the cluster. Once the cluster is ready, the Cluster Dashboard page appears.
In the UI, you will create a Serverless instance and a cluster within the instance.
-
Navigate to the Organization Dashboard.
-
Click Instances on the left navigation pane to go to the Instances page.
-
Click + New Instance button to start the instance creation process.
-
On the Choose the deployment type for your instance page, click Deploy Serverless to start the instance creation process.
-
On the Instance Configuration page, enter the Instance Name and select the Cloud Provider.
Item Description Instance Name Enter a name for the instance. An instance name starts with a lowercase letter, contains any combination of lowercase letters (a-z), numbers (0-9), and hyphens (-), and must be 4-40 characters. Cloud Provider Select the cloud provider. Currently, Google Cloud is available. -
Click Cluster Location to start the cluster creation process.
-
On the Cluster Name page, enter the Cluster Name and select the Location from the dropdown list.
Item Description Cluster Name Enter a name for the cluster. A cluster name starts with a lowercase letter, contains any combination of lowercase letters (a-z), numbers (0-9), and hyphens (-), and must be 4-10 characters. Location Select the location from the dropdown list. The location represents the available regions in the designated cloud provider. -
Click Finish.
The cluster page appears, showing the cluster creation process. Depending on the chosen cloud provider and other settings, it might take a few seconds to several minutes to provision the cluster. Once the cluster is ready, the Cluster Dashboard page appears.
Edit a file named instance.yaml
with the following content:
metadata.name
: The name of the Serverless Instance. Replace<your-instance-name>
with the actual name.metadata.namespace
: The organization ID. Replace<your-org-id>
with the actual organization ID.spec.availabilityMode
: The availability mode of the instance. Currently, onlyregional
is supported.spec.poolRef
: Refer to the infrastructure pool that runs the Serverless instance. Currently it only supports Google Cloud.spec.type
: The type of the instance. For Serverless instances, set it toserverless
.
Run the following command to provision the Serverless Instance:
Once the command is completed, you should be able to see the following message:
Once you have created the instance, you can continue to create a cluster. See work with clusters for more information.
You can define the Serverless Instance in a Terraform configuration file as below:
organization
: The organization ID. Replace<your-organization>
with the actual organization ID.name
: The name of the Serverless Instance. Replace<your-instance-name>
with the actual name.availability_mode
: The availability mode of the instance. Currently, onlyregional
is supported.pool_name
: The name of the infrastructure pool that runs the Serverless instance. Currently it only supports Google Cloud (shared-gcp
).pool_namespace
: The namespace of the infrastructure pool (streamnative
).type
: The type of the instance. For Serverless instances, set it toserverless
.
See PulsarInstance for more information.
After you defined the instance, you can continue to define the Cluster resource. See work with clusters for more information.
Manage instances
To view instances created for an organization, follow these steps.
-
In the upper-right corner of the StreamNative Cloud Console, click your Profile and select Organizations.
-
Click the name of the organization you want to check.
-
Select Instances from the left navigation pane.
-
On the Instances page, you should able to see the list of instances available for the organization. In each Instance Card, you are able to see Instance Name, Status, Cloud Provider, Number of Clusters, and etc. You can also click the right arrow icon to go the Instance Dashboard page.
-
On the Instance Dashboard page, you are able to see the list of clusters available for the instance. In each Cluster Card, you are able to see Cluster Name, Status, Number of Topics, Number of Subscriptions, Number of Producers, Number of Consumers, and etc. You can also click the right arrow icon to go the Cluster Dashboard page.
To view instances created for an organization, follow these steps.
-
In the upper-right corner of the StreamNative Cloud Console, click your Profile and select Organizations.
-
Click the name of the organization you want to check.
-
Select Instances from the left navigation pane.
-
On the Instances page, you should able to see the list of instances available for the organization. In each Instance Card, you are able to see Instance Name, Status, Cloud Provider, Number of Clusters, and etc. You can also click the right arrow icon to go the Instance Dashboard page.
-
On the Instance Dashboard page, you are able to see the list of clusters available for the instance. In each Cluster Card, you are able to see Cluster Name, Status, Number of Topics, Number of Subscriptions, Number of Producers, Number of Consumers, and etc. You can also click the right arrow icon to go the Cluster Dashboard page.
To list of the all instances available for an organization, run the following command:
If you want to get more details about an instance, you can run the following command:
You should be able to get the details of the instance.
status.auth.oauth2.audience
: The audience of the Pulsar instance. It will be used for the Oauth2 authentication.status.auth.oauth2.issuerURL
: The oauth2 issuer URL of the Pulsar instance. It will be used for the Oauth2 authentication.- In the
conditions
section, you can see the status of the instance. If all conditions areTrue
, the instance is ready.
If you want to get more details about an instance, you can define a data source in the Terraform configuration file.
You should be able to get the details of the instance.
id
: The ID of the instance.availability_mode
: The availability mode of the instance. Currently, onlyregional
is supported.oauth2_audience
: The audience of the Pulsar instance. It will be used for the Oauth2 authentication.oauth2_issuer_url
: The oauth2 issuer URL of the Pulsar instance. It will be used for the Oauth2 authentication.pool_name
: The name of the infrastructure pool that runs the Serverless instance. Currently it only supports Google Cloud (shared-gcp
).pool_namespace
: The namespace of the infrastructure pool (streamnative
).ready
: The status of the instance. If the Pulsar instance is ready, it isTrue
.
You can checkout PulsarInstance for more information.
Delete an instance
You cannot delete an instance if there are resources associated with the instance.
-
Navigate to the Instances page.
-
Click the ellipsis at the top right corner of the instance card that you want to delete, and then click Delete.
-
In the Delete instance dialog, enter the instance name and then click Confirm.
-
Navigate to the Instances page.
-
Click the ellipsis at the top right corner of the instance card that you want to delete, and then click Delete.
-
In the Delete instance dialog, enter the instance name and then click Confirm.
There are two ways to delete an instance.
-
Delete the instance by the instance name.
-
Delete the instance by the instance manifest file
instance.yaml
.
Remove the instance resource from the Terraform configuration file and run terraform apply
to delete the instance.
Next steps
Related topics
- Check other types of instances: