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.
Once you have created your account on KubeSail, follow the below steps to deploy your applications.
Quick Snapshot
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.
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.
Before creating deployment 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
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:
webapp1(ngnix)
application to run on that node.You can also run kubectl describe deployment
to get more details of the deployment.
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.
Some of the useful kubectl
commands are below.
From the KubeSail console too, you can view the deployments and its status.
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.
Choose one of the options to get the app exposed.
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!
There are few things as valuable to a business as well-designed software. Organizations today rely…
The cryptocurrency industry is being reshaped by the fusion of blockchain technology and artificial intelligence…
Introduction Artificial Intelligence (AI) has also found its relevance in graphic design and is quickly…
Imagine a world where the brilliance of Artificial Intelligence (AI) meets the unbreakable security of…
In today’s fast-paced digital landscape, automation is not just a luxury but a necessity for…
The world of casino gaming has leveraged the emerging technology advancements to create immersive and…
This website uses cookies.