Repository navigation
v0.5.0
Summary
Kubernetes-ready distribution with Helm chart, Kustomize overlays, health probe endpoints, ExternalWorker for sidecar pattern, and production Dockerfiles.
What's New
Health Probe Handlers
LivenessHandler(pool)— always returns 200 for K8s liveness probeReadinessHandler(pool)— 200 when healthy workers exist and pool is not shutting down, 503 otherwiseStartupHandler(pool)— 200 when pool has completed startup, 503 otherwisePool.startedflag tracks startup completion
ExternalWorker (Experimental)
ExternalWorkerstruct implementsworkerHandlefor pre-existing worker processes (sidecar pattern)NewExternalWorker(socketPath, connectTimeout)constructorStart(): connection test vianet.DialTimeoutIsHealthy(): connectivity probePoolOptions.ExternalMode+ExternalSocketPathsfor sidecar deployment
Helm Chart (charts/pyproc/)
- Full chart with deployment, service, serviceaccount, RBAC, HPA, PDB templates
- Health probes configured via values (liveness
/healthz, readiness/readyz, startup/startupz) - UDS emptyDir volume with Memory medium
- Pod Security Standards: runAsNonRoot, drop ALL capabilities, readOnlyRootFilesystem
helm testsupport via test-connection template
Kustomize (deploy/kustomize/)
- Base manifests converted from existing K8s documentation
- Environment overlays: dev (1 replica), staging (2 replicas), production (3 replicas + PDB)
Dockerfiles
Dockerfile: Multi-stage build (Go 1.24-alpine builder → Python 3.12-slim runtime), non-root userDockerfile.worker: Python-only image for sidecar pattern, uv package manager
Documentation
- K8s resource sizing recommendations by workload type (low-latency, batch, general)
- Pod Security Standards compliance guide (Baseline/Restricted)
- K8s troubleshooting guide (CrashLoopBackOff, probe failures, UDS permissions)
- Helm usage examples (basic + sidecar)
- Docker deployment guide rewritten (pip → uv)
CI
- Helm lint and template validation
- Kustomize build validation for all overlays
Files Changed
pkg/pyproc/health_handler.go,health_handler_test.go(new)pkg/pyproc/worker_external.go,worker_external_test.go(new)pkg/pyproc/pool.go(ExternalMode + started flag)pkg/pyproc/pool_external_test.go(new)charts/pyproc/(new — complete Helm chart)deploy/kustomize/(new — base + overlays)Dockerfile,Dockerfile.worker,.dockerignore(new)docs/deployment/kubernetes-resources.md(new)docs/deployment/kubernetes-troubleshooting.md(new)docs/deployment/docker.md(rewritten)examples/helm-basic/,examples/helm-sidecar/(new).github/workflows/ci.yml(K8s manifest validation job)
Full Changelog: v0.4.5...v0.5.0
What's Changed
New Features
- feat: K8s health probe HTTP handlers by @YuminosukeSato in #70
- feat: add production Dockerfile by @YuminosukeSato in #71
- feat: add Dockerfile.worker for sidecar pattern by @YuminosukeSato in #74
- feat: add Helm usage examples by @YuminosukeSato in #75
- feat: add Helm chart for pyproc deployment by @YuminosukeSato in #78
- feat: add Kustomize base manifests and environment overlays by @YuminosukeSato in #79
- feat: add ExternalWorker for sidecar pattern by @YuminosukeSato in #72
- feat: add ExternalMode to Pool for K8s sidecar pattern by @YuminosukeSato in #73
Documentation
- docs: add K8s resource and securityContext recommendations by @YuminosukeSato in #76
- docs: add K8s troubleshooting guide by @YuminosukeSato in #77
- ci: add PR English check and translate AGENTS.md for Codex review by @YuminosukeSato in #68
Other Changes
- ci: add Helm lint and Kustomize build validation by @YuminosukeSato in #80
Full Changelog: v0.4.3...v0.5.0