-
Notifications
You must be signed in to change notification settings - Fork 2
deployment
Magnus Hedemark edited this page Jun 10, 2026
·
1 revision
SlopSearX ships with a multi-stage Dockerfile based on python:3.12-slim.
- Base image:
python:3.12-slim - Final image size: approximately 200MB
- Health check: HTTP GET on port 8080
/health - User: non-root
- Exposed port: 8080
The docker-compose.yml defines two services:
-
slopsearx- The search application container. -
valkey- Valkey (Redis-compatible) server for caching and distributed rate limiting.
docker compose up -d
k8s/deployment.yaml defines the application deployment:
- Default replicas: 3
- Configuration via ConfigMap
- Secrets via SecretKeyRef (API keys)
- Liveness probe: HTTP GET
/health(initial delay 5s, period 10s) - Readiness probe: HTTP GET
/health(initial delay 5s, period 5s)
k8s/hpa.yaml defines autoscaling:
- Min replicas: 3
- Max replicas: 100
- Target CPU utilization: 70%
k8s/service.yaml defines a ClusterIP service:
- Type: ClusterIP
- Port: 8080
- Target port: 8080
k8s/kustomization.yaml bundles the Kubernetes manifests for aggregate deployment:
kubectl apply -k k8s/