runtraj.execution.KubernetesConfig#
- class runtraj.execution.KubernetesConfig(*, image: str | None = None, completions: Annotated[int, Ge(ge=1)] = 1, parallelism: Annotated[int | None, Ge(ge=1)] = None, cpus: Annotated[int, Ge(ge=1)] = 1, memory: str | None = None, namespace: str | None = None, inputs: str | None = None, volumes: list[runtraj.execution.config.Volume] = <factory>, secrets: list[str] = <factory>, service_account: str | None = None, active_deadline_seconds: Annotated[int | None, Ge(ge=1)] = None, fetch: bool = False) None[source]#
The Kubernetes indexed Job a project’s releases run as: the
kubernetesblock ofexecution.The releases are split among
completionstasks, each a pod that runscpusof them at once. The settings use Kubernetes’ own names and units.imageis required: runtraj publishes no image, since an image has to carry the transport model (HYSPLIT’shycs_std) and the stages a project names.
Parameters#
Parameter |
Description |
Default |
|---|---|---|
|
Container image of the pods, with runtraj, the transport model and the project’s stages. Required with |
|
|
Number of tasks (pods to complete), which the releases are split evenly among. |
|
|
Most pods running at once. Unset runs every task at once. |
|
|
Releases each pod runs at once, and the CPUs each pod requests. |
|
|
Memory each pod requests, and its limit, in Kubernetes’ binary units such as |
|
|
Namespace of the Job. Unset is |
|
|
Bucket URL the project’s inputs ( |
|
|
PersistentVolumeClaims mounted in every pod ( |
|
|
Secrets whose keys become each pod’s environment variables, such as a bucket’s credentials. |
|
|
Service account of the pods, on a cluster that grants bucket access through one. |
|
|
Seconds the whole Job may run before Kubernetes stops it. Unset lets it run as long as its simulations take. |
|
|
Get the met files once, before the pods run, for a met with |
|