Kubernetes

Container Orchestration Platform

K8s Architecture

Master Node

  • • API Server
  • • Scheduler
  • • Controller Manager
  • • etcd

Worker Node

  • • Kubelet
  • • Kube-proxy
  • • Container Runtime
  • • Pods

Core Concepts

Pods

Smallest deployable units

Deployments

Manage replica sets

Services

Network abstraction

ConfigMaps

Configuration data

kubectl Commands

kubectl get pods - List pods

kubectl describe pod <name> - Pod details

kubectl logs <pod> - View logs

kubectl apply -f deployment.yaml - Deploy

Deployment Example

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:latest
        ports:
        - containerPort: 80

Troubleshooting Pods

  • ✓ Check pod status and events
  • ✓ View container logs
  • ✓ Inspect resource limits
  • ✓ Verify image pull

Key Takeaways

  • ✓ K8s orchestrates containers at scale
  • ✓ Master and worker node architecture
  • ✓ Pods are the basic unit
  • ✓ kubectl is your main tool
1 / 7