Kubernetes¶
Warning: Funnel on Kubernetes is in active development and may involve frequent updates 🚧
1. Add Helm Repo¶
Note: See Funnel's Helm Charts for the latest configuration options
helm repo add calypr https://calypr.org/helm-charts
helm repo update calypr
helm search repo calypr/funnel
2. Deploy Funnel¶
helm upgrade --install funnel calypr/funnel
kubectl rollout status deployment/funnel-server
kubectl get deployments
# NAME READY STATUS
# funnel-server 1/1 Running
4. Port-Forward for Local Access¶
kubectl port-forward svc/funnel 8000:8000
funnel task list
# {}
4. Submit Example Task¶
funnel examples hello-world > hello-world.json
funnel task create hello-world.json
# <Task ID>
funnel task get <Task ID> --view MINIMAL
# { "id": "...", "state": "COMPLETE" }
Storage Architecture¶
The following diagram shows the legacy per-task S3 volume flow. For native storage bindings and other volume options, see the Kubernetes storage guide.
Funnel uses the AWS S3 CSI Driver to provision a per-task PersistentVolume (PV) and PersistentVolumeClaim (PVC) backed by S3. This gives Worker and Executor pods ReadWriteMany access across nodes without requiring them to co-schedule.
sequenceDiagram
participant Server as Funnel Server
participant K8s as Kubernetes API
participant CSI as S3 CSI Driver
participant Worker as Worker Pod (Node A)
participant Executor as Executor Pod (Node B)
participant S3 as S3 Bucket
Server->>K8s: Create PV + PVC (s3://bucket/)
K8s->>CSI: Mount bucket → funnel-worker-pv-<taskID>
Server->>Worker: Launch Worker Job
Worker->>S3: DownloadInputs (GenericS3)
Worker->>Executor: Launch Executor Job (PVC subPath mount)
Executor->>Executor: Run task command
Executor-->>Worker: Task complete
Worker->>S3: UploadOutputs (GenericS3)
Worker->>K8s: Delete PVC + PV
Worker->>Server: Report COMPLETE
Startup cleanup¶
When the internal reconciler is enabled, backlog cleanup runs in the background so Kubernetes cleanup does not delay server startup. Periodic reconciliation starts after that cleanup finishes; the two operations do not run concurrently. Cleanup uses the server context, so stopping the server cancels in-flight cleanup requests.
Kubernetes.DisableJobCleanup skips backlog cleanup while keeping reconciliation
enabled. Kubernetes.DisableReconciler disables both automatic startup cleanup
and periodic reconciliation.
Executor image pull policy¶
Executor containers use Always by default. Set the task tag _IMAGE_PULL_POLICY
to Always, IfNotPresent, or Never to override the policy for that task:
"tags": {
"_IMAGE_PULL_POLICY": "IfNotPresent"
}
An absent or empty tag keeps the default. Invalid values fail executor setup.
The tag applies to executor containers; it does not change the worker image's
pull policy. Custom executor templates must use {{.ImagePullPolicy}} in their
imagePullPolicy field to honor the tag.