Please enable JavaScript to view the comments powered by Disqus.

An introduction to Kubernetes and its components

An introduction to Kubernetes and its components

Written by Vaibhav Umarvaishya

Share This Blog


What is Kubernetes?

Kubernetesis an open-source container orchestration system used for automating computer application deployment, scaling, and management. In other words, you use Kubernetes to make serious magic with containers. It has a large, rapidly growing ecosystem. Kubernetes services, support, and tools are widely available.

The name Kubernetes originates from Greek, meaning helmsman or pilot. Google open-sourced the Kubernetes project in 2014. Kubernetes combinesover 15 years of Google's experiencerunning production workloads at scale with best-of-breed ideas and practices from the community.

Here’s how Dan Kohn, executive director of theCloud Native Computing Foundation(CNCF),in a podcast with Gordon Haff, explained it: “Containerization is this trend that’s taking over the world to allow people to run all kinds of different applications in a variety of different environments. When they do that, they need an orchestration solution to keep track of all of those containers and schedule them and orchestrate them. Kubernetes is an increasingly popular way to do that.”

Why you need Kubernetes and what it can do

Node Components

Node components run on every node, maintaining running pods and providing the Kubernetes runtime environment.

kubelet

An agent that runs on eachnodein the cluster. It makes sure thatcontainersare running in aPod.

The kubelet takes a set of PodSpecs that are provided through various mechanisms and ensures that the containers described in those PodSpecs are running and healthy. The kubelet doesn't manage containers that were not created by Kubernetes.

kube-proxy

kube-proxy is a network proxy that runs on eachnodein your cluster, implementing part of the KubernetesServiceconcept.

kube-proxymaintains network rules on nodes. These network rules allow network communication to your Pods from network sessions inside or outside of your cluster.

kube-proxy uses the operating system packet filtering layer if there is one and it's available. Otherwise, kube-proxy forwards the traffic itself.

Container runtime

The container runtime is the software that is responsible for running containers.

Kubernetes supports several container runtimes:Docker,containerd,CRI-O, and any implementation of theKubernetes CRI (Container Runtime Interface).

Addons

Addons use Kubernetes resources (DaemonSet,Deployment, etc) to implement cluster features. Because these are providing cluster-level features, namespaced resources for addons belong within the kube-system namespace.

Selected addons are described below.

DNS

While the other addons are not strictly required, all Kubernetes clusters should havecluster DNS, as many examples rely on it.

Cluster DNS is a DNS server, in addition to the other DNS server(s) in your environment, which serves DNS records for Kubernetes services.

Containers started by Kubernetes automatically include this DNS server in their DNS searches.

Web UI (Dashboard)

The dashboardis a general-purpose, web-based UI for Kubernetes clusters. It allows users to manage and troubleshoot applications running in the cluster, as well as the cluster itself.

Container Resource Monitoring

Container Resource Monitoringrecords generic time-series metrics about containers in a central database and provides a UI for browsing that data.

Cluster-level Logging

Acluster-level loggingmechanism is responsible for saving container logs to a central log store with a search/browsing interface.

Key Features of Kubernetes:

  • Scalability:Kubernetes can scale without burdening your ops team.
  • Flexibility:Kubernetes’ flexibility grows with you to deliver your applications consistently and easily no matter how complex your need is.
  • Run Anywhere:Kubernetes is open source, giving you the freedom to take advantage of on-premises, hybrid or public cloud infrastructure, and letting you effortlessly move workloads to where they’re most needed.
  • Automation:Automatically place containers based on their resource requirements and other constraints without sacrificing availability. Mix critical and best-effort workloads to drive utilization and save resources.
  • Self-Healing:Restart containers that fail, replace and reschedule containers when nodes die. Kill containers that don't respond to your user-defined health check.
  • Self-Discovery & Load Balancing:Kubernetes gives containers their own IP addresses and a single DNS (domain name server) name for a set of containers, and it can load-balance.
  • Automated rollouts & rollbacks:Kubernetes progressively rolls out changes to your application or its configuration, while monitoring application health to ensure it doesn't kill all your instances at the same time. If something goes wrong, Kubernetes will roll-back the change for you.
  • Batch Execution:Kubernetes can manage your batch and continuous integration (CI) workloads, replacing containers that fail, if desired.

Conclusion

Kubernetes (k8’s) is the next big wave in cloud computing and it’s easy to see why as businesses migrate their infrastructure and architecture to reflect a cloud-native, data-driven era.

Topic Related Post
Vaibhav Umarvaishya

Vaibhav Umarvaishya

Cloud Engineer | Solution Architect

As a Cloud Engineer and AWS Solutions Architect Associate at NovelVista, I specialized in designing and deploying scalable and fault-tolerant systems on AWS. My responsibilities included selecting suitable AWS services based on specific requirements, managing AWS costs, and implementing best practices for security. I also played a pivotal role in migrating complex applications to AWS and advising on architectural decisions to optimize cloud deployments.

Enjoyed this blog? Share this with someone who’d find this useful


Confused about our certifications?

Let Our Advisor Guide You

Already decided? Claim 20% discount from Author. Use Code REVIEW20.

Related Certificates

AWS Certified Developer Associate
View More
AWS Solution Architect Associates
View More