Posts

Showing posts with the label kubernetes

Simple FastAPI App with Docker and Minikube

 Let's start with the simplest one. Which we can develop and test in our local system or laptop, or Mac. ✅ Simple FastAPI App with Docker and Minikube (Kubernetes) 📁 Folder Structure fastapi-k8s-demo/ ├── app/ │ └── main.py ├── Dockerfile ├── requirements.txt ├── k8s/ │ ├── deployment.yaml │ └── service.yaml 📄 app/main.py from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"message": "Hello from FastAPI on Kubernetes!"} 📄 requirements.txt fastapi uvicorn 📄 Dockerfile FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app/ . CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] 📄 k8s/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: fastapi-deployment spec: replicas: 1 selector: matchLabels: app: fastapi template: metadata: ...

OPEA (Open Platform for Enterprise AI)

Image
                                                                               opea.dev Recently, I have tried to deploy my multi-agent application. Which I developed on my laptop. However, I wanted to deploy it in a production-grade environment for my office's R&D POC project. Let me break down why I chose OPEA. OPEA (Open Platform for Enterprise AI) is an open-source framework designed to help you build and deploy production-grade AI applications, including multi-agent systems. 1 While Docker Compose is excellent for local development and smaller-scale deployments, OPEA aims to provide the robust infrastructure and capabilities needed for enterprise-level production environments. Here's how OPEA can help you transition your Docker Compose multi-age...