KubeSail

KubeSail: Get your free Kubernetes Cluster

Read Time:3 Minute, 42 Second

If you’re looking for free Kubernetes Cluster to play around then KubeSail is the right choice, its hosted Kubernetes provider, and offers free managed namespace. With KubeSail you can deploy and host applications easily. In this post, we take look steps on how to deploy applications onto to KubeSail cluster.

KubeSail Logo
Image – KubeSail Logo

Once you have created your account on KubeSail, follow the below steps to deploy your applications.

Step #1: Get Kubectl configuration

From the account setup tab, get the kubectl configuration. To recap on what is kubectl, this is the command-line interface through which we can interact with Kubernetes API.

KubeSail Account Page
Image – KubeSail Account Page

Copy the contents of kubectl configuration and paste to your ~/.kube/config so that we can use kubectl to access our cluster.

If you’re looking for quickstart on basic understanding of Kubernetes concepts, please refer earlier posts for understanding on Kubernetes & how to create, deploy & rollout updates to the cluster.

Step # 2: Create deployment

Before creating deployment run kubectl get deployment to check if there are any deployments.

Run kubectl get deployment to check if there are any deployments
Image – Run kubectl get deployment to check if there are any deployments

Now that we have cluster ready, we can use kubectl create the command to create a new deployment. I already have below deployment.yaml ready with the simple web app – Nginx as a container image.

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
 name: webapp1
spec:
 replicas: 1
 template:
  metadata:
   labels:
    app: webapp1
  spec:
   containers:
    - name: webapp1
    image: nginxinc/nginx-unprivileged
    ports:
    - containerPort: 8080

 

KubeSail Deployments
Image – Simple web app (nginx as container image) deployment.yaml
Use kubectl create command to create deployment
Image – Use kubectl create command to create deployment

Re-run kubectl get deployment to check if deployment has succeeded.

Congrats! We have just deployed the first application on KubeSail by creating a deployment. Following is what the command has done for us:

  1. Searched for a suitable node where an instance of the application could be run. (currently, we have only 1 available node)
  2. Scheduled the webapp1(ngnix) application to run on that node.
  3. Configured the cluster to reschedule the instance on a new node when needed.

You can also run kubectl describe deployment to get more details of the deployment.

Run kubectl describe deployment to view more details
Image – Run kubectl describe deployment to view more details

Once the application instances are created, a Kubernetes Deployment Controller continuously monitors those instances. If the Node hosting an instance goes down or deleted, the Deployment controller replaces it.

kubectl get pods will list the pods and its status
Image – kubectl get pods will list the pods and its status

Some of the useful kubectl commands are below.

  • kubectl get– list resources
  • kubectl describe– show detailed information about a resource
  • kubectl logs– print the logs from a container in a pod
  • kubectl exec– execute a command on a container in a pod

From the KubeSail console too, you can view the deployments and its status.

KubeSail Deployments
Image – KubeSail Deployments

Step # 3: Expose nginx app outside of the cluster

To expose the app to the outside world, either we can create a new service or from the KubeSail Deployment page. For now, we are going to expose it from KubeSail Deployment page, click on ‘Ports’ to proceed.

Expose app to outside world
Image – Expose app to the outside world

Choose one of the options to get the app exposed.

App exposed to outside world
Image – Hurray! App exposed to the outside world
Nginx Landing Page
Image – Nginx Landing Page

Congrats! We have just exposed our Nginx application to the outer world.

You can upgrade or downgrade your KubeSail cluster any time from your dashboard. Please check out the Pricing page for more details.

Like this post? Don’t forget to share it!

Useful Resources

About Post Author

Karthik

Allo! My name is Karthik,experienced IT professional.Upnxtblog covers key technology trends that impacts technology industry.This includes Cloud computing,Blockchain,Machine learning & AI,Best mobile apps, Best tools/open source libs etc.,I hope you would love it and you can be sure that each post is fantastic and will be worth your time.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
Summary
KubeSail: Get your free Kubernetes Cluster
Article Name
KubeSail: Get your free Kubernetes Cluster
Description
If you're looking for free Kubernetes Cluster to play around then KubeSail is right choice,its hosted Kubernetes provider and offers free managed namespace.
Author
Publisher Name
Upnxtblog
Publisher Logo

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Are you facing challenges with developing, deploying, monitoring, clustering, storing, securing, and managing Kubernetes in production environments? My book 'IoT Edge Computing with MicroK8s' gets you up and running with production-grade, highly available (HA) Kubernetes clusters on MicroK8s using best practices and examples based on IoT and edge computing.

X
%d bloggers like this: