You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 73d611b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(supervisor): optionally create a Runner k8s custom resource instead of building a pod
Adds an alternative Kubernetes workload manager behind a new
`KUBERNETES_RUN_CRD_ENABLED` setting, off by default. Instead of
building a run pod directly, it creates a `Runner` object in the
`compute.trigger.dev/v1alpha1` API group and stops, leaving pod
construction to the operator that reconciles that object. This keeps the
reasoning about uid pinning, node selection and the label set a network
policy selects on in one place instead of copying it a third time.
The Helm chart exposes it as
`supervisor.config.kubernetes.runCrdEnabled`, also off by default, which
sets that variable and grants the supervisor's Role the two writes the
backend needs: creating the `Runner`, and creating and patching the
Secret that carries the deployment token. Turning it on requires the
`Runner` CRD and a controller reconciling it to be installed, or the
create fails.
The existing pod-building path is unchanged and remains the default. The
two are mutually exclusive by construction: whichever one runs is the
only thing that creates a workload for a cold start.
Mono-RevId: 0665f61da14cbc8ec45c7fb75b013cf45f93fdc8
0 commit comments