A GKE blueprint contains custom resources you can combine to specify the intent to deploy a GKE cluster. The following list defines the role of each custom resource:
ContainerCluster
: creates a private GKE cluster with a provisioned service mesh.ClusterInit
: initializes the cluster's lifecycle that Telecom Network Automation (Telecom Network Automation) manages. This lifecycle includes installing Telecom Network Automation components on the GKE cluster.SourceRepoRepository
andRepository
: sets up the GitOps pipeline for the created GKE cluster using Cloud Source Repository and Porch along with ConfigSync, installed from the previous resource.ContainerNodePool
: creates a node pool with Ubuntu OS, SSD disk type ande2-standard-2 machine
type as default. You can edit these details.
When creating a deployment, you can customize the blueprint using following
parameters in the setters.yaml
file:
Parameter | Description |
---|---|
project-id
|
The project id of the current project. |
project-num
|
The project number of the current project. |
cluster-name |
The name of the GKE cluster. |
location |
The compute location of the cluster |
master-ip-range
|
The IP CIDR block that GKE main nodes use |
cluster-ipv4-cidr-blocks |
The IP CIDR block that pods use. |
services-ipv4-cidr-blocks
|
The IP CIDR block that services use. |
compute-network-name
|
The name of the compute network. Change this name if you don't intend to use a VPC where an Orchestration cluster is created for the GKE cluster. |
clients-ipv4-cidr-blocks
|
The IP CIDR block for clients that access the cluster |
node-count
|
The number of nodes in the node pool per zone. If a regional cluster is created, the number of nodes in the node pool increases to three times the original amount. |
nodepool-name |
The name of the node pool. |
node-machine-type |
The type of the node machine. |
GKE blueprints
Create a GKE blueprint
- From the navigation menu, click Blueprints.
- From the drop-down menu, select your preferred Orchestration cluster.
- Click Import from Library.
- Select GKE Cluster blueprint.
- Click Add Blueprint.
- On the next page, specify a name for the blueprint.
- Optionally, add any labels you need.
- Click Create. Your blueprint appears in the Draft Blueprints list.
Edit a blueprint
- From the navigation menu, click Blueprints > Drafts Blueprint.
- Select your preferred blueprint. A blueprint editor appears.
- Edit the
cluster.yaml
andnodepool.yaml
files. Afterwards, click Save File.
Propose a blueprint
- From the navigation menu, click Blueprints > Drafts Blueprint.
- Select your preferred blueprint. A blueprint editor appears.
- Click Propose. The status of the blueprint updates to Proposed.
Approve a blueprint
- From the navigation menu, click Blueprints.
- Click the Action icon on your preferred blueprint.
- Select Approve. The blueprint appears in Approved Blueprints.
GKE deployment
Create a GKE Deployment
- From the navigation menu, click Blueprints > Approved Blueprints.
- Click the GKE blueprint you want to deploy.
- Click Create Deployment.
- Provide a name for the deployment.
- Click Create Deployment. The deployment appears in Draft Deployment.
Edit a GKE deployment
- From the navigation menu, click Blueprints.
- Select the GKE deployment you want to edit. A deployment editor appears.
- Edit the
setters.yaml
file. - Afterwards, click Save File.
Apply a GKE deployment
- From the navigation menu, click Blueprints.
- Select the name of the GKE deployment you want to apply. A deployment editor appears.
- Click Deploy. A confirmation dialog appears.
- Confirm the deployment by clicking Deploy. The deployment appears in Applied Deployment.
Delete a GKE cluster
- From the navigation menu, click Deployments > Applied Deployments.
- Select the GKE deployment you want to delete.
- Click Delete.
- Confirm the deletion of the deployment.