Kubernetes

Production-Grade Container Orchestration

Kubernetes Overview

Kubernetes is an open-source container-orchestration system for automating computer application deployment, scaling, and management. It was originally designed by Google and is now maintained by the Cloud Native Computing Foundation.

Developer

Cloud Native Computing Foundation

Initial release

June 7, 2014

Written in

Go

License

Apache License 2.0

Key Features

Installation & Setup

Installation Steps:

  1. Install a container runtime like Docker
  2. Install kubectl (Kubernetes command-line tool)
  3. Choose a Kubernetes distribution:
    • Minikube for local development
    • kubeadm for custom clusters
    • Managed services (EKS, GKE, AKS)
  4. Verify installation: kubectl version
  5. Configure kubectl to connect to your cluster

Core Concepts:

Pods

Smallest deployable units in Kubernetes

Deployments

Manage replicated applications

Services

Network abstraction to access pods

Namespaces

Virtual clusters within a physical cluster

Productivity Tips

kubectl Aliases

Create aliases for common commands like:

alias k=kubectl
alias kgp="kubectl get pods"

Context Switching

Use kubectl config use-context to switch between clusters.

kubectl explain

Use kubectl explain to understand resource fields.

Port Forwarding

Access services locally with kubectl port-forward.

Learning Resources