đź”° How Kubernetes is used in Industries and what all use cases are solved by Kubernetes?

Rahul Kumar
4 min readMar 9, 2021

why we need Kubernetes? use case of Kubernetes.

Firstly, We have to learn about Container.

What is a container?

Containers are lightweight OS-level virtualization that runs applications and their dependencies in resource-isolated processes and ships it out as one unit.

Container

Before Kubernetes: How Kubernetes came into the Role?

Before Kubernetes, Containers were the best concept to deploy applications. containers package up your application’s code, configurations, and dependencies into a single object.

What is Kubernetes?

Kubernetes is a portable, extensible, open-source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation. It has a large, rapidly growing ecosystem. Kubernetes services, support, and tools are widely available.

Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and management of containerized applications.

Features Of Kubernetes:

  • Automates various manual processes: for instance, Kubernetes will control for you which server will host the container, how it will be launched, etc.
  • Interacts with several groups of containers: Kubernetes is able to manage more cluster at the same time
  • Provides additional services: as well as the management of containers, Kubernetes offers security, networking, and storage services
  • Self-monitoring: Kubernetes checks constantly the health of nodes and containers
  • Horizontal scaling: Kubernetes allows you scaling resources not only vertically but also horizontally, easily and quickly
  • Storage orchestration: Kubernetes mounts and add storage system of your choice to run apps
  • Automates rollouts and rollbacks: if after a change to your application something goes wrong, Kubernetes will rollback for you
  • Container balancing: Kubernetes always knows where to place containers, by calculating the “best location” for them
  • Run everywhere: Kubernetes is an open-source tool and gives you the freedom to take advantage of on-premises, hybrid, or public cloud infrastructure, letting you move workloads to anywhere you want.

Case Study On Spotify:

About Spotify:

Spotify is a digital music, podcast, and video streaming service that gives you access to millions of songs and other content from artists all over the world.

Challenge:

Launched in 2008, the audio-streaming platform has grown to over 200 million monthly active users across the world. “Our goal is to empower creators and enable a really immersive listening experience for all of the consumers that we have today — and hopefully the consumers we’ll have in the future,” says Jai Chakrabarti, Director of Engineering, Infrastructure, and Operations. An early adopter of microservices and Docker, Spotify had containerized microservices running across its fleet of VMs with a homegrown container orchestration system called Helios. By late 2017, it became clear that “having a small team working on the features was just not as efficient as adopting something that was supported by a much bigger community,” he says.

Solution:

Spotify continues to expand its use of Kubernetes on a monthly basis since its adoption a few years ago. Previously, Spotify had already begun to shift its operation to a containerized infrastructure before it began to consider the potential benefits Kubernetes might offer.

“We saw the amazing community that had grown up around Kubernetes, and we wanted to be part of that,” says Chakrabarti. Kubernetes was more feature-rich than Helios. Plus, “we wanted to benefit from added velocity and reduced cost, and also align with the rest of the industry on best practices and tools.” At the same time, the team wanted to contribute its expertise and influence in the flourishing Kubernetes community. The migration, which would happen in parallel with Helios running, could go smoothly because “Kubernetes fit very nicely as a complement and now as a replacement to Helios,” says Chakrabarti.

Despite its early adoption, Spotify began to shift to Kubernetes “in earnest” about a year and a half ago. Kubernetes has since played a key role in Spotify’s DevOps in two key ways. This includes how the platform has helped to “reduce toil,” said Haughwout.

“They’re working on building and iterating features and experiments that people use on Spotify every day and we want them to keep working on that,” Haughwout said. “So one of our challenges is how do we migrate them, when you have 299 million monthly users, without interrupting the music stream to things like Kubernetes, without slowing them down.”

Thanks…..

--

--