Automating the application deployment environment
The complete Kubernetes cluster creation and configuring of the cross-cutting concerns will be automated using this step. We will develop an XR/claim API, which does the following:
- Provisions a remote GKE cluster
- Sets up Helm and the Kubernetes provider configuration for the GKE cluster
- Installs Argo CD using the Helm provider into the
product-a
GKE cluster
Let’s look at the XRD and composition to understand the API in detail (refer to the XRD and composition in the book’s GitHub repository). We will capture two mandatory parameters (node count and machine size). The size
parameter takes either BIG
or SMALL
as an enum value. Inside the composition, we have composed five resources. The following is the list of resources and their purpose:
- Cluster and NodePool: Cluster and NodePool are two relevant resources responsible for GKE cluster provisioning. It is very similar to the way we provisioned...