acoustic-carpenter-78188
07/23/2026, 3:45 AMfailed to build KService for app <app-name>: K8sPod app payload is not yet supported
Why ?
We're serving a large (~tens of GB) vLLM-backed model via VLLMAppEnvironment. The model is too large to bake into the container image practically (image bloat, slow build/push/pull cycles), and we'd like fast, warm-start-friendly access to model weights already staged on a PVC on our cluster, rather than re-downloading/streaming from object storage on every cold start.
VLLMAppEnvironment currently only supports two model sources:
model_hf_path - download from Hugging Face at startup
model_path (S3-style remote path) - either download-then-load, or stream safetensors directly to GPU via the custom FlyteModelLoader (--load-format flyte-vllm-streaming)
Neither of these lets us point at a volume that's already populated and mounted, which is the standard pattern for serving large models on Kubernetes outside of Flyte.
What we tried
• Passing a flyte.PodTemplate/raw pod-spec override analogous to what's needed for regular Flyte tasks (see #2754 and our own workaround for imagePullSecrets on tasks) — rejected by the backend with K8sPod app payload is not yet supported.
Checked AppEnvironment's public dataclass fields (name, port, image, resources, env_vars, secrets, parameters, scaling, links) — none expose volumes.
• Considered subclassing AppEnvironment (as VLLMAppEnvironment does) to add this ourselves — not possible from the public SDK surface, since volume mounting requires a field in the underlying App spec sent to the backend, not something a dataclass subclass can add on its own.
Proposed API (open to alternatives)
Something along the lines of:
python
from flyte.app import Volume, VolumeMount
app = VLLMAppEnvironment(
name="my-vllm-app",
model_path="/mnt/models/my-model", # local path, not remote
model_id="my-model",
volumes=[
Volume(
name="model-storage",
persistent_volume_claim="my-model-pvc",
),
],
volume_mounts=[
VolumeMount(name="model-storage", mount_path="/mnt/models", read_only=True),
],
...
)
Or, if a lower-level but still-supported (i.e., not the rejected raw K8sPod payload) mechanism already exists internally, documentation pointing to it would also resolve this.
Why this matters beyond our specific case
Any App serving large models/datasets that are managed independently of the container image (updated on a different cadence, shared across multiple apps, staged by a separate data pipeline) hits this same gap. PVC support for Apps would bring them to parity with what's already supported for Flyte tasks.
flyteorg/flyte