Welcome to the DedicatedToServers Blog

 

Learning Kubernetes – From the Basics to a Working Cluster

Welcome to my Kubernetes blog, where I document Kubernetes concepts, practical examples, configuration, and troubleshooting as I work through the platform. The aim is to explain Kubernetes in a straightforward way while concentrating on the knowledge and skills needed to build and manage real clusters.

Kubernetes (often abbreviated as **K8s**) is an open-source **container orchestration platform** originally developed by Google and now maintained by the Cloud Native Computing Foundation (CNCF).

Core purpose

It automates the deployment, scaling, and management of containerized applications across a cluster of machines.

Key things it does

  • Orchestration: Schedules containers onto nodes and manages their lifecycle.
  • Scaling: Automatically scales applications up or down based on demand (horizontal scaling).
  • Self-healing: Restarts failed containers, replaces unhealthy ones, and reschedules workloads when nodes die.
  • Load balancing & service discovery: Distributes traffic across containers and gives them stable network identities.
  • Rolling updates & rollbacks: Deploys new versions with zero downtime and reverts if something breaks.
  • Configuration & secrets management: Handles configs and sensitive data separately from application code.
  • Storage orchestration: Mounts storage from various sources (local, cloud, etc.) as needed.

How it works (high level)

A **cluster** consists of a **control plane** (manages the cluster) and **worker nodes** (run the workloads). You declare the **desired state** (e.g., "run 3 replicas of this app") in YAML manifests, and Kubernetes continuously works to match the actual state to that desired state. It provides a portable, vendor-neutral way to run applications consistently across on-premises, cloud, or hybrid environments, making it the de facto standard for modern container-based infrastructure.

Starting with Kubernetes

The Introduction section covers the fundamentals of Kubernetes, including what Kubernetes is, why container orchestration is useful, and the problems it is designed to solve.

From there, Kubernetes Architecture looks inside the cluster and explains components such as the API server, scheduler, controller manager, etcd, kubelet, and worker nodes. Understanding how these components communicate provides the foundation for everything that follows.

Building a Kubernetes Environment

The setup sections provide two approaches to getting started. Minikube offers a simple environment for learning and experimentation, while the Cluster Setup section explores building a multi-node Kubernetes cluster and understanding how control-plane and worker nodes operate together.

Running Applications

Once the environment is running, the focus moves to Pods and Containers, followed by Deployments and Scaling. These sections cover how applications are deployed, managed, replicated, updated, and scaled across a cluster.

Networking, Storage and Security

The Kubernetes Networking section explores how Pods and Services communicate and how Kubernetes makes applications accessible.

Storage Volumes covers persistent storage and how application data can survive beyond the lifetime of individual Pods.

The Security and RBAC section introduces authentication, authorization, permissions, roles, service accounts, and techniques for controlling access to cluster resources.

Troubleshooting Kubernetes

Finally, Troubleshooting and Debugging focuses on diagnosing real Kubernetes problems. It covers useful commands, logs, events, networking problems, failed Pods, scheduling issues, and other common cluster problems.

The goal of this blog is to build Kubernetes knowledge progressively, combining theory with practical, hands-on experience.