Deploying a Kubernetes Cluster on KubeRaya
For developers seeking to harness containerization’s potential in their applications, container usage has significantly streamlined the development process. However, managing containers at a large scale poses a serious challenge that shouldn’t be underestimated.
This is where Kubernetes, the renowned container orchestrator, steps in, automating the deployment and scaling of containers. However, navigating the intricacies of Kubernetes can be a daunting task, prompting professionals to seek a streamlined solution.
Introducing KubeRaya, a Kubernetes as a Service by Cloud Raya, a lifeline for effective Kubernetes management without the complexities, enabling these professionals to concentrate on building and deploying applications with ease.
Introducing KubeRaya, a Kubernetes as a Service by CloudRaya, a solution that helps professionals in deploying and managing Kubernetes clusters more efficiently, allowing them to focus on application development and deployment with ease.
This guide will explain the steps to deploy a Kubernetes Cluster within KubeRaya and assumes that you already have experience in using Kubernetes.
Deploying a Kubernetes Cluster
It only takes a few simple steps to deploy our first Kubernetes cluster.
The list of Kubernetes clusters you have launched will be displayed on this page. To create a new one, simply click ‘+ Add New Cluster‘.
Fill in the cluster information in the provided fields:
- Location: Choose the location where the cluster will be launched.
- Cluster Name: Enter the name for your cluster.
- Kubernetes Version: Select your desired Kubernetes version.
- Project Tag: If you have a project tag preference, choose the relevant tag. You can find a guide on using the Project Tag feature on the following page: link.
- Select Plan: Choose the specification type for the nodes in your cluster.
- Description: Provide a brief description or summary of your cluster to help identify its purpose or key attributes.
- Number of Nodes: Select how many nodes are needed in the cluster (a minimum of 2 nodes: 1 Master Node and 1 Worker Node).
- High-Availability: If needed, enable the high-availability option, which will add an additional Master Node to the cluster (resulting in 2 Master Nodes) for enhanced reliability.
Once all the information is correctly filled in, click ‘Add New Cluster‘ to initiate the cluster deploy process.
Managing the Freshly Deployed Kubernetes Cluster
Once you’ve successfully deployed the Kubernetes cluster, you can now start managing it.
Under ‘List Cluster,’ click on the cluster’s name to view detailed information about that cluster.
You will find several tabs on the ‘Cluster Detail’ page.
▶ Overview Tab
In the “Overview” tab, you will find important information about your cluster, such as the launch date, the total specifications of nodes used, the Kubernetes cluster’s primary public IP address, and a button to download the kubeconfig file.
▶ Resources Tab
In the “Resources” tab, you will find a list of nodes in this cluster, along with each node’s role (shown in the node names), private IP address, and their status. Any additional Public IPs you add to the cluster will also be displayed here.
To add a new node to the cluster, you can click the ‘Scalling Cluster‘ button. This process will restart your cluster.
▶ Action-Log Tab
On the “Action Log” tab, you will find a list of activity logs that show what you have done in the cluster.
Accessing the Kubernetes Cluster
Now, you can start accessing and operating your Kubernetes Cluster.
Go back to the ‘Overview’ tab, and click the ‘Download Config File‘ button to start downloading the kubeconfig file. This file contains the credentials and endpoint information required to manage your cluster.
Rename the kubeconfig file you downloaded earlier to
config and move it to its default location, which is
~/.kube unless you want to specify a custom kubeconfig file location via command-line or environment variable.
For Windows users, the default location is typically
Now, try accessing the cluster by running the following command:
kubectl get nodes