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?