Launch Kubernetes Cluster in Seconds on Civo

#cloud-native #k8's #kubernetes #devops

Ritesh Yadav Nov 02 2021 · 2 min read
Share this
Civo Cloud

What is Civo Cloud?

Have you ever suffered in launching a K8's Cluster in your local system using minikube or Kind but always need to wait for 15 to 20 minutes for its launch and till then your system becomes too slow and lags a lot, Sometimes that single node cluster is also not get provisioned and fails?   

There are a lot of problems we face when launching a single node cluster and if you're having a low-end system then it is just a dream to run a K8 cluster as we also cannot afford those huge bills of cloud providers like AWS, Azure, or GCP.

Don't worry there is a solution to it and that is Civo Cloud, a hidden gem.

Civo Cloud utilizes K3s a lightweight K8 Cluster, K3s is a Lightweight and Blazing fast cluster created by Rancher, K3s is created by removing some bulky part which is present inside the Kubernetes cluster.

Let's Launch a 3 Node K8s Cluster on Civo

Prerequisites

It’s best if you have the following installed, although you will not need those for the first option we show you.

  • Kubectl
  • Civo CLI
  • Step 1

  • Sign up to Civo (https://www.civo.com/) if you haven't already. Note that, at the time of writing, if you are signing up for your first time, you can claim $250 of free credit by adding your credit card/Debit Card details to your account.
  • Once you log in, you will be on the Dashboard overview. Navigate to the Kubernetes tab on the left sidebar. You should see something similar to this screenshot:
  • Step 1

    Step 2:  

    Select on Create new Cluster

    Step 3:

    Fill out the name, select the number of the master node,s and select a firewall (Default)

    Step 2

    Select the size of the instance, you can choose any according to your purpose but I suggest choosing a Medium size instance.

    Step 3

    Now here comes Civo Marketplace in this you can select, the application you want in your Kubernetes cluster like MinIO Storage, Prometheus, Oketo, Tekton, and many.

    Step 4

    Now press on Create Cluster

    Step 5

    After pressing on Create Cluster, your cluster will be up and running in seconds and you will be seeing this interface.

    Step 6

    Now you can Authenticate your local cluster by downloading the .kubeconfig  and merging it with local ones using this command

    $ cp <path-to-downloaded-config> ~/.kube/config

    Now you can test the cluster using the below command:

    $ kubectl cluster-info

    Kubernetes master is running at https://91.211.154.112:6443

    CoreDNS is running at https://91.211.154.112:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

    You did it🎉!

    You just created your first K3s Civo Kubernetes Cluster. It works in a similar way to any other Kubernetes cluster.

    Comments
    Read next