ALL THINGS KUBERNETES

Managing Kubernetes Clusters with Supergiant 2.0.0 Control

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!

Basic Cluster Operations

Supergiant Control supports the following operations with your Kubernetes cluster:

  • Adding nodes
  • Adding masters
  • Removing nodes
  • Removing masters
  • Destroying a cluster

Let’s learn how to do this. In order to complete examples in this tutorial, you’ll need the following prerequisites:

  • A running Supergiant 2.0.0 Control tool. See our SG control installation guide to learn more.
  • An AWS or DigitalOcean cloud account with access to security credentials.
  • To have linked your AWS or DigitalOcean account to Supergiant following the steps in the Linking a Cloud Account tutorial.
  • A Kubernetes cluster deployed with Supergiant Control. Read our tutorial to learn how to do this.

Adding a Node

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.

Supergiant Control: Adding New Node

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!

Supergiant Control: Configuring a New Node

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).

Supergiant Control: Building New Node

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.

Removing a Node

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.

Supergiant Control: Removing a Node

Destroying the Cluster

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.”

Supergiant Control: Deleting a Cluster

Clicking “Delete” will start the deletion process. You will not be able to interact with the cluster once this process is started.

Supergiant Control: Cluster Deleting Process

Conclusion

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.

What’s Next?

Learn more about Supergiant toolkit using the following resources:

Getting started with the Supergiant Toolkit

Supergiant Control on GitHub

Supergiant Capacity on GitHub

Supergiant Analyze on GitHub

Supergiant 2.0.0 Documentation