Kubernetes: Up and Running

What is Kubernetes?

Image for post

Kubernetes is a software that allows us to deploymanage and scale applications. The applications will be packed in containers and kubernetes groups them into units. It allows us to span our application over thousands of servers while looking like one single unit.

It is already available on Azure and Google Cloud as a managed service.

History

Kubernetes was founded by Joe BedaBrendan Burns, and Craig McLuckie, who were quickly joined by other Google engineers including Brian Grant and Tim Hockin, and was first announced by Google in mid-2014. Its development and design are heavily influenced by Google’s Borg system, and many of the top contributors to the project previously worked on Borg.

The original Borg project was written entirely in C++, but the rewritten Kubernetes system is implemented in Go.

Why you need Kubernetes?

Image for post
  1. Kubernetes is a container orchestration system developed by Google.

2. Kubernetes can run containerized applications of any scale without any downtime.

3. Kubernetes can self-heal containerized applications, making themresilient to unexpected failures.

4. Kubernetes can auto-scale containerized applications as per the workload, and ensure optimal utilization of cloud resources.

5. Kubernetes greatly simplifies the process of deployment operations. With Kubernetes, however complex an operation is, it could be performed reliably by executing a couple of commands, at most.

What are Containers?

Image for post

A container is a standard unit of software that packages up code and all its dependencies so the application runs quickly and reliably from one computing environment to another.

We can run more than a hundred OS from a single system using container technology. The OS launched is called the container. The container needs a base operating system to launch.

Some of the container technology examples that help achieve container technology are Docker, Podman, Mesos Containerizer, OpenVZ, CRIO, etc.

Industrial use cases solved by K8S:

Image for post
  1. Service discovery and load balancing:
Image for post

Kubernetes can expose a container using the DNS name or using their own IP address. If traffic to a container is high, Kubernetes is able to load balance and distribute the network traffic so that the deployment is stable.

2. Horizontal Auto-scaling:

Image for post

Automatically change the number of running containers, based on CPU utilization or other application-provided metrics.

3. Self-healing:

Image for post

Kubernetes restarts containers that failreplaces containerskills containers that don’t respond to your user-defined health check, and doesn’t advertise them to clients until they are ready to serve.

4. Storage orchestration:

Image for post

Kubernetes allows you to automatically mount a storage system of your choice, such as local storagespublic cloud providers, and more.

5. Automatic bin packing:

Image for post

You provide Kubernetes with a cluster of nodes that it can use to run containerized tasks. You tell Kubernetes how much CPU and memory each container needs. Kubernetes can fit containers onto your nodes to make the best use of your resources.

6. Automated rollouts and rollbacks:

Image for post

You can describe the desired state for your deployed containers using Kubernetes, and it can change the actual state to the desired state at a controlled rate. For example, you can automate Kubernetes to create new containers for your deployment, remove existing containers and adopt all their resources to the new container.

7. Secret and configuration management:

Image for post

Kubernetes lets you store and manage sensitive information, such as passwords, Auth tokens, and SSH keys. You can deploy and update secrets and application configuration without rebuilding your container images, and without exposing secrets in your stack configuration.

7. Batch execution:

Image for post

In kubernetes, run to completion jobs are primarily used for batch processing. Each job creates one or more Pods. During job execution , if any container or Pod fails, Job controller will re-schedule the container, Pod on another node.

It can also run multiple Pods in parallel and can scale-up if required .

What won’t Kubernetes do?

  • It does not replace tools like Jenkins — so it will not build your application for you.
  • It is not middleware — so it will not perform tasks that a middleware performs, such as message bus or caching, to name a few.
  • It does not care which logging solution is used. Have your app log to stdout, then you can collect the logs with whatever you want.
  • It does not care about your config language (e.g., JSON).

Kubernetes offers these capabilities to a business:

Image for post
  1. Multi-cloud flexibility: As more enterprises run on multi-cloud platforms, they benefit from Kubernetes, as it easily runs any application on any public cloud service or a combination of public and private clouds.
  2. Faster time to market: Because Kubernetes can help the development team break down into smaller units to focus on single, targeted, smaller micro-services, these smaller teams tend to be more agile.
  3. IT cost optimization: Kubernetes can help a company reduce infrastructure costs quite dramatically if it is operating on a large scale.
  4. Improved scalability and availability: Kubernetes serves as a critical management system that can scale an application and its infrastructure whenever the workload increases, and reduce it as the load decreases.
  5. Effective migration to the cloud: Kubernetes can handle rehosting, re-platforming, and refactoring. It offers a seamless route to effectively move an application from the facility to the cloud.

Why Kubernetes Gained more popularity??

Originally developed by Google as an offshoot of its Borg project, Kubernetes has established itself as the de facto standard for container orchestration.

Kubernetes hasgained more popularity and is the fastest growing container orchestrationplatform. As Kubernetes is extensible and fault tolerant, various organizations are adopting Kubernetes as their native container platform to host business critical applications.

Top cloud providers such as AmazonGoogle and Microsoft are providing k8s platforms for easy adoption. Kubernetes is a perfect choice to host.

Kubernetes Market Share and Competitors in Virtualization Management Software

We use the best indexing techniques combined with advanced data science to monitor the market share of over 12,500 technology products, including Virtualization Management Software. By scanning billions of public documents, we are able to collect deep insights on every company, with over 100 data fields per company at an average. In the Virtualization Management Software category, Kubernetes has a market share of about 21.9%. Other major and competing products in this category include:

Image for post

Top Industries that use Kubernetes

Image for post

Top countries that use Kubernetes

Image for post
Image for post

….and many more..!

Conclusion:

To summarize, anyone interested in designing large scale applications that remain highly available and fault tolerant, while optimizing the consumption of computing resources, should consider using Kubernetes for container orchestration, combined with an engineering team that has expert knowledge of configuring, maintaining and updating Kubernetes.
Kubernetes enjoys the largest development activity, and supports a large ecosystem of tools and services, which makes it a good choice for most teams.

Image for post

Thank you 🙂

Hope you’ve learnt something new….!



Categories: Architecture, automation, DevOps, Linux, Technology

Tags: , , , ,

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: