The Google Kubernetes Cluster (GKE) support enables users to create, manage, upgrade, resize, and delete a GKE clusters using Nirmata.
Setup cloud credentials for GKE
To manage a GKE Cluster in Nirmata, add Google Cloud Credentials in Nirmata. A valid Google Cloud account and credentials are required.
See GCE Cloud Provider for full documentation on adding Google as a Cloud Provider.
Configure a cluster-type for GKE
Go to Policies menu > cluster type and create a new cluster type for GKE. Configure the following options for GKE cluster type:
- Cloud configuration including Kubernetes version, region, network, sub-network.
- Node-pool configuration including machine-type, disk size. You have an option to use a different service account for node-pools if required.
- Configure any add-ons that you would like to deploy during cluster creation.
- Last, configure access-control for the cluster as required.
Create a GKE Cluster
To add a GKE Cluster in Nirmata, select Clusters from the sidebar menu and then click the +Add Cluster button, select GKE cluster.
In the cluster menu:
- Select the cluster type you would like to use .
- Choose cloud credentials (same unless you plan to use different credentials for node pools)
- Configure the node-pool settings, including machine-type and count of the nodes.
- Click on create button and in a few minutes the cluster should be created show ‘Ready’ in Nirmata.
Upgrade a GKE Cluster
NOTE: The Kubernetes version associated with a cluster cannot be downgraded. To upgrade the Kubernetes version of a GKE Cluster, navigate to the cluster from the Cluster menu.
Select Upgrade Cluster from the Settings menu.
Select the new Kubernetes version from the drop-down menu and click Save.
The upgrade is reflected in Google Cloud Platform and Nirmata.
Resize a GKE Cluster
To change the number of nodes in a GKE Cluster, navigate to the cluster from the Cluster menu.
- Change the node-pool configuration top reflect the right size of the cluster.
- Enter the new node count and click Save.
Once the has been scaled, the new nodes are reflected on the Nirmata Cluster dashboard.
Delete a GKE Cluster
NOTE: All Applications and Environments running inside the cluster must be stopped and deleted before deleting the cluster.
To delete a GKE Cluster, navigate to the cluster from the Cluster menu.
From the Settings menu, select Delete Cluster.
Enter the Cluster name and click Delete.
The cluster is deleted in Nirmata and Google Cloud Platform.