Kubernetes
Deploy moclojer to Kubernetes - Deployments, Services, ConfigMaps, and best practices for production-ready K8s deployments with health checks and scaling.
📋 What You'll Build
🚀 Quick Start
1. ConfigMap for Configuration
# configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: moclojer-config
namespace: default
data:
moclojer.yml: |
- endpoint:
method: GET
path: /health
response:
status: 200
body: >
{"status": "ok", "service": "moclojer"}
- endpoint:
method: GET
path: /api/users
response:
status: 200
body: >
{"users": [{"id": 1, "name": "Alice"}]}2. Deployment
3. Service
📦 Deploy
🔧 Advanced Configurations
Horizontal Pod Autoscaler
Ingress (NGINX)
✅ Best Practices
📚 See Also
Last updated
Was this helpful?