Kubernetes Basic Blog
Kubernetes Basic Blog
Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Open in app
Search
Get unlimited access to the best of Medium for less than $1/week. Become a member
Kubernetes Roadmap
Bijit Ghosh · Follow
14 min read · Feb 19, 2024
Kubernetes has quickly become the de facto standard for container orchestration
and management. As more organizations adopt Kubernetes, there is a growing need
for Kubernetes skills and expertise. This comprehensive roadmap will take you from
Kubernetes fundamentals all the way to advanced management, security, and
governance.
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 1/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Automated rollouts and rollbacks — Roll out and roll back application changes
easily through the Kubernetes API. Automatically check for pods running the
current version and stop rollout if issues emerge.
Clearly, Kubernetes provides extremely useful abstractions that help with many
complex tasks involved in managing containerized infrastructure and applications.
But to take full advantage of what Kubernetes offers, you need to understand some
key concepts.
Kubernetes Architecture
Kubernetes follows a client-server architecture:
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 2/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
etcd — Consistent and highly-available key value store used to store all
Kubernetes data.
kube-scheduler — Watches for newly created pods and selects a node for them
to run on.
kubelet — Agent that runs on each node to receive pod specs via API server and
ensure containers described are running and healthy.
Pods — The smallest deployable units that hold one or more tightly coupled
containers that share resources like storage and networking. Containers in a pod
also have access to shared volumes for persistent data.
Namespaces — Provides isolation for teams and applications via virtual clusters
backed by the same physical cluster.
These building blocks come together to provide patterns for running various types
of workloads, including stateless apps, stateful apps, data processing jobs, and
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 3/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
more.
Now that you understand Kubernetes basics, let’s move on to core concepts…
Pods
Pods represent a logical application and hold one or more tightly coupled
containers. Containers within a pod share an IP address, IPC namespace, hostname,
and other resources. Pods abstract away management of containerized applications
and facilitate horizontal scaling.
Pods have a lifecycle and go through phases like Pending , Running , Succeeded ,
Failed , and Unknown . The Kubernetes control plane manages pod lifecycles end-to-
end.
Pods provide two shared resources to their containers — networking and storage.
Containers within pods share the same IP address and port space. And containers
can mount shared storage volumes.
Pods are designed for disposability and do not provide guarantees around
availability and persistence. So even though pods share resources and
dependencies, it is antibhetical to Kubernetes design to have multiple tightly
coupled processes together in one pod.
Instead, related pods should be grouped using higher-level abstractions like services
and replicasets.
Services
Services provide named abstractions that allow loose coupling between dependent
pods. They integrate with service discovery mechanisms to provide dynamic
networking.
Services automatically load balance across pods based on labels. This provides
flexible networking without needing to manage names or IPs.
There are several types of Kubernetes services with differing networking models:
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 4/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
ClusterIP — The default type that exposes pods only within the cluster based on
an internal IP address. This IP stays constant regardless of pod lifecycles.
NodePort — Exposes pods across cluster nodes using NAT and a static port.
Allows calling the service from outside the cluster via NodeIP :NodePort.
Services enable loose coupling between pods and provide flexibility around
networking requirements.
ReplicaSets
ReplicaSets maintain a stable set of replica pods running at any given time. They
help guarantee the availability of pods.
They use pod templates that specify the pod properties, along with a label selector
that determines which pods belong to the replica set. They ensure specified number
of pods match the selector continuously run.
While replica sets manage pod replicas, deployments manage replica sets and
provide additional capabilities like graceful rolling updates to applications.
Deployments
Deployments provide declarative updates to pods and replica sets via rolling updates
and rollbacks. This allows deploying new versions of applications gradually while
retaining availability.
Replication strategy
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 5/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
They monitor rollout status and health to ensure availability. Deployments integrate
seamlessly with horizontal pod auto-scalers that adjust replicas automatically based
on CPU usage or custom metrics.
Namespaces
Namespaces partition Kubernetes clusters into virtual sub-clusters and provide
isolation for teams and applications. Resources created in one namespace are
hidden from other namespaces.
Namespaces allow using the same names for resources like pods or services in
different namespaces. And users and access policies can differ across namespaces.
Namespaces become essential in large clusters with multiple teams and varied
workloads sharing Kubernetes.
Storage
Storage management is a key consideration in running stateful applications.
Kubernetes provides multiple storage abstraction objects.
Volumes allow mounting storage filesystems into containers. Pods can access the
volumes as normal filesystems regardless of the backend storage provider.
Using PVCs and PVs enables storage orchestration without apps needing to interact
directly with storage APIs. It also facilitates on-demand dynamic provisioning from
cloud storage pools since PVs can integrate with public cloud storage providers.
Configuration
For maximum portability across environments, Kubernetes aims to de couple
configuration artifacts from container images. This allows changing configuration
without rebuilding images.
The ConfigMap API resource provides injection of config data like settings, license
keys etc into pods. Pods reference config data values through environment variables
or config files. ConfigMaps don’t provide confidentiality as they reside unencrypted
in etcd — secrets solve this.
The Secret resource objects let you encode confidential data like passwords or keys
and consume them in pods through mounted files or environment variables without
exposing the values permanently. Kubernetes automatically encodes secrets, but
encryption at rest depends on the backend etcd store.
Kubernetes Controllers
Kubernetes uses “controller” processes constantly running in control loops to
converge current state towards desired state. Resource controllers included cover
deployments, replica sets, namespace lifecycle, node lifecycle, endpoints etc.
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 7/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Application Deployment
The most common way to deploy applications on Kubernetes is by using workload
resources like deployments.
Horizontal auto-scaling
Application Observability
Observability is crucial for maintaining availability and diagnosing issues through
data like metrics, logs, and traces.
The kubelet provides basic health checking via readiness probes. Additionally many
Kubernetes-native monitoring tools provided enhanced observability:
Application Configuration
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 8/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Application Security
Kubernetes provides various application security options:
Additionally, tools like Falco or Sysdig Falco can monitor and audit runtime
application behavior and activity for threat detection.
CI/CD Integration
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 9/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Source control systems like Git track changes to Kubernetes manifests and other
configs and enforce version control and audit trails.
Infrastructure Management
In terms of managing underlying infrastructure for a Kubernetes cluster:
Managed services like Amazon EKS, Azure Kubernetes Service (AKS), Google
Kubernetes Engine (GKE) reduce the burden of tasks like upgrading Kubernetes
versions.
4. Advanced Kubernetes
You now know the critical basics — but Kubernetes has many additional powerful
capabilities:
Scheduling
The kube-scheduler assigns pods to cluster nodes balancing resource utilization
and additional policies:
Taints/tolerations — Dedicate nodes to pods and control which pods run where
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 10/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Autoscaling
Kubernetes supports autoscaling pods horizontally by adding or removing replicas
automatically based on metrics like CPU:
Batch Workloads
In additional to services, Kubernetes supports short-lived batch workloads via Jobs
which run pods to completion.
CronJobs build on jobs and provide time-based scheduled execution, like cron.
These abstractions expand the types of workloads Kubernetes can automate beyond
stateless long-running apps and services.
Serverless Computing
Kubernetes Events provide an event streaming mechanism that automatically
trigger custom resources known as EventResources in response to events
happening across cluster. This enables event-driven automation.
The Knative framework leverages this along with abstraction resources like Knative
Services, Builds etc to enable a serverless execution model on top of Kubernetes.
This facilitates finer-grained autoscaling and eventing capabilities.
5. Kubernetes Networking
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 11/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Cluster Networking
All pods can communicate with all other pods across cluster nodes without NAT,
thanks to a pod network. This relies on native VPC-CNI plugins or overlay networks
from projects like Flannel, Calico, Cilium etc.
Pods get their own IP addresses from this flat pod network along with:
Ingress Controllers
Ingress provides externally reachable URLs, load balancing, SSL termination and
name-based virtual hosting for services within the cluster. Widely used ingress
controllers include:
NGINX
Contour
HAProxy
Traefik
These negotiate external traffic to cluster services and provide critical edge routing
and management.
Service Mesh
Service meshes like Linkerd and Istio build on basic Kubernetes networking to
provide:
They work by injecting an extra container proxy throughout pod’s data path for
cross-cutting capabilities.
Network Policies
You can use NetworkPolicies to restrict communication between pods through rules
specifying allowed inbound and outbound connectivity. Policies get implemented by
the pod network.
As you can see, Kubernetes provides very advanced networking capabilities — now
let’s talk production management next.
6. Kubernetes in Production
Running Kubernetes reliably in production requires following sound operational
patterns and processes.
Release Management
A GitOps based approach for managing infrastructure and application definitions
via declarative configs stored and version controlled in Git provides excellent
release management.
Cluster Lifecycle
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 13/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Application Monitoring - Instrument apps for metrics, logs collection and traces.
Tools include Prometheus, Grafana, Jaeger.
Vertical Pod Autoscaling - Automatically tune resource requests and limits for
efficient resource usage.
Service Mesh Telemetry - Tools like Istio automatically gather rich telemetry
data across services.
Log Aggregation - Use tools like Fluentd, Loki and Elastic to aggregate logs.
7. Kubernetes Ecosystem
Beyond just the core project, a rich ecosystem of tools integrates with and extends
Kubernetes. Let's discuss key players.
Helm
Helm provides a package manager for deploying applications packaged as charts - a
bundle of YAML templates modeling resources required. Benefits include:
Repeatability
Parameterization
Versioning
Dependency management
Kubernetes Operators
Operators build on Kubernetes extensibility via CRDs and controllers to automate
complex stateful applications like databases in Kubernetes. Benefits include:
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 15/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Container Registries
Container registries store and distribute container images needed by Kubernetes
like:
Quay
Docker Hub
They provide optimized storage and image distribution networked with Kubernetes.
CNCF Landscape
The Cloud Native Computing Foundation serves as the hub for Kubernetes and
many adjacent projects constituting critical cloud native technologies - prominently
including service meshes and CI/CD pipelines.
Exploring the CNCF landscape provides insight into the extended tooling ecosystem
powering modern software delivery.
Automatic upgrades
Kubernetes Distributions
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 16/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
VMware Tanzu
The extensive and expanding ecosystem around Kubernetes multiplies what it can
accomplish.
Multi-tenancy
Kubernetes provides multiple isolation mechanisms for safely sharing clusters
between untrusted teams:
Identity Federation
Integrating Kubernetes identity and authentication with existing IAM systems is
crucial for unified access policies.
Standards like OIDC facilitate federation with systems like AD, LDAP etc so
Kubernetes inherits identities and associated privileges.
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 17/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Secrets Encryption
By default Kubernetes secrets get base64 encoded but remain unencrypted. For
security, enable envelope encryption provided by tools like spiffe/spire, kms
providers to encrypt secrets at rest.
Compliance Scans
Since organizations need to validate Kubernetes configuration and security controls
against compliance benchmarks continuously, tools like kube-bench and kube-
score programmatically check settings against CIS policies to maintain compliant
clusters.
Wrap Up
Finally we have it - a comprehensive roadmap taking you through the landscape of
capabilities, best practices and tools constituting Kubernetes mastery - from
fundamental concepts up through advanced security, networking and ecosystem
integrations.
Following this guide will accelerate your journey towards Kubernetes proficiency
across the various facets involved in operating production-grade container
orchestration.
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 18/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Follow
Bijit Ghosh
2024 - AI Roadmap
The year 2024 is set to be a monumental one for artificial intelligence. With new models,
funding rounds, and advancements happening at a…
1.1K 7
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 19/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Bijit Ghosh
172 1
Bijit Ghosh
Building an AI Startup-2024
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 20/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
In 2024, building an AI startup presents huge opportunities as AI continues its rapid pace of
development and integration into nearly every…
480 4
Bijit Ghosh
240 1
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 21/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
1.4K 11
Kubernetes, with its comprehensive ecosystem, offers numerous functionalities that can
significantly enhance the management, scalability…
482 4
Lists
Productivity
237 stories · 343 saves
Boost your Resume with these Five AWS Projects: Easy, Intermediate, and
Expert Levels with…
In this blog, I will share some of the projects I have completed during my AWS learning journey.
I hope they will be useful for you as…
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 23/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
632 7
2.9K 25
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 24/25
3/5/24, 10:00 AM Kubernetes Roadmap. Kubernetes has quickly become the de… | by Bijit Ghosh | Feb, 2024 | Medium
Neal Davis
113
Ignacio de Gregorio
5.9K 106
https://medium.com/@bijit211987/kubernetes-roadmap-edd06067fa72 25/25