Kubernetes
Runs scaleassembly/zshot-server as a Deployment from kubernetes.yml: one replica as a non-root user with every capability dropped and a read-only root filesystem, readiness and liveness probes on /status, and a Service on port 3000. It requests 1 GiB of memory and limits the pod to 2 GiB; tune concurrency with --server-max-concurrency. Set ZSHOT_SERVER_UNHEALTHY_AT so the probes remove a pod from the Service and restart it once memory reaches --server-unhealthy-at. The manifest is exercised against every release.
The license comes from a zshot-license Secret. Add --from-literal=ZSHOT_SERVER_TOKEN_AUTH=YOUR-TOKEN to require a bearer token on every request.
kubectl create secret generic zshot-license --from-literal=ZSHOT_LICENSE=YOUR-KEY
kubectl apply -f https://zshot-cli.com/deploy/kubernetes.ymlSandbox
The pod runs with no seccomp filter, which lets Chromium’s sandbox start; RuntimeDefault blocks it. A namespace that enforces the restricted Pod Security Standard refuses an unfiltered pod, so there, place zshot-seccomp.json on each node and name it in the pod’s seccompProfile as Localhost.
Nodes that restrict unprivileged user namespaces, as Ubuntu 24.04 and later do, also need the zshot-apparmor profile, or ZShot logs that the sandbox cannot start and runs without it. Load the profile on each node:
sudo install -m 644 zshot-apparmor /etc/apparmor.d/zshot
sudo apparmor_parser -r /etc/apparmor.d/zshotThen name it in the container’s securityContext:
securityContext:
appArmorProfile:
type: Localhost
localhostProfile: zshotA pod naming the profile does not start on a node that has not loaded it.