--- # K8s Init Container Patch for StatefulSet project-proj-1x1o15n1 # Adds chromium-headless-shell, ffmpeg, sox to the pod # # Apply with: # kubectl patch statefulset project-proj-1x1o15n1 --patch-file manifests/install-deps-init.yaml # # OR apply the full patch: # kubectl patch statefulset project-proj-1x1o15n1 --type='json' -p='[ # { # "op": "add", # "path": "/spec/template/spec/initContainers", # "value": [ # { # "name": "install-system-deps", # "image": "debian:trixie", # "command": ["/bin/bash"], # "args": ["-c", "apt-get update && apt-get install -y --no-install-recommends chromium-headless-shell ffmpeg sox && which chromium-headless-shell ffmpeg sox"], # "volumeMounts": [ # { # "name": "workspace", # "mountPath": "/workspace" # } # ] # } # ] # } # ]' apiVersion: apps/v1 kind: StatefulSet metadata: name: project-proj-1x1o15n1 spec: template: spec: initContainers: - name: install-system-deps image: debian:trixie command: - /bin/bash - -c - | set -e echo "Installing system dependencies: chromium-headless-shell, ffmpeg, sox..." apt-get update -qq apt-get install -y --no-install-recommends \ chromium-headless-shell \ ffmpeg \ sox echo "Verification:" which chromium-headless-shell which ffmpeg which sox ffmpeg -version | head -1 sox --version || true echo "✓ All dependencies installed successfully" volumeMounts: - name: workspace mountPath: /workspace securityContext: runAsUser: 0