Sitemap

Kubernetes — A Complete Guide

11 min readDec 23, 2024

Kubernetes is the de facto standard for deploying containerized applications on the cloud. It acts as a robust orchestrator for your containers, managing tasks like container resurrection, load balancing, and much more. For foundational knowledge, refer to my previous blogs titled, Decoding DevOps, for better understanding.

Understanding Kubernetes Architecture

For an in-depth understanding of the Kubernetes architecture, explore the official documentation: Kubernetes Architecture.

One of the key functionalities of Kubernetes is its ability to provide stable endpoints for accessing pods, even though pods themselves are ephemeral. Kubernetes services bridge this gap effectively.

Enable kubernetes in Docker Desktop, give it some time to come alive.

To check which cluster kubectl is interacting with, use:

kubectl config current-context

Why Pods?

Pods are a fundamental Kubernetes object that allow you to harness the full potential of Kubernetes. A pod encapsulates one or more containers and provides a unified environment for them.

Sample Pod Definition

apiVersion: v1
kind: Pod
metadata:
name: geeky
labels:
app.kubernetes.io/name: geeky # Standard, the broadest label
app.kubernetes.io/component: frontend # Specifies the role
app.kubernetes.io/instance: frontend #…

--

--

Bhavyansh
Bhavyansh

Written by Bhavyansh

Hey I write about Tech. Join me as I share my tech learnings and insights. 🚀 Building flux8labs.com

No responses yet