Launch Kubernetes Cluster
Kubernets is the open source container orchestratoin tool. Its designed automates deployment, scaling and manage containerized application and operating application of containers.
Last updated
Kubernets is the open source container orchestratoin tool. Its designed automates deployment, scaling and manage containerized application and operating application of containers.
Last updated
To create a Kubernetes cluster, click on "Create Kubernetes" in the top right corner. This will take you to the cluster page where you can select the configuration.
Here we can see two types of templates:-
Kubernetes-single-Master
Kubernetes-Multi-Master
High Availability (HA):- It refers to a system or service's capability to remain operational and accessible to users over extended periods, typically measured as a percentage of uptime. High availability ensures that a system is consistently available and operational, minimizing downtime. Ensure you enable the High Availability feature to create three master nodes working in Active/Active mode. Leave it disabled to create a single master node.
Master Flavor:- Choose a flavor for the master node.
Worker Node: Choose the number of worker nodes.
Worker Flavor: Choose a flavor for worker nodes, Note that all worker nodes will be of the same flavor.
Autoscaling, sometimes referred to as automatic scaling or auto-scaling, is a crucial cloud computing service that dynamically adjusts the number of computational resources assigned to an application or service in line with its ongoing workload. This capability aims to ensure that the application remains capable of efficiently managing fluctuating traffic levels or demands, while also optimizing the utilization of resources and reducing expenses. If you enable autoscaling, you should select the worker nodes based on usage.
If you have already created the network, you can choose an existing network; otherwise, it will work in the default network.
Boot Volume
Boot Volume: The primary storage device or partition containing the operating system, bootloader, and configuration files necessary for a computer to boot. Select storage policy Default and storage size(GB)
Floating IP
By turning on this feature, you will be able to access all your nodes via a public IP address, When you enable the floating IP, you will get an IP for each master and worker node.
SSH KEY
Select the "SSH_KEY": If you already have an SSH key, you can select it. If you do not have one, click "Generate SSH key", follow the provided URL, and scroll down to the key section.
Labels
Labels are key/value pairs that are interpreted and validated by the drivers that use them.
Enter the name of the Kubernetes cluster and click on the Create cluster.
Click on the created cluster to learn more details about the cluster
Overview: This section checks cluster information such as health status, creation status
Pools: In this section, we verify the status of master and worker nodes to ensure they are active
Go to the Networking section, select the network, click on the Kubernetes cluster you created, and verify the network status.
Overview: This section provides information on the cluster status, node names, and network resources.
To access Kubernetes externally and download kubeconfig.
Note: The Kubeconfig file runs only on the Linux operating system, If you have downloaded the kubeconfig file on a Windows machine copy this file to any Linux system.
After downloading the kubeconfig file,
Copy the kubeconfig file into your Linux system. Then SSH into your Linux system and run these commands to execute the YAML file for Kubernetes.
Use the snap command to install the kubectl.
Using these commands will display the status of the nodes in your Kubernetes cluster.
Navigate to the server dashboard
Identify your master node and its public IP
Navigate to the directory containing your SSH key.
Open the terminal and type ssh -i ssh_key.pem core@ip-address where "ssh_key.pem" is the name of your SSH key and "IP-address" is the public IP address of your master node.