Implementing Pyvorin on Kubernetes

May 30, 2026 | 5 min read

Init Containers

Pre-compile hot functions in an init container before the main app starts.

initContainers:
- name: pyvorin-compile
  image: myapp:latest
  command: ["pyvorin", "compile", "app.py", "--function", "handler"]

Shared Cache Volume

Mount an emptyDir volume at /root/.pyvorin/cache shared between containers.

Helm Chart

Include Pyvorin compilation as a Helm pre-install hook.