Skip to content

## πŸ“ Author

Birat Aryal β€” birataryal.github.io
Created Date: 2025-06-18
Updated Date: Wednesday 18th June 2025 10:52:28
Website - birataryal.com.np
Repository - Birat Aryal
LinkedIn - Birat Aryal
DevSecOps Engineer | System Engineer | Cyber Security Analyst | Network Engineer

☸️ Kubernetes Introduction

Kubernetes (often abbreviated as K8s) is an open-source container orchestration platform designed to automate the deployment, scaling, and management of containerized applications. Originally developed by Google and now maintained by the Cloud Native Computing Foundation (CNCF), Kubernetes has become the industry standard for managing containerized workloads.


🧩 Why Kubernetes?

Kubernetes solves many common problems in modern cloud-native deployments:

  • πŸ” Automated Rollouts & Rollbacks: Deploy changes gradually and automatically revert if issues are detected.

  • πŸ“¦ Service Discovery & Load Balancing: Distribute traffic evenly across healthy pods.

  • βš–οΈ Horizontal Scaling: Automatically scale applications based on CPU/memory or custom metrics.

  • ♻️ Self-healing: Replace failed containers, reschedule pods on healthy nodes.

  • πŸ—‚οΈ Config & Secrets Management: Decouple environment-specific configuration from code.

  • πŸ”’ RBAC & Network Policies: Secure workloads through fine-grained access control and isolation.


πŸ“ Core Concepts

  • Pod: The smallest deployable unit in Kubernetes, which can contain one or more containers.

  • Service: An abstraction that defines a logical set of pods and a policy to access them.

  • Deployment: Manages replica sets to maintain a desired number of pod replicas.

  • ReplicaSet: Ensures a specified number of pod replicas are running at any given time.

  • ConfigMap: Stores non-sensitive configuration data.

  • Secret: Stores sensitive information like passwords, tokens, or SSH keys.

  • Namespace: Provides logical isolation of resources.

  • Volume: Persistent storage abstraction used by pods.


🌎 Kubernetes Use Cases

  • Microservice architectures

  • Continuous deployment (CI/CD)

  • Multi-cloud and hybrid deployments

  • Serverless computing (via KNative, for example)

  • Infrastructure abstraction and resource optimization