NarwhalFleet reference¶
A NarwhalFleet holds the deployment inputs of one fleet, on SSH hosts and on Kubernetes. narwhal deploy --fleet reads it: on SSH hosts the workstation runs the stage graph from it, and on Kubernetes the workstation applies it unchanged, apart from spec.until and spec.stopped, and the fleet controller runs the stage graph and writes what it observed to the status. A namespace holds one fleet, named fleet.
Most fields hold on both targets. spec.ssh holds what only SSH hosts need: the hosts, the routers, the monitoring stack and the secrets file. The controller ignores it, so one file can describe a fleet for both. The fields only a cluster reads, such as spec.engines.modelVolume, spec.controlTokenSecret and spec.routers, are ignored on SSH hosts. The Target column of Fields names which target reads each field.
spec.controller, spec.serving and spec.recovery hold the router fleet file's sections of the same names, with its keys in camelCase, on both targets. A key left out keeps the router's default, which the table states, and fleet-limits writes the keys set into the router's fleet file. A change to them reruns fleet-limits, preflight, router-start and trial. Choosing admission, queue and retry settings explains the serving and recovery settings.
The API group narwhal-inference.com is a domain the project holds. Every label, annotation, condition type, scheduling gate and Lease name derives from it. The version v1alpha1 will change before the resource reaches v1. A cluster that holds fleets of the earlier group narwhal.example.com moves each one as in Moving a cluster to the new group.
The narwhal chart installs the schema below from its crds/ directory, deploy/helm/narwhal/crds. kubectl explain narwhalfleet.spec prints the same descriptions from a cluster.
On SSH hosts¶
This fleet runs two engines on two hosts, with a router pair behind HAProxy and the witness on a third host, as narwhal deploy init --router-pair writes it. Every field it leaves out takes the default the Fields table states, such as each engine's ports, the profiling and calibration lengths, the fabric workload and the HAProxy image:
apiVersion: narwhal-inference.com/v1alpha1
kind: NarwhalFleet
metadata:
name: fleet
spec:
engines:
image: sha256:<image ID>
model:
name: <served model name>
treeSha256: <model_tree_sha256 of the staged checkpoint>
fabricInterface: eth1
nodes:
- node: host-a
- node: host-b
slo:
ttftS: "2.0"
tpotS: "0.1"
release:
version: "<version>"
manifestSha256: <SHA-256 of narwhal-release-manifest.json>
ssh:
knownHosts: config/ssh.known_hosts
secretsFile: config/fleet-secrets.yaml
hosts:
- name: host-a
destination: deploy@<host-a>
- name: host-b
destination: deploy@<host-b>
- name: host-c
destination: deploy@<host-c>
router:
url: http://<host-a address>:8000
standby:
host: host-b
url: http://<host-b address>:8000
loadBalancer:
host: host-c
url: http://<host-c address>:8080
lease:
witnessHost: host-c
modelDir: /srv/models/<model>
runDir: /srv/narwhal/runs
Each entry of engines.nodes names a host of ssh.hosts, and engines that name one host share it. The primary router runs on engine 1's host unless ssh.router.host names another, and HAProxy on the primary router's host unless ssh.loadBalancer.host does. Without ssh.standby, the fleet runs one router with no load balancer, lease or failover. On SSH hosts the engine image may be an image ID, since every host loads it, while a cluster pulls it by registry digest. A fleet on SSH hosts must set release: the hosts run every Narwhal command from the narwhal-host image of that release's manifest.
ssh.secretsFile names the file that holds the secrets, which never go in the fleet file. It is YAML, a regular file you own at mode 0600 or 0400; narwhal deploy refuses it otherwise, and refuses a key it does not know:
routerToken: <64 hex digits>
engineKey: <engine API key>
sshPasswords:
host-a: <SSH password of host-a>
routerToken is required. engineKey sets the engine API key, at least as long as the control token, modelToken the access token of a private spec.engines.model.fetch source, and sshPasswords a password for each host by name; a host without one uses a key or the SSH agent. Deployment inputs explains how the SSH target uses each field.
On Kubernetes¶
This fleet runs two engines on two named nodes. The engine image is pinned by digest, HAProxy and the fabric Jobs run the narwhal chart's images, and the fleet names its own Secrets and checkpoint digest:
apiVersion: narwhal-inference.com/v1alpha1
kind: NarwhalFleet
metadata:
name: fleet
namespace: narwhal
spec:
engines:
image: registry.example.com/engine@sha256:<64 hex digits>
model:
name: <served model name>
treeSha256: <model_tree_sha256 of the staged checkpoint>
modelVolume:
persistentVolumeClaim:
claimName: models
resources:
gpu: gpu.example.com/gpu
rdma: rdma.example.com/hca
ports:
engine: 8001
attestation: 8101
sideChannel: 5601
ucxTcpPortRange: 20000-20099
nodes:
- node: gpu-node-a
fabricInterface: eth1
rdma:
gidIndex: 3
roceMode: v2
- node: gpu-node-b
fabricInterface: eth1
rdma:
gidIndex: 3
roceMode: v2
apiKeySecret:
name: engine-key-v1
key: key
launch:
- name: NARWHAL_TRANSFER_TRANSPORT
value: ucx_rdma
- name: NARWHAL_TRANSFER_NET_DEVICES
value: mlx5_0:1
- name: NARWHAL_TRANSFER_DEVICES
value: '["/dev/infiniband/uverbs0"]'
slo:
ttftS: "2.0"
tpotS: "0.1"
routerOverheadS: "0.02"
firstTokenMarginS: "0.5"
profiling:
prefillLens: [512, 2048, 8192]
decodeInputLens: [512, 2048, 8192]
warmupRequests: 2
calibration:
inputTokens: [512, 2048, 8192]
samples: 100
observationTimeoutS: "120"
fabric:
workload:
promptTokens: 8192
handoffsPerS: "4"
burst: 8
transferBudgetS: "0.5"
headroom: "1.5"
testPort: 18515
controlTokenSecret:
name: router-token-v1
key: token
A cluster fleet also needs metadata.namespace and engines.modelVolume. Everything else above may be left out on a cluster. Without engines.nodes, discover lays the engines out on every Ready, schedulable node that offers engines.resources.gpu, or those engines.nodeSelector and engines.nodeCount keep. engines.tolerations lets the engines run on nodes with the taints it matches. Without engines.apiKeySecret and controlTokenSecret, the controller generates the Secrets narwhal-engine-key and narwhal-router-token, which the fleet owns. Without engines.model.treeSha256, the first discover pins the tree the nodes hold, and status.model.treeSha256 reports it. Without engines.image, the engines run the image the narwhal chart names for the engine backend; a chart that names none refuses the fleet with reason InputRefused. Applying the fleet describes each. Decimal fields such as slo.ttftS are strings, as the Kubernetes API conventions keep floating point out of a spec. The values above show the shape only. Deployment inputs explains how to choose them, and Moving from an .env to a fleet file names the field of each variable an .env held.
Engines on several nodes transfer KV over ucx_rdma unless engines.launch sets NARWHAL_TRANSFER_TRANSPORT to ucx_tcp; engines on one node take ucx_tcp unless it sets ucx_rdma. Every engine of a fleet takes the same transport. A ucx_rdma engine takes the HCA port in NARWHAL_TRANSFER_NET_DEVICES and the verbs device in NARWHAL_TRANSFER_DEVICES, which discovery requires, and engines.resources.rdma must hold only that HCA on each engine node, shared by the engine pods and the fabric Jobs, as Cluster requirements describes; each pod refuses another HCA. Each engine's rdma gives the GID index and RoCE mode fabric-budget needs. Two engines may share a node, and then share its HCA. Engine pods run on the node's host network, so give each engine after the first its own ports in its entry of engines.nodes, and give each its GPUs with NARWHAL_NODE_<n>_GPU_IDS in engines.launch:
nodes:
- node: gpu-node-a
fabricInterface: eth1
- node: gpu-node-a
fabricInterface: eth2
ports:
engine: 8002
attestation: 8102
sideChannel: 5602
ucxTcpPortRange: 20100-20199
launch:
- name: NARWHAL_NODE_1_GPU_IDS
value: "0"
- name: NARWHAL_NODE_2_GPU_IDS
value: "1"
The API server refuses an engine's port inside its own UCX TCP port range. The controller refuses, with reason InputRefused, a fleet whose engines on one node share a port or overlapping UCX TCP port ranges, or whose engine port is fabric.testPort.
Each GPU node runs the engines of one fleet only. The engine pods use the host network, and the controller sees only its own namespace, so two fleets on one node would take each other's ports and GPUs. Give each fleet its own nodes, with engines.nodeSelector or engines.nodes. discover fails, rather than starting an engine, when another workload holds the node's GPUs or listens on the engine's ports, as Discovering the engine nodes describes.
Fields¶
apiVersion: narwhal-inference.com/v1alpha1, kind: NarwhalFleet, scope Namespaced, plural narwhalfleets, category narwhal. The API server refuses a fleet that breaks these rules:
- a namespace holds one NarwhalFleet, and it is named fleet.
- spec.engines.modelVolume is required on Kubernetes.
- a cluster pulls spec.engines.image, so name it by registry digest, not image ID.
- a cluster pulls spec.images.haproxy, so name it by registry digest, not image ID.
- controlTokenSecret names the Secret and key of engines.apiKeySecret; keep the control token in its own Secret.
Spec¶
Target names which target reads a field: SSH hosts, Kubernetes, or both. A field marked Yes is required whenever the field that holds it is set; one marked SSH or Kubernetes is required on that target only. Every other field is optional, and the description states its default where it has one.
| Field | Type | Target | Required | Description |
|---|---|---|---|---|
spec.release |
object | Both | The Narwhal release the fleet deploys: narwhal deploy reads its release manifest, from --release-manifest or the GitHub release, and refuses one whose SHA-256 differs. On Kubernetes the controller reads the narwhal chart's releaseManifest, refuses the fleet unless it matches and names the chart's images, and runs its images wherever the fleet names none. | |
spec.release.version |
string | Both | Yes | The release, MAJOR.MINOR.PATCH. At most 32 characters. |
spec.release.manifestSha256 |
string | Both | Yes | The SHA-256 of the release's narwhal-release-manifest.json. At most 64 characters. |
spec.images |
object | Both | The images the fleet runs besides the engine's, each in place of the release's. The routers, gate Jobs and attestation sidecars run the controller's own image on Kubernetes, which the narwhal chart's images.narwhal pins. Default {}. |
|
spec.images.haproxy |
string | Both | The HAProxy image of a router pair, by registry digest. SSH hosts run the release manifest's, which this field may only repeat. On Kubernetes, by default the manifest of spec.release names it, and without spec.release the narwhal chart's images.haproxy. At most 512 characters. | |
spec.images.host |
string | Kubernetes | The narwhal-host image, by registry digest, which the fabric Jobs run iperf3 and ib_write_bw from. By default the manifest of spec.release names it; without spec.release, the narwhal chart's images.host. At most 512 characters. | |
spec.engines |
object | Both | Yes | The engines. API server rule: nodes places every engine itself; leave out nodeCount and nodeSelector. |
spec.engines.image |
string | Both | SSH | The engine image: on SSH hosts its image ID, sha256: |
spec.engines.model |
object | Both | Yes | The checkpoint the engines serve. API server rule: set file and fileSha256 together. API server rule: set treeSha256 with fetch: the model stage checks the fetched tree against it. |
spec.engines.model.name |
string | Both | Yes | The served model name. 1 to 256 characters. |
spec.engines.model.treeSha256 |
string | Both | SSH | The checkpoint's model_tree_sha256, required on SSH hosts and with fetch. Without it on Kubernetes, the first discover that passes pins the tree every engine node holds, reports it in status.model.treeSha256, and every later discover of the fleet refuses another tree. At most 64 characters. |
spec.engines.model.file |
string | Both | For an engine that serves one model file, its path below spec.ssh.modelDir on SSH hosts, or in the model volume on Kubernetes. At most 1024 characters. API server rule: must not hold a . or .. segment. | |
spec.engines.model.fileSha256 |
string | Both | The model file's SHA-256. At most 64 characters. | |
spec.engines.model.fetch |
object | Both | Where the model stage fetches the checkpoint from, before discovery. The stage writes the tree into the model volume, and runs again when a field here or treeSha256 changes. Leave it out to stage the checkpoint by hand. API server rule: set revision for an hf:// source, and only for one. API server rule: set region only for an s3:// source. | |
spec.engines.model.fetch.source |
string | Both | Yes | hf:// |
spec.engines.model.fetch.revision |
string | Both | For an hf:// source, the full 40-character commit hash to fetch. A branch or tag can move, so neither is accepted. At most 40 characters. | |
spec.engines.model.fetch.endpoint |
string | Both | The service's https URL, for a Hub mirror or an S3-compatible store other than AWS. Defaults to https://huggingface.co, or the AWS endpoint of region. At most 512 characters. | |
spec.engines.model.fetch.region |
string | Both | For an s3:// source, the bucket's region, which signs each request. Defaults to us-east-1. At most 32 characters. | |
spec.engines.model.fetch.tokenSecret |
object | Kubernetes | The Secret that holds the access token: a Hub token, or |
|
spec.engines.model.fetch.tokenSecret.name |
string | Kubernetes | Yes | The Secret's name. At most 253 characters. |
spec.engines.model.fetch.tokenSecret.key |
string | Kubernetes | Yes | The key in the Secret. At most 253 characters. |
spec.engines.modelVolume |
object | Kubernetes | Kubernetes | The volume that serves the staged checkpoint to every engine pod, read-only. Set exactly one source. API server rule: set exactly one of persistentVolumeClaim, hostPath, nfs, csi. |
spec.engines.modelVolume.persistentVolumeClaim |
object | Kubernetes | A PersistentVolumeClaim in the fleet's namespace. | |
spec.engines.modelVolume.persistentVolumeClaim.claimName |
string | Kubernetes | Yes | The claim's name. At most 253 characters. |
spec.engines.modelVolume.persistentVolumeClaim.readOnly |
boolean | Kubernetes | Always true: engines read the model and never write it. Default true. API server rule: the model volume is mounted read-only. |
|
spec.engines.modelVolume.hostPath |
object | Kubernetes | A directory on every engine node. The controller refuses it unless the cluster admin lists hostPath in the narwhal chart's modelVolumeSources and a prefix that holds it in modelHostPathPrefixes, which is empty by default. | |
spec.engines.modelVolume.hostPath.path |
string | Kubernetes | Yes | The directory's normalised absolute path on the node. At most 4096 characters. API server rule: must not hold a . or .. segment. API server rule: must not be or lie in a node's system, kubelet or container runtime directory. |
spec.engines.modelVolume.hostPath.type |
string | Kubernetes | Directory: the kubelet refuses a path that is not an existing directory. One of Directory. Default Directory. |
|
spec.engines.modelVolume.nfs |
object | Kubernetes | An NFS export. The controller refuses it unless the cluster admin lists nfs in the narwhal chart's modelVolumeSources, its server in modelNfsServers and a directory that holds its path in modelNfsPathPrefixes, and refuses one that is, holds or lies in the export behind the state volume. | |
spec.engines.modelVolume.nfs.server |
string | Kubernetes | Yes | The NFS server's host name or address. At most 253 characters. |
spec.engines.modelVolume.nfs.path |
string | Kubernetes | Yes | The exported directory. At most 4096 characters. API server rule: must not hold a . or .. segment. |
spec.engines.modelVolume.nfs.readOnly |
boolean | Kubernetes | Always true: engines read the model and never write it. Default true. API server rule: the model volume is mounted read-only. |
|
spec.engines.modelVolume.csi |
object | Kubernetes | A CSI ephemeral volume. The controller refuses it unless the cluster admin lists csi in the narwhal chart's modelVolumeSources and its driver in modelCsiDrivers. A listed driver must not reach the state volume's storage: the controller can refuse only server and share attributes, as NFS CSI drivers take them, that name the export behind the state volume. | |
spec.engines.modelVolume.csi.driver |
string | Kubernetes | Yes | The CSI driver's name. At most 63 characters. |
spec.engines.modelVolume.csi.readOnly |
boolean | Kubernetes | Always true: engines read the model and never write it. Default true. API server rule: the model volume is mounted read-only. |
|
spec.engines.modelVolume.csi.volumeAttributes |
map of strings | Kubernetes | The driver's volume attributes. At most 32 entries. API server rule: an attribute name holds at most 253 characters. | |
spec.engines.resources |
object | Kubernetes | The device plugins' extended resources, and the engine pods' RuntimeClass. Default {}. API server rule: gpu and rdma must name two resources. |
|
spec.engines.resources.gpu |
string | Kubernetes | The GPU device plugin's extended resource name, |
|
spec.engines.resources.rdma |
string | Kubernetes | The RDMA device plugin's extended resource name, which ucx_rdma engines need. On each engine node it holds only the HCA the engine's NARWHAL_TRANSFER_NET_DEVICES names, shared by the engine pods and the fabric Jobs. At most 316 characters. API server rule: the kubernetes.io and k8s.io domains are reserved. | |
spec.engines.resources.runtimeClassName |
string | Kubernetes | The RuntimeClass of nodes whose default container runtime exposes no GPUs. At most 253 characters. | |
spec.engines.fabricInterface |
string | Both | The network interface that carries every engine's KV transfers, unless its entry of nodes sets its own. Without either, discover derives each engine's: the chosen HCA's interface for ucx_rdma, else the default route's. At most 15 characters. | |
spec.engines.rdma |
object | Both | The RDMA port settings of every ucx_rdma engine, unless its entry of nodes sets its own. Without either, discover derives each engine's from its HCA port. | |
spec.engines.rdma.gidIndex |
integer | Both | The GID index of the HCA port. From 0 to 255. | |
spec.engines.rdma.roceMode |
string | Both | v2 or v1 for RoCE, or infiniband for a native InfiniBand port. One of v2, v1, infiniband. |
|
spec.engines.ports |
object | Both | The ports every engine serves on, unless its entry of nodes sets its own. Engine n, the first being 1, takes by default engine port 8000+n, attestation port 9000+n, side channel port 5600+n and the UCX TCP ports from 20000+100(n-1) for 100 ports, so engines that share a host never share a port. API server rule: the engine, attestation and side channel ports must differ. API server rule: the engine, attestation and side channel ports must lie outside the UCX TCP port range. | |
spec.engines.ports.engine |
integer | Both | The engine's HTTP port. From 1 to 65535. | |
spec.engines.ports.attestation |
integer | Both | The attestation sidecar's HTTP port. From 1 to 65535. | |
spec.engines.ports.sideChannel |
integer | Both | The port the engine's KV connector listens on for its peers' handshakes. From 1 to 65535. | |
spec.engines.ports.ucxTcpPortRange |
string | Both | LOW-HIGH, the ports UCX TCP listeners take. At most 11 characters. | |
spec.engines.nodes |
list of objects | Both | The engines, one entry each, in place of the engines discover derives from the hosts or nodes. Without it, every host in ssh.hosts, or on Kubernetes the nodes nodeCount and nodeSelector choose, runs the fewest engines each that give the fleet two, and on Kubernetes keep two through the loss of any one node where their GPUs allow, each engine with an equal share of the GPUs. With gpusPerEngine on Kubernetes, each node runs as many engines as its GPUs hold. 2 to 64 items. | |
spec.engines.nodes[].node |
string | Both | Yes | On SSH hosts, the name of the engine's host in spec.ssh.hosts; on Kubernetes, the node its pod runs on. At most 253 characters. |
spec.engines.nodes[].fabricInterface |
string | Both | The network interface that carries this engine's KV transfers, in place of engines.fabricInterface and the one discover derives. At most 15 characters. | |
spec.engines.nodes[].rdma |
object | Both | This engine's RDMA port settings, in place of engines.rdma and those discover derives. | |
spec.engines.nodes[].rdma.gidIndex |
integer | Both | The GID index of the HCA port. From 0 to 255. | |
spec.engines.nodes[].rdma.roceMode |
string | Both | v2 or v1 for RoCE, or infiniband for a native InfiniBand port. One of v2, v1, infiniband. |
|
spec.engines.nodes[].ports |
object | Both | This engine's ports in place of engines.ports. Engines that share a host or node need ports no other engine there uses: engine pods run on the node's host network, and the controller checks them. API server rule: the engine, attestation and side channel ports must differ. API server rule: the engine, attestation and side channel ports must lie outside the UCX TCP port range. | |
spec.engines.nodes[].ports.engine |
integer | Both | The engine's HTTP port. From 1 to 65535. | |
spec.engines.nodes[].ports.attestation |
integer | Both | The attestation sidecar's HTTP port. From 1 to 65535. | |
spec.engines.nodes[].ports.sideChannel |
integer | Both | The port the engine's KV connector listens on for its peers' handshakes. From 1 to 65535. | |
spec.engines.nodes[].ports.ucxTcpPortRange |
string | Both | LOW-HIGH, the ports UCX TCP listeners take. At most 11 characters. | |
spec.engines.gpusPerEngine |
integer | Both | How many GPUs each engine takes, which sets each engine pod's GPU request on Kubernetes. Without it, each engine takes an equal share of its host's or node's GPUs. On Kubernetes without nodes, it must divide each node's GPUs, and each node runs as many engines as its GPUs hold. On SSH hosts it needs nodes, and each host needs that many GPUs for each engine nodes places there. From 1 to 64. | |
spec.engines.nodeCount |
integer | Kubernetes | How many nodes the engines run on: the first, by name, of the Ready, schedulable nodes that offer the GPU resource and match nodeSelector. Every such node by default. From 1 to 64. | |
spec.engines.nodeSelector |
map of strings | Kubernetes | The labels a node must carry for the engines to run on it. At most 16 entries. API server rule: a label key holds at most 317 characters. | |
spec.engines.tolerations |
list of objects | Kubernetes | The tolerations of the engine pods and of the gate Jobs that run on an engine node, so the engines run on nodes with these taints. At most 16 items. | |
spec.engines.tolerations[].key |
string | Kubernetes | The taint key it matches. Without it, operator Exists matches every taint. At most 317 characters. | |
spec.engines.tolerations[].operator |
string | Kubernetes | Equal matches the taint's key and value, Exists its key alone. Default Equal. One of Equal, Exists. |
|
spec.engines.tolerations[].value |
string | Kubernetes | The taint value Equal matches. At most 63 characters. | |
spec.engines.tolerations[].effect |
string | Kubernetes | The taint effect it matches. Without it, every effect. One of NoSchedule, PreferNoSchedule, NoExecute. |
|
spec.engines.tolerations[].tolerationSeconds |
integer | Kubernetes | With effect NoExecute, how long a pod stays on its node once the taint appears. Without it, the pod stays. From 0 to 604800. | |
spec.engines.apiKeySecret |
object | Kubernetes | The Secret that holds the engines' API key. The key check refuses a key under 32 random bytes before any engine starts. Name a new Secret to rotate the key. Without it, the controller generates the Secret narwhal-engine-key, key key, which the fleet owns. | |
spec.engines.apiKeySecret.name |
string | Kubernetes | Yes | The Secret's name. At most 253 characters. |
spec.engines.apiKeySecret.key |
string | Kubernetes | Yes | The key in the Secret. At most 253 characters. |
spec.engines.launch |
list of objects | Both | More launch inputs of the engine backend, as the variables discovery reads, such as NARWHAL_ENGINE_BACKEND or NARWHAL_TRANSFER_NET_DEVICES. A name another field of the fleet sets, or that names a credential, is refused. At most 64 items. Each item's name is unique. |
|
spec.engines.launch[].name |
string | Both | Yes | The variable's name. At most 128 characters. API server rule: another field of the fleet sets this variable, or it names a credential, which belongs in engines.apiKeySecret or controlTokenSecret. |
spec.engines.launch[].value |
string | Both | Yes | The variable's value. At most 4096 characters. |
spec.slo |
object | Both | The fleet's service-level objective, in seconds. Without ttftS and tpotS, fleet-limits derives both from the profiles and calibration and marks them derived. Default {}. API server rule: set both spec.slo.ttftS and spec.slo.tpotS, or neither. |
|
spec.slo.ttftS |
string | Both | The time-to-first-token target. At most 16 characters. API server rule: must be greater than 0. | |
spec.slo.tpotS |
string | Both | The time-per-output-token target. At most 16 characters. API server rule: must be greater than 0. | |
spec.slo.routerOverheadS |
string | Both | The router's own share of each request, which router-start measures. At most 16 characters. Default 0.05. |
|
spec.firstTokenMarginS |
string | Both | Seconds the first-token deadline adds to the calibrated candidate. At most 16 characters. Default 0.1. API server rule: must be greater than 0. |
|
spec.controller |
object | Both | The role controller of the routers. A field left out keeps the router's default. | |
spec.controller.advisory |
boolean | Both | Advise role changes without applying them. Default false. | |
spec.controller.minPrefill |
integer | Both | Engines the prefill role keeps at least. Default 1. From 0 to 2147483647. | |
spec.controller.minDecode |
integer | Both | Engines the decode role keeps at least. Default 1. From 0 to 2147483647. | |
spec.controller.monitorIntervalS |
string | Both | Seconds between controller ticks. Default "1.0". At most 16 characters. | |
spec.controller.monitorFailureLimit |
integer | Both | Failed ticks in a row before the controller reports itself unhealthy. Default 5. From 0 to 2147483647. | |
spec.controller.flipHistory |
integer | Both | Role changes the controller keeps in history. Default 1000. From 0 to 2147483647. | |
spec.controller.thresholds |
object | Both | The thresholds settings. | |
spec.controller.thresholds.expand |
string | Both | Pressure that grows a role. Default "1.0". At most 16 characters. | |
spec.controller.thresholds.shrink |
string | Both | Pressure that shrinks a role. Default "0.5". At most 16 characters. | |
spec.controller.thresholds.cooldownS |
string | Both | Seconds between role changes. Default "10.0". At most 16 characters. | |
spec.controller.thresholds.sustainedIntervals |
integer | Both | Ticks a pressure must last before a role changes. Default 3. From 0 to 2147483647. | |
spec.controller.thresholds.dwellS |
string | Both | Seconds an engine stays in a role. Default "0.0". At most 16 characters. | |
spec.controller.thresholds.panicRatio |
string | Both | Pressure that skips the cooldown. Default "0.0". At most 16 characters. | |
spec.controller.thresholds.flipResidentGuard |
integer | Both | Resident requests above which an engine keeps its role. Default 0. From 0 to 2147483647. | |
spec.controller.reactive |
object | Both | The reactive settings. | |
spec.controller.reactive.windowS |
string | Both | Seconds of demand evidence kept. Default "120.0". At most 16 characters. | |
spec.controller.reactive.evidenceSpanS |
string | Both | Seconds of evidence a decision needs. Default "60.0". At most 16 characters. | |
spec.controller.reactive.evidenceMaxSpanS |
string | Both | Seconds of evidence a decision reads at most. Default "120.0". At most 16 characters. | |
spec.controller.reactive.evidenceMinArrivals |
integer | Both | Arrivals the evidence needs. Default 10. From 0 to 2147483647. | |
spec.controller.reactive.demandRiseTolerance |
string | Both | Rise in demand a decision tolerates. Default "0.25". At most 16 characters. | |
spec.controller.reactive.confirmations |
integer | Both | Decisions in a row before acting. Default 2. From 0 to 2147483647. | |
spec.controller.reactive.utilization |
string | Both | Target utilization of each role. Default "0.8". At most 16 characters. | |
spec.controller.reactive.minArrivals |
integer | Both | Arrivals a window needs. Default 10. From 0 to 2147483647. | |
spec.controller.reactive.demandFloor |
string | Both | Requests a second below which to wait. Default "0.5". At most 16 characters. | |
spec.controller.reactive.movementMargin |
string | Both | Gain a role change must bring. Default "0.05". At most 16 characters. | |
spec.controller.reactive.stepS |
string | Both | Seconds between reactive decisions. Default "5.0". At most 16 characters. | |
spec.controller.reactive.decodeCorrectionMin |
string | Both | Lowest decode profile correction. Default "0.5". At most 16 characters. | |
spec.controller.reactive.decodeCorrectionMax |
string | Both | Highest decode profile correction. Default "2.0". At most 16 characters. | |
spec.controller.reactive.decodeCorrectionAlpha |
string | Both | Smoothing of the decode profile correction. Default "0.2". At most 16 characters. | |
spec.controller.reactive.decodeCorrectionMinSamples |
integer | Both | Samples before the decode correction applies. Default 8. From 0 to 2147483647. | |
spec.controller.reactive.decodeRecovery |
boolean | Both | Move engines back to decode when decode recovers. Default false. | |
spec.serving |
object | Both | Admission, the queue, retries and request limits of the routers. A field left out keeps the router's default. | |
spec.serving.admission |
string | Both | predictive refuses a request that would miss the TTFT target; open admits every one. Default "predictive". One of predictive, open. |
|
spec.serving.admissionMargin |
string | Both | Fraction of the TTFT target added to the admission budget. Default "0.0". At most 16 characters. | |
spec.serving.maxConnections |
integer | Both | Requests in flight at once, the in-flight limit. Default 768. From 0 to 2147483647. | |
spec.serving.queueCapacity |
integer | Both | Requests that wait for a seat; 0 answers 429 at once. Default 0. From 0 to 2147483647. | |
spec.serving.queueTimeoutS |
string | Both | Seconds a queued request waits for prefill; positive with a queue. Default "0.0". At most 16 characters. | |
spec.serving.maxAttempts |
integer | Both | Complete prefill and decode attempts per request, 1 to 3. Default 2. From 0 to 2147483647. | |
spec.serving.retryBaseS |
string | Both | Seconds before the first retry. Default "0.1". At most 16 characters. | |
spec.serving.retryCapS |
string | Both | Longest delay before a retry. Default "1.0". At most 16 characters. | |
spec.serving.retryBudget |
integer | Both | Retry credits in the pool. Default 10. From 0 to 2147483647. | |
spec.serving.retryReplenish |
string | Both | Credits each successful original request adds, at most 1. Default "0.1". At most 16 characters. | |
spec.serving.maxRequestBytes |
integer | Both | Largest request body. Default 4194304. From 0 to 2147483647. | |
spec.serving.maxResponseBytes |
integer | Both | Largest response body retained. Default 16777216. From 0 to 2147483647. | |
spec.serving.prefillOnDecode |
boolean | Both | Let a prefill leg run on a decode engine inside its profiled envelope. Default false. | |
spec.serving.requestTimeoutS |
string | Both | Seconds a request may take. Default "600.0". At most 16 characters. | |
spec.serving.prefillTimeoutS |
string | Both | Seconds a prefill leg may take. Default "120.0". At most 16 characters. | |
spec.serving.gracefulTimeoutS |
string | Both | Seconds a stopping router lets requests finish. Default "30.0". At most 16 characters. | |
spec.recovery |
object | Both | How the routers take a failing engine out of placement and back. A field left out keeps the router's default. | |
spec.recovery.ejectAfter |
integer | Both | Failed checks before an engine leaves placement. Default 3. From 0 to 2147483647. | |
spec.recovery.readmitEvery |
integer | Both | Ticks between readmission checks. Default 10. From 0 to 2147483647. | |
spec.recovery.livenessEvery |
integer | Both | Monitor intervals between liveness checks. 0 stops the health probes that eject an engine, and a fleet with an engine contract still checks process identities every 10 monitor intervals. Default 10. From 0 to 2147483647. | |
spec.recovery.livenessMisses |
integer | Both | Missed liveness checks before an engine leaves. Default 2. From 0 to 2147483647. | |
spec.recovery.engineRestartPolicy |
string | Both | Restart engines one at a time, or as a whole wave. Default "individual". One of individual, whole_wave. |
|
spec.recovery.failureQuarantineS |
string | Both | Seconds an engine that failed a request leg stays out of placement; 0 turns it off. Default "0.0". At most 16 characters. | |
spec.recovery.resume |
boolean | Both | Resume from the router's saved state on start. Default false. | |
spec.recovery.health |
object | Both | The health settings. | |
spec.recovery.health.windowS |
string | Both | Seconds of latency evidence per window. Default "30.0". At most 16 characters. | |
spec.recovery.health.driftBand |
string | Both | Latency ratio to the profile that drifts. Default "2.0". At most 16 characters. | |
spec.recovery.health.minSamples |
integer | Both | Samples a window needs. Default 3. From 0 to 2147483647. | |
spec.recovery.health.probationWindows |
integer | Both | Drifting windows before probation. Default 3. From 0 to 2147483647. | |
spec.recovery.health.evictWindows |
integer | Both | Drifting windows before eviction. Default 5. From 0 to 2147483647. | |
spec.recovery.health.recoveryWindows |
integer | Both | Healthy windows before recovery. Default 3. From 0 to 2147483647. | |
spec.recovery.health.probationPenaltyS |
string | Both | Seconds added to the price of an engine on probation. Default "1.5". At most 16 characters. | |
spec.recovery.health.relativeBand |
string | Both | Latency ratio to the other engines that drifts. Default "1.5". At most 16 characters. | |
spec.profiling |
object | Both | The profiling sweep. The sweep drops the lengths that do not fit an engine's live context. Default {}. |
|
spec.profiling.prefillLens |
list of integers | Both | The prompt lengths of the prefill sweep. 1 to 64 items. Default [1024, 1300, 2300, 4096, 4300, 8192, 8300, 12300]. |
|
spec.profiling.decodeInputLens |
list of integers | Both | The input lengths of the decode sweep. 1 to 64 items. Default [512, 4096, 8192]. |
|
spec.profiling.decodeConcurrency |
list of integers | Both | The concurrency levels of the decode sweep; narwhal-profile's own by default. 1 to 64 items. | |
spec.profiling.warmupRequests |
integer | Both | Requests sent before measuring. From 0 to 100000. Default 2. |
|
spec.calibration |
object | Both | The first-token calibration. Default {}. |
|
spec.calibration.inputTokens |
list of integers | Both | The input lengths calibration measures. The longest must leave two output tokens within every engine's live context. 1 to 64 items. Default [256, 1024, 4096]. |
|
spec.calibration.samples |
integer | Both | Samples per group, at least the 100 that preflight accepts. From 100 to 100000. Default 100. |
|
spec.calibration.observationTimeoutS |
string | Both | Seconds calibration waits for one observation. At most 16 characters. Default 20. API server rule: must be greater than 0. |
|
spec.fabric |
object | Both | Fabric qualification. The default workload sizes each edge for one handoff of 1024 prompt tokens a second; set the workload you serve. Default {}. |
|
spec.fabric.workload |
object | Both | The workload the fabric budget sizes each edge for. Default {}. |
|
spec.fabric.workload.promptTokens |
integer | Both | Prompt tokens per KV handoff. From 1 to 10000000. Default 1024. |
|
spec.fabric.workload.handoffsPerS |
string | Both | Peak remote KV handoffs per second on each directed edge, for each source cache group. At most 16 characters. Default 1. API server rule: must be greater than 0. |
|
spec.fabric.workload.burst |
integer | Both | Handoffs in a burst. From 1 to 1000000. Default 1. |
|
spec.fabric.workload.transferBudgetS |
string | Both | Seconds in which one burst must transfer. At most 16 characters. Default 1. API server rule: must be greater than 0. |
|
spec.fabric.workload.headroom |
string | Both | Multiplier on the required rate. At most 16 characters. Default 1.25. API server rule: must be at least 1. |
|
spec.fabric.testPort |
integer | Both | The TCP port the fabric test listens on at each destination. The firewall between the fabric addresses must allow it. From 1 to 65535. Default 5201. |
|
spec.routers |
object | Kubernetes | The router pair on Kubernetes. API server rule: spec.routers.size is required with spec.routers.storageClassName. | |
spec.routers.storageClassName |
string | Kubernetes | The storage class of a PersistentVolumeClaim for each router's journal and handoff state. Without it, each router keeps them in an emptyDir on its node. At most 253 characters. | |
spec.routers.size |
string | Kubernetes | The size of each router's volume: the claim's request, or the emptyDir's size limit, by default 1Gi. At most 32 characters. | |
spec.routers.args |
list of strings | Kubernetes | More narwhal-serve options, such as --lease-ttl 6. At most 32 items. | |
spec.controlTokenSecret |
object | Kubernetes | The Secret that holds the routers' control token, which the routes that change membership, trust or lifecycle require: at least 32 random bytes, as 64 hex digits or 43 base64url characters. Name a new Secret to rotate the token. Without it, the controller generates the Secret narwhal-router-token, key token, which the fleet owns. | |
spec.controlTokenSecret.name |
string | Kubernetes | Yes | The Secret's name. At most 253 characters. |
spec.controlTokenSecret.key |
string | Kubernetes | Yes | The key in the Secret. At most 253 characters. |
spec.haproxy |
object | Kubernetes | The HAProxy load balancer in front of the routers on Kubernetes. | |
spec.haproxy.replicas |
integer | Kubernetes | HAProxy pods. By default, one for each node the engines run on, at most 2. From 1 to 16. | |
spec.haproxy.clusterDomain |
string | Kubernetes | The cluster's DNS domain. At most 253 characters. Default cluster.local. |
|
spec.timeouts |
object | Both | Seconds a stage may run. On Kubernetes the limit covers a whole stage attempt, with its Jobs and waits. On SSH hosts it covers each command a stage runs, on a host or on the workstation. | |
spec.timeouts.defaultSeconds |
integer | Both | Every stage's limit. From 1 to 604800. | |
spec.timeouts.stages |
object | Both | One stage's limit, by stage name. | |
spec.timeouts.stages.<stage> |
integer | Both | The stage's limit, for each stage by name. From 1 to 604800. | |
spec.ssh |
object | SSH | SSH | SSH hosts only: the hosts, how the workstation reaches them, the router pair, the release they install and the monitoring stack. The fleet controller ignores it. Relative paths are relative to the directory narwhal deploy runs in. API server rule: a router pair needs spec.ssh.loadBalancer. |
spec.ssh.knownHosts |
string | SSH | Yes | The known-hosts file with the verified key of every host and of the jump host. narwhal deploy checks each key against it and never writes to it. 1 to 4096 characters. |
spec.ssh.jump |
string | SSH | The one jump host every connection goes through, an alias or user@host. It authenticates with a key or the SSH agent. At most 253 characters. | |
spec.ssh.secretsFile |
string | SSH | Yes | The file that holds the router control token, the engine API key and the SSH passwords. It must be a regular file the user owns, readable by nobody else, mode 0600 or 0400. 1 to 4096 characters. |
spec.ssh.hosts |
list of objects | SSH | Yes | The hosts. Engines, routers and the load balancer that name one host share it. 1 to 67 items. Each item's name is unique. |
spec.ssh.hosts[].name |
string | SSH | Yes | The host's name, which engines.nodes[].node and the router fields use. At most 63 characters. |
spec.ssh.hosts[].destination |
string | SSH | Yes | The SSH destination: an alias of your SSH config, user@host, or ssh://user@host:port. At most 253 characters. |
spec.ssh.hosts[].engines |
boolean | SSH | Whether discover places engines on the host. false for a host without GPUs that runs only a router, HAProxy or the witness. Default true. |
|
spec.ssh.router |
object | SSH | Yes | The primary router. Its host is the host of engine-1 by default. |
spec.ssh.router.host |
string | SSH | The name of the host in spec.ssh.hosts. At most 63 characters. | |
spec.ssh.router.url |
string | SSH | Yes | http://HOST:PORT the router binds. With a standby, the standby and the load balancer reach it there, so HOST is not a loopback address. At most 256 characters. |
spec.ssh.standby |
object | SSH | The standby router of a router pair, on another host than the primary's. Without it, the fleet runs one router with no failover. | |
spec.ssh.standby.host |
string | SSH | Yes | The name of the host in spec.ssh.hosts. At most 63 characters. |
spec.ssh.standby.url |
string | SSH | Yes | http://HOST:PORT the standby router binds. At most 256 characters. |
spec.ssh.loadBalancer |
object | SSH | The HAProxy load balancer of a router pair. Its host is the primary router's by default. | |
spec.ssh.loadBalancer.host |
string | SSH | The name of the host in spec.ssh.hosts. At most 63 characters. | |
spec.ssh.loadBalancer.url |
string | SSH | Yes | http://HOST:PORT HAProxy binds, the origin clients use. At most 256 characters. |
spec.ssh.lease |
object | SSH | How the router pair elects its primary: through narwhal-witness, which grants the lease. | |
spec.ssh.lease.witnessHost |
string | SSH | The host, from spec.ssh.hosts, that runs the witness on port 8470. It defaults to the load balancer's host. Give a host other than both router hosts, so the pair survives the loss of either. At most 63 characters. | |
spec.ssh.modelDir |
string | SSH | The checkpoint directory on each engine host, which the engine mounts read-only. Required unless every engine sets its own in spec.ssh.engines. 1 to 4096 characters. | |
spec.ssh.runDir |
string | SSH | An existing directory on each engine host. Required unless every engine sets its own in spec.ssh.engines. 1 to 4096 characters. | |
spec.ssh.modelCache |
string | SSH | The workstation directory the model stage fetches spec.engines.model.fetch into before it streams the tree to each engine host. Defaults to runs/models. 1 to 4096 characters. | |
spec.ssh.engines |
list of objects | SSH | Settings of single engines on their hosts. At most 64 items. Each item's engine is unique. |
|
spec.ssh.engines[].engine |
integer | SSH | Yes | The engine's number, from 1, as discover or engines.nodes numbers them. From 1 to 64. |
spec.ssh.engines[].modelDir |
string | SSH | The checkpoint directory on this engine's host. 1 to 4096 characters. | |
spec.ssh.engines[].runDir |
string | SSH | An existing directory on this engine's host. 1 to 4096 characters. | |
spec.ssh.engines[].address |
string | SSH | The fabric address, when the interface has several global addresses. At most 45 characters. | |
spec.ssh.engines[].url |
string | SSH | The engine's URL, when it is reachable at another address or port. At most 256 characters. | |
spec.ssh.engines[].attestationUrl |
string | SSH | The attestation sidecar's URL, http://HOST:PORT/v1/attestation, when it is reachable at another address or port. At most 256 characters. | |
spec.ssh.monitoring |
object | SSH | The monitoring stack on the primary router's host. Default {}. |
|
spec.ssh.monitoring.fleetName |
string | SSH | The fleet label of every series. At most 63 characters. Default default. |
|
spec.ssh.monitoring.alertmanagerUrl |
string | SSH | The Alertmanager Prometheus sends alerts to, http(s)://HOST:PORT with an optional path. Without one, alerts show only on the Prometheus alerts page. At most 512 characters. | |
spec.ssh.monitoring.grafanaBindAddress |
string | SSH | The address Grafana listens on, without a port: Grafana always listens on port 3000. At most 64 characters. | |
spec.ssh.monitoring.prometheusListenAddress |
string | SSH | The address and port Prometheus listens on, ADDRESS:PORT, which the capacity trial queries. At most 64 characters. | |
spec.ssh.monitoring.targetsUrl |
string | SSH | The router whose targets make observe scrapes. At most 256 characters. | |
spec.until |
string | Kubernetes | The last stage to run; every stage by default. One of access, model, discover, engine-prepare, install, engine-start, engine-check, cache-capture, transfer-measure, cache-groups, fabric-budget, fabric-edge, attest-capture, sidecar-start, sidecar-verify, finalize-fleet, profile, calibrate, fleet-limits, preflight, router-start. |
|
spec.stopped |
boolean | Kubernetes | Stop the routers, HAProxy, engines and Jobs, keeping the volumes. Default false. |
|
spec.retainRuns |
integer | Kubernetes | Run directories kept, the current one included. From 1 to 16. Default 3. |
|
spec.reuseFrom |
string | Both | The fleet UID of an earlier run directory of the namespace, from status.previousRuns, whose profiles and calibration a pass copies while every input they depend on matches. Pruning keeps that directory. At most 36 characters. |
Status¶
The controller writes the status; nothing else may.
| Field | Type | Description |
|---|---|---|
status.observedGeneration |
integer | The generation the latest pass started from. At least 0. |
status.conditions |
list of objects | Ready, Reconciling, Stalled, Stopped, EngineNodesReady, and one per stage. At most 26 items. Each item's type is unique. |
status.conditions[].type |
string | The condition's type. At most 316 characters. |
status.conditions[].status |
string | True, False or Unknown. One of True, False, Unknown. |
status.conditions[].observedGeneration |
integer | The generation the condition was set from. At least 0. |
status.conditions[].lastTransitionTime |
string | When the status last changed. At most 64 characters. |
status.conditions[].reason |
string | A CamelCase reason. 1 to 1024 characters. |
status.conditions[].message |
string | What the reason means for this fleet. At most 32768 characters. |
status.serving |
boolean | The routers serve through HAProxy. |
status.stage |
string | The stage the latest pass runs or stopped at, or stopped once spec.stopped took effect. At most 63 characters. |
status.engines |
string | Engines checked, of those the fleet names. At most 16 characters. |
status.stages |
object | Each stage's instances. |
status.stages.access |
object | One stage's instances. |
status.stages.access.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.access.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.access.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.model |
object | One stage's instances. |
status.stages.model.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.model.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.model.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.discover |
object | One stage's instances. |
status.stages.discover.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.discover.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.discover.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.engine-prepare |
object | One stage's instances. |
status.stages.engine-prepare.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.engine-prepare.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.engine-prepare.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.install |
object | One stage's instances. |
status.stages.install.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.install.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.install.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.engine-start |
object | One stage's instances. |
status.stages.engine-start.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.engine-start.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.engine-start.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.engine-check |
object | One stage's instances. |
status.stages.engine-check.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.engine-check.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.engine-check.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.cache-capture |
object | One stage's instances. |
status.stages.cache-capture.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.cache-capture.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.cache-capture.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.transfer-measure |
object | One stage's instances. |
status.stages.transfer-measure.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.transfer-measure.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.transfer-measure.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.cache-groups |
object | One stage's instances. |
status.stages.cache-groups.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.cache-groups.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.cache-groups.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.fabric-budget |
object | One stage's instances. |
status.stages.fabric-budget.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.fabric-budget.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.fabric-budget.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.fabric-edge |
object | One stage's instances. |
status.stages.fabric-edge.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.fabric-edge.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.fabric-edge.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.attest-capture |
object | One stage's instances. |
status.stages.attest-capture.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.attest-capture.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.attest-capture.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.sidecar-start |
object | One stage's instances. |
status.stages.sidecar-start.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.sidecar-start.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.sidecar-start.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.sidecar-verify |
object | One stage's instances. |
status.stages.sidecar-verify.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.sidecar-verify.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.sidecar-verify.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.finalize-fleet |
object | One stage's instances. |
status.stages.finalize-fleet.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.finalize-fleet.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.finalize-fleet.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.profile |
object | One stage's instances. |
status.stages.profile.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.profile.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.profile.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.calibrate |
object | One stage's instances. |
status.stages.calibrate.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.calibrate.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.calibrate.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.fleet-limits |
object | One stage's instances. |
status.stages.fleet-limits.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.fleet-limits.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.fleet-limits.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.preflight |
object | One stage's instances. |
status.stages.preflight.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.preflight.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.preflight.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.stages.router-start |
object | One stage's instances. |
status.stages.router-start.passed |
integer | Instances that passed. From 0 to 1000000. |
status.stages.router-start.total |
integer | Instances the stage runs. From 0 to 1000000. |
status.stages.router-start.lastPassedTime |
string | When an instance last passed. At most 64 characters. |
status.model |
object | The checkpoint discover pinned. |
status.model.treeSha256 |
string | The tree the first discover that passed found on every engine node, for a fleet that sets no spec.engines.model.treeSha256. Every later discover of this fleet refuses another tree. At most 64 characters. |
status.previousRuns |
list of strings | The fleet UIDs of the run directories an earlier fleet of this name left. At most 16 items. |
status.exports |
list of objects | The export Jobs the controller made for the latest narwhal-inference.com/export-request values. At most 4 items. Each item's nonce is unique. |
status.exports[].nonce |
string | The request's nonce. At most 32 characters. |
status.exports[].job |
string | The export Job's name. At most 63 characters. |
status.exports[].uid |
string | The export Job's UID. At most 36 characters. |
status.exports[].pod |
string | The export Job's pod the controller read. At most 253 characters. |
status.exports[].sha256 |
string | The SHA-256 of the pod's log. At most 64 characters. |
status.exports[].size |
integer | The size of the pod's log in bytes. From 0 to 2147483647. |
status.exports[].error |
string | Why the export failed. At most 1024 characters. |
status.fleetRequests |
list of objects | The controller's answers to the latest narwhal-inference.com/fleet-request values. At most 4 items. Each item's nonce is unique. |
status.fleetRequests[].nonce |
string | The request's nonce. At most 32 characters. |
status.fleetRequests[].verb |
string | The request's verb. One of status, drain, readmit, reset. |
status.fleetRequests[].job |
string | The router-check Job's name. At most 63 characters. |
status.fleetRequests[].outcome |
string | The result's outcome. One of ok, degraded, refused, failed. |
status.fleetRequests[].result |
string | The result document, as JSON. At most 32768 characters. |
status.fleetRequests[].error |
string | Why the request failed. At most 1024 characters. |
kubectl get narwhalfleet prints these columns:
| Column | From |
|---|---|
| Serving | .status.serving |
| Ready | .status.conditions[?(@.type=="Ready")].status |
| Stage | .status.stage |
| Engines | .status.engines |
| Age | .metadata.creationTimestamp |
The cluster admin can narrow the spec further in the narwhal chart's values: modelVolumeSources with modelHostPathPrefixes, modelNfsServers, modelNfsPathPrefixes and modelCsiDrivers for engines.modelVolume, and runtimeClassNames for engines.resources.runtimeClassName. The controller sets Stalled with reason InputRefused on a fleet outside them, and the namespace's admission policy refuses such a pod. Conditions and reasons lists what each condition reports.