An example of POSTGRES provisioning
It's time that we go through an actual provisioning experience. We will create a POSTGRES instance in GCP using CloudSQLInstance
, an MR available in the GCP Crossplane provider. Direct provisioning of infrastructure resources with an MR or XR is not a good strategy. Instead, we should be using the claim object created with XR for provisioning. The next chapter is devoted to covering these topics. Currently, we are using an MR for resource provisioning to understand the basic building blocks of Crossplane. We are going to use the following attributes while provisioning the resource:
- The name of the resource provisioned should be
db-gcp
. - The region of provisioning will be
us-central
. - We will request POSTGRES version 9.6 –
POSTGRES_9_6
. - The size of the data disk should be 20 GB.
- The GCP tier of the database should be
db-g1-small
. - Create the resource under the
gcp-credentials-project-1
provider configuration.
...