The following are some highlights of Google Cloud Platform (GCP) clusters provisioned by Palette:
- On the GCP cluster, control plane nodes and worker nodes are placed within a single private subnet spanning across different availability zones within a region.
- A new VPC Network is created with all the network infrastructure components like Cloud NAT and a Cloud Router. In addition, firewall rules are created to protect all the API endpoints.
- API server endpoint is exposed through a Global Load Balancer. Applications running with the cluster use a Regional Load Balancer to expose the load-balancer services.
The following are required for deploying a workload cluster on GCP:
- You must have an active GCP service account with all the permissions listed below in the GCP Cloud Account Permissions section.
- Register your GCP cloud account in Palette as described in the Creating a GCP Cloud account section below.
- You should have an Infrastructure cluster profile created in Palette for GCP.
- Palette creates compute, network, and storage resources on GCP during the provisioning of Kubernetes clusters. Therefore, Sufficient capacity in the desired GCP region should exist for the creation of the cluster.
Last Update: December 13, 2020
Create a service account in GCP with the required permissions and register it with Palette to create a GCP cloud account in Palette. To create a service account, you should have one of the following Identity and Access Management (IAM) roles:
roles/iam.serviceAccountAdmin
or roles/editor
. For detailed instructions on creating a service account refers to Creating and managing service accounts.
You can create a service account either using existing standard roles or create a new role with custom permissions.
Retrieve the JSON credential file for your service account. For detailed instructions on creating your service account keys refer to Creating and managing service account keys.
- To create a GCP cloud account, provide a name for the account and enter the JSON credentials for your service account either by pasting into the space provided or uploading from your JSON credential file.
- Then, Validate and Save your account.
Performed the steps below to provision a new GCP cluster:
- Provide basic cluster information like name, description, and tags. Tags on a cluster are propagated to the VMs deployed on the cloud/data center environments.
- Select a cluster profile created for GCP cloud. The profile definition will be used as the cluster construction template.
- Review and override pack parameters as desired. By default, parameters for all packs are set with values defined in the cluster profile.
Provide the GCP Cloud account and placement information.
Parameter Description Cloud Account Select the desired cloud account. GCP cloud accounts with GCP credentials need to be pre-configured in project settings. Project The project to which the cluster belongs. Region Choose the desired GCP region where you would like the clusters to be provisioned. SSH Key Pair Name Choose the desired SSH Key Static Placement By default, Palette uses dynamic placement wherein a new VPC with a public and private subnet is created to place cluster resources for every cluster. These resources are fully managed by Palette and deleted when the corresponding cluster is deleted. Turn on the Static Placement option if it is desired to place resources into preexisting VPCs and subnets. If the user is making the selection of Static Placement of resources, the following placement information need to be provided: - Virtual Network - Control plane Subnet - Worker Network Make the choice of updating the worker pool in parallel.
- Configure the master and worker node pools. To learn more about the configuration options, review the Node Pool documentation page. Click on Next when you are done with node pool configurations.
- The settings page is where you can configure patching schedule, security scans, backup settings, setup role based access control (RBAC), and enable Palette Virtual Clusters. Review the settings and make changes if needed. Click on Validate.
- Review the settings summary and click on Finish Configuration to deploy the cluster. Be aware that provisioning IaaS clusters can take several minutes.
The cluster details page of the cluster contains the status and details of the deployment. Use this page to track the deployment progress.
The deletion of a GCP cluster results in the removal of all Virtual machines and associated storage disks created for the cluster. The following tasks need to be performed to delete a GCP cluster:
- Select the cluster to be deleted from the Cluster View page and navigate to the Cluster Overview page.
- Invoke a delete action available on the page: Cluster > Settings > Cluster Settings > Delete Cluster.
- Click Confirm to delete.
The Cluster Status is updated to Deleting while cluster resources are being deleted. Provisioning status is updated with the ongoing progress of the delete operation. Once all resources are successfully deleted, the cluster status changes to Deleted and is removed from the list of clusters.
A cluster stuck in the Deletion state can be force deleted by the user through the User Interface. The user can go for a force deletion of the cluster, only if it is stuck in a deletion state for a minimum of 15 minutes. Palette enables cluster force delete from the Tenant Admin and Project Admin scope.
- Log in to the Palette Management Console.
Navigate to the Cluster Details page of the cluster stuck in deletion.
If the deletion is stuck for more than 15 minutes, click the Force Delete Cluster button from the Settings dropdown.
If the Force Delete Cluster button is not enabled, wait for 15 minutes. The Settings dropdown will give the estimated time for the auto-enabling of the Force Delete button.