Cloud service

    We use Crossplane as the cloud resource operator for Kubernetes. This tutorial has been verified with Crossplane . Please follow the Crossplane Documentation, especially the Install & Configure and Compose Infrastructure sections to configure Crossplane with your cloud account.

    First, register the workload type to KubeVela.

    Let’s first create an Appfile. We will claim an RDS instance with workload type of rds. You may need to change the variables of the database service to reflect your configuration.

    The database provision will take some time (> 5 min) to be ready. In our Appfile, we created another service called . The database will write all the connecting credentials in a secret which we put into the checkdb service as environmental variables. To verify the database configuration, we simply print out the environmental variables of the checkdb service:
    $ vela exec test-rds -- printenv
    After confirming the service is , we shall see the printout of the database information: