timestral

by m11s

Helm chartv0.2.1App 1.0.0-cpuApache-2.0Verified publisher

Deploy Timestral, a time-series forecasting API based on Mistral Timestral

About this chart

Timestral

Deploys the Timestral forecasting API as a single Kubernetes Deployment with an internal ClusterIP Service. The process loads one checkpoint during startup and exposes forecasts on port 8000.

Image and model

Image tags follow the upstream package version (1.0.0-cpu or 1.0.0-cuda). By default, image.tag is empty and the image uses chart appVersion (the CPU variant). Set image.tag to select another tag, or image.digest to pin a published image; the digest takes precedence.

The chart defaults to Timestral-209M at pinned revision 9874d252ab0aae16f7f7c999f98f98d6ad7d8365. The image version identifies the inference package; choose the checkpoint with model.id and model.revision. The same CPU or CUDA image can load any compatible Timestral size. For example, select Timestral-123M with:

model:
  id: mistralai/Timestral-123M
  revision: 5a147287addda85f6acd8da3fb8858fe9af7e8f7

Keep the model revision pinned so restarts use the same weights.

CPU

image:
  repository: m11s/timestral
  tag: 1.0.0-cpu
  digest: sha256:REPLACE_WITH_PUBLISHED_DIGEST
model:
  device: cpu
resources:
    requests:
      cpu: "2"
      memory: 2Gi
    limits:
      memory: 4Gi
persistence:
  enabled: true
  size: 2Gi

CUDA

Set runtimeClassName: nvidia when the cluster requires its NVIDIA runtime handler. Setting model.device: cuda alone does not allocate a GPU. Select compatible NVIDIA nodes and request a GPU resource. Adjust labels and tolerations to match the cluster's device plugin and node policy.

runtimeClassName: nvidia
image:
  repository: m11s/timestral
  tag: 1.0.0-cuda
  digest: sha256:REPLACE_WITH_PUBLISHED_DIGEST
model:
  device: cuda
resources:
    requests:
      cpu: "4"
      memory: 8Gi
    limits:
      memory: 16Gi
      nvidia.com/gpu: 1
nodeSelector:
  nvidia.com/gpu.present: "true"
# tolerations:
#   - key: nvidia.com/gpu
#     operator: Exists
#     effect: NoSchedule

Cache and credentials

The chart creates a 2 GiB ReadWriteOnce PVC by default and uses a Recreate rollout strategy so two pods do not contend for a single-writer cache. Persistent caches require replicaCount <= 1, including when using an existing claim. For multiple replicas, disable persistence so each pod has an independent cache, or deploy separate releases with separate PVCs. Set persistence.existingClaim to use an existing claim; set persistence.enabled: false for an ephemeral cache. The cache is mounted at /models, and HF_HOME is set to /models/huggingface. /tmp is an emptyDir, allowing the container to run with a read-only root filesystem. The API binds to port 8000; the container port is fixed while service.port can change the in-cluster Service port.

Use runtime.extraEnv to reference a Secret for gated model access when required. Do not place tokens in Helm values committed to Git:

runtime:
  extraEnv:
    - name: HF_TOKEN
      valueFrom:
        secretKeyRef:
          name: timestral-huggingface
          key: token

The pod does not mount a service account token. It runs as nonroot, drops Linux capabilities, and disables privilege escalation by default.

API limits and probes

runtime.limits maps to the service environment contract:

ValueEnvironment variableDefault
maxRequestBytesMAX_REQUEST_BYTES8388608
maxBatchSizeMAX_BATCH_SIZE8
maxRowsPerSeriesMAX_ROWS_PER_SERIES32
maxContextStepsMAX_CONTEXT_STEPS32768
maxPredictionLengthMAX_PREDICTION_LENGTH1024
maxOutputElementsMAX_OUTPUT_ELEMENTS1000000

Startup probes allow 30 minutes for a cold checkpoint download (periodSeconds: 10, failureThreshold: 180). Readiness uses /readyz and stays false until model initialization completes. Liveness uses /healthz to check process health without running inference. Keep the startup window long enough for your storage and network conditions.

Deploy timestral with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has timestral on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charttimestral is pinned at v0.2.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply