Skip to main content

Posts

Kubernetes layers

  Kubernetes layers you need to know as a Cloud DevOps Engineer K8s applications aren’t just about containers ~ they’re about the EXTRA layers that make them enterprise-ready. 1. Load Balancer: → This is the entry point to your architecture. → It distributes incoming network traffic across backend servers & pods. → Ensures high availability and fault tolerance. → Prevents any single pod from being overwhelmed by load. 2. Ingress Controller & Gateway API: → Ingress acts as the HTTP/S gateway managing external access to services within the cluster. → The new Gateway API goes a step further — supporting multiple protocols (HTTP, TCP, gRPC), role-based delegation, and better extensibility. → Together, they help unify traffic control across internal and external systems - a must for modern, multi-tenant architectures. 3. Kube Proxy: → Maintains network rules and forwards traffic between pods and services. → Handles communication consistency even as pods scale up or down. 4. Side...

Kubernetes Service: Routing Traffic Inside and Outside the Cluster

  Kubernetes Service: Routing Traffic Inside and Outside the Cluster In modern distributed systems, Kubernetes has become the de facto operating model for cloud-native workloads. Yet one of its most overlooked strengths is how it abstracts networking — enabling applications to communicate seamlessly inside and outside the cluster. As a Solution Architect, I often find that understanding how traffic is routed defines the reliability, scalability, and observability of the entire platform. At its core, a Kubernetes Service acts as a stable entry point that load-balances requests to dynamic sets of Pods. Behind the scenes, kube-proxy or an eBPF-based data plane programs the network layer so traffic to a Service IP is transparently distributed across healthy endpoints. This abstraction allows developers to focus on the application, while architects focus on connectivity, policy, and performance. Inside the cluster, we typically rely on ClusterIP Services to enable Pod-to-Pod communicati...

Five Essential Kubernetes ๐ฅ๐š๐ฒ๐ž๐ซ๐ฌ

 When we run apps on Kubernetes, it’s not just about containers. There are several ๐ฅ๐š๐ฒ๐ž๐ซ๐ฌ that make sure your application is reliable, secure, and works well in production. Let’s understand each layer๐Ÿ‘‡ 1️⃣ ๐‹๐จ๐š๐ ๐๐š๐ฅ๐š๐ง๐œ๐ž๐ซ This is like the ๐ฆ๐š๐ข๐ง ๐ž๐ง๐ญ๐ซ๐ฒ ๐ ๐š๐ญ๐ž to your app. It takes incoming user requests and ๐ฌ๐ก๐š๐ซ๐ž๐ฌ ๐ญ๐ก๐ž๐ฆ ๐š๐œ๐ซ๐จ๐ฌ๐ฌ ๐ฆ๐ฎ๐ฅ๐ญ๐ข๐ฉ๐ฅ๐ž ๐ฉ๐จ๐๐ฌ ๐จ๐ซ ๐ฌ๐ž๐ซ๐ฏ๐ž๐ซ๐ฌ, so one pod doesn’t get overloaded. It keeps your app ๐š๐ฏ๐š๐ข๐ฅ๐š๐›๐ฅ๐ž ๐š๐ง๐ ๐ฌ๐ฆ๐จ๐จ๐ญ๐ก even when traffic increases. 2️⃣ ๐ˆ๐ง๐ ๐ซ๐ž๐ฌ๐ฌ ๐‚๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐ž๐ซ & ๐†๐š๐ญ๐ž๐ฐ๐š๐ฒ ๐€๐๐ˆ These control ๐ก๐จ๐ฐ ๐ฎ๐ฌ๐ž๐ซ๐ฌ ๐จ๐ฎ๐ญ๐ฌ๐ข๐๐ž ๐ฒ๐จ๐ฎ๐ซ ๐œ๐ฅ๐ฎ๐ฌ๐ญ๐ž๐ซ ๐ซ๐ž๐š๐œ๐ก ๐ฒ๐จ๐ฎ๐ซ ๐ฌ๐ž๐ซ๐ฏ๐ข๐œ๐ž๐ฌ ๐ข๐ง๐ฌ๐ข๐๐ž. ๐Ÿ‘‰Ingress handles web traffic (HTTP/HTTPS). ๐Ÿ‘‰The newer Gateway API is more powerful — it supports extra protocols (like TCP, gRPC) and lets you define routes more clearly. Together, they help ๐ฆ๐š๐ง๐š๐ ๐ž ๐š๐ง๐ ๐ฌ๐ž๐œ๐ฎ๐ซ๐ž ๐ญ๐ซ๐š๐Ÿ๐Ÿ๐ข๐œ across internal and external...

Kubernetes Architecture & Components

  Kubernetes Architecture & Components Overview Kubernetes (K8s) is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications. It follows a master-worker node architecture for control and execution. Core Architecture Kubernetes architecture consists of two main layers: ✓ Control Plane (Master Node) – Manages and controls the entire cluster. ✓ Worker Nodes – Execute workloads and run containerized applications (Pods). Control Plane Components 1. API Server ✓ Central access point for all Kubernetes components. ✓ Exposes the Kubernetes API to handle REST requests. ✓ Validates and processes commands from kubectl and other components. 2. etcd ✓ A distributed key-value store maintaining cluster configuration and state. ✓ Ensures high availability and consistency of cluster data. ✓ Used as the single source of truth for all cluster information. 3. Controller Manager ✓ Runs background controller...

Linux commands

  Linux command that you should know while working in linux based system: • ps aux | grep {process} - Find that sneaky process • lsof -i :{port} - Who's hogging that port? • df -h - The classic "we're out of space" checker • netstat -tulpn - Network connection detective • kubectl get pods | grep -i error - K8s trouble finder Log related commands: • tail -f /var/log/* - Real-time log watcher • journalctl -fu service-name - SystemD log stalker • grep -r "error" . - The error hunter • zcat access.log.gz | grep "500" - Compressed log ninja • less +F - The better tail command Container cli: • docker ps --format '{{.Names}} {{.Status}}' - Clean status check • docker stats --no-stream - Quick resource check • crictl logs {container} - Raw container stories • docker exec -it - The container backdoor • podman top - Process peek inside containers System Detectives: • htop - System resource storyteller • iostat -xz 1 - Disk performance poet • free -h ...