Kubernetes has become the de facto standard for container orchestration. In this post, I’ll walk you through the fundamentals and show you how to deploy your first application.

What is Kubernetes?

Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.

Key Concepts

Pods

The smallest deployable unit in Kubernetes. A Pod can contain one or more containers.

apiVersion: v1
kind: Pod
metadata:
  name: my-app
spec:
  containers:
  - name: app
    image: nginx:latest
    ports:
    - containerPort: 80

Deployments

Deployments provide declarative updates for Pods and ReplicaSets.

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

Getting Started

  1. Install kubectl
  2. Set up a local cluster with Minikube or Kind
  3. Deploy your first application
  4. Expose it via a Service

Stay tuned for more in-depth Kubernetes tutorials!