889 B
889 B
Quick Start - Kubernetes in 5 Minutes
🎯 Goal
Run Kubernetes locally in containers and deploy your apps.
⚡ Fast Track
1. Install k3d (if not using Docker Desktop)
# Windows: Download from https://k3d.io/
# Or use Docker Desktop Kubernetes (easier!)
2. Create Cluster
k3d cluster create mycluster --servers 1 --agents 2
3. Build Images
cd E:\nats\kubernetes
docker build -f Dockerfile --target api -t fastapi-backend:latest .
docker build -f Dockerfile --target worker -t nats-worker:latest .
4. Update Manifests
manifests/fastapi-deployment.yaml: Change image tofastapi-backend:latestmanifests/worker-deployment.yaml: Change image tonats-worker:latest
5. Deploy
./deploy.sh
6. Check
kubectl get pods -n nats-backend
🎉 Done!
Your apps are running in Kubernetes!