Over a million developers have joined DZone.

Docker Containers Only Shine More with Kubernetes

Aijtesh Kumar explains his revolutionary experience with Docker Containers.

· DevOps Zone

The DevOps Zone is brought to you in partnership with Sonatype Nexus. The Nexus Suite helps scale your DevOps delivery with continuous component intelligence integrated into development tools, including Eclipse, IntelliJ, Jenkins, Bamboo, SonarQube and more. Schedule a demo today

A year back, I got started with Docker Containers. A few months down the road, I realized that I had learned a revolutionary technology because of the following reasons:

  1. Quick learning: Docker containers were used to spin up my exploratory learning environment, on-demand, for any tool, framework, or programming language that I wanted to learn.
  2. On-demand self-service environments: Docker containers were used to set up on-demand self-service dev and test environments. This was a huge productivity booster for developers and test engineers.
  3. Automated deployments: With Docker containers, Jenkins, Repository, etc., I saw the automated deployments getting created in dev, testing, and UAT servers.

The following are some of the areas in which I felt the need for some tools:

  1. Manage app cluster: Scale the apps in multiple Docker containers to meet app requirements. For example, let’s say there is a data pipeline composed of Flume, Kafka, and Spark containers. The need is to scale the pipeline to process a larger dataset that could be achieved by having multiple containers for Flume, Kafka, and Spark. In other words, use cluster setup to start these apps to process larger datasets. Say, for instance, Flume cluster passing data to Kafka cluster.
  2. Container orchestration: Manage the containers in terms of starting or stopping multiple containers running an app to perform on-demand service requirements. Take for an instance, starting or stopping a Jenkins cluster to do CI jobs as required.
  3. Components repackaging: Sometimes, I felt like repackaging existing apps and starting them together to test different app configurations.

The requirements such as above could easily be fulfilled by Kubernetes.

As I deep dived into the world of Kubernetes, I realized that this is one of the coolest tools I've come across in the recent past. It for sure would act as a feather in the cap for DevOps professionals working with Docker containers.

The following are some of the key building blocks of Kubernetes which simplified the way I set up multiple containers together and able to maintain a specific number of replicas at any point of time while exposing those containers as a service.

  • Pods: Pods can be termed as a set of one or more co-located and co-managed containers sharing the same namespace and volume. Each pod tends to have an IP address associated with it that can be used to access the app running within that pod. Pods can be used to co-locate and co-managed multiple Docker containers with shared volume.
  • Services: Services provide a higher level abstraction to pods. If one or more pods have to rely on other pods, this is done via “service” level abstraction. Imagine a Kafka cluster exposed via Kubernetes service level abstraction.
  • Replication controllers: Replication controllers maintain the same number of replicas of pods at any point in time. That essentially means that if one or more pods got terminated due to any reasons, the controller starts the same number of pods appropriately.

With the emerging trends of cloud-native apps where containers and microservices form the key components, Kubernetes has been identified as the most critical component to take the cloud-native apps management to a different level altogether. As a matter of fact, CNCF.io has also recognized Kubernetes as the first tool that serves the Cloud-native apps requirements. And, with Docker containers technology becoming the most popular containerization technology at this point in time, their marriage is only going to make both of them stronger than any other cloud-native configuration requiring container and container orchestration tool to work in tandem.

The DevOps Zone is brought to you in partnership with Sonatype Nexus. Use the Nexus Suite to automate your software supply chain and ensure you're using the highest quality open source components at every step of the development lifecycle. Get Nexus today

Topics:
docker ,containers

Published at DZone with permission of Aijtesh Kumar. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}