Open wjf3121 opened 1 month ago
For testing you can use the DEV GCP project (permissions have been granted already):
$ gcloud auth application-default login
$ rwc byoc create --cidr 192.168.192.0/16 --cloud-account-id rwc-byoc-dev --name test
$ rwc byoc apply --name test
$ rwc cluster create --name demo --compute p-2c8g --compute-replica 1 --compactor p-1c4g --compactor-replica 1 --frontend p-1c4g --frontend-replica 1 --meta p-1c4g --meta-replica 1 --etcd p-1c4g --etcd-replica 1 --tier BYOC --etcd-size 8 --env test
$ rwc byoc terminate --name test
$ rwc byoc delete --name test
It's almost the same as cloud hosted clusters except that we need to specify the environment name (internally it's referred as cluster name): https://github.com/risingwavelabs/risingwave-cloud-openapi/blob/bf92af3073e53fff28f49dbccc59f9d76506f4cf/v1/mgmt.yaml#L908-L909