In a previous tutorial, you learned how to deploy a Kubernetes cluster using Supergiant Control tool. You also saw how to deploy applications using the SG App Store and track cluster statistics.
In this tutorial, we’ll show you other ways you can manage Kubernetes clusters with Supergiant 2.0.0 Control tool. By the end of this article, you’ll know how to add and remove nodes and destroy the cluster. Let’s get started!
Supergiant Control supports the following operations with your Kubernetes cluster:
Let’s learn how to do this. In order to complete examples in this tutorial, you’ll need the following prerequisites:
Once you have a Kubernetes cluster deployed with Supergiant Control, you can add as many nodes as you want. The easiest way to add a new node to the existing cluster is from the “Cluster Details” page that can be accessed by clicking the Cluster icon on the Home Page. Once you’re on the “Cluster Details” page, find the Machines Tables and click the “+” icon at the bottom of it. You’ll see the “Adding Node” dialogue with a new node’s configuration.
As you see in the image below, adding a new node to the existing cluster looks the same as adding nodes when creating a cluster. First, you should select a machine type (e.g., 4GB, 2GB) and then assign a role to it (a master or a node). You can also select the OS and OS version as well as the processor architecture for your node. It’s as simple as that!
In this example, we are adding a node with 4GB of RAM running on Ubuntu Xenial. Once everything is configured, you can click “Finish.” In a few seconds, you’ll see a new node with a “Building” status in the Machines Table on the “Cluster Details” page (see the image below).
After the node is built, its status will change to “Provisioning” and then “Active” once the provisioning stage is over. RAM and CPU usage metrics will be updated for a new node as well as the cluster as a whole.
Supergiant Control allows destroying both masters and nodes. However, beware that deleting a master might introduce unpredictable behavior to your cluster. Please avoid deleting your masters.
Let’s now assume you want to delete a node from the cluster. To do this, first go to the “Cluster Details” page. Scroll to the Machines Table, select the node you want to destroy and click a “Trash Can” icon in the corresponding row of the table (see the image below). The node status will change to “Deleting,” and in a few moments the node will be gone forever.
If you want to destroy a cluster, click the “Delete” button at the bottom left of the “Cluster Details” page. This will open the Warning dialogue saying “Deleting the cluster will remove all resources attached to it and may lead to data loss. Are you sure you want to delete it?” Click “Cancel” or “Delete.”
Clicking “Delete” will start the deletion process. You will not be able to interact with the cluster once this process is started.
In this tutorial, we discussed basic operations you can perform on the Kubernetes cluster using Supergiant Control. With the SG Control’s intuitive interface, you can easily add or remove nodes to the cluster as well as destroy the cluster.
Learn more about Supergiant toolkit using the following resources: