porter.yaml.
Field Reference
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Service identifier (max 31 chars) |
type | string | Yes | Must be worker |
run | string | Yes | Command to execute |
cpuCores | number | Yes | CPU allocation |
ramMegabytes | integer | Yes | Memory allocation in MB |
instances | integer | No | Number of replicas (default: 1) |
autoscaling | object | No | Autoscaling configuration |
healthCheck | object | No | Combined health check config |
livenessCheck | object | No | Liveness probe config |
readinessCheck | object | No | Readiness probe config |
startupCheck | object | No | Startup probe config |
connections | array | No | External cloud connections |
serviceMeshEnabled | boolean | No | Enable service mesh |
terminationGracePeriodSeconds | integer | No | Graceful shutdown timeout |
gpuCoresNvidia | integer | No | NVIDIA GPU cores |
nodeGroup | string | No | Node group UUID |
Basic Example
autoscaling
object
Optional
Configure horizontal pod autoscaling based on CPU and memory utilization. See Autoscaling Configuration for full documentation.
healthCheck
object
Optional
Configure a combined health check that applies to liveness, readiness, and startup probes. Worker services use command-based health checks since they don’t expose HTTP endpoints.
| Field | Type | Description |
|---|---|---|
enabled | boolean | Enable health checks |
command | string | Command to run for health check |
timeoutSeconds | integer | Command timeout (min: 1) |
initialDelaySeconds | integer | Initial delay before checking (min: 0) |
Advanced Health Checks
For fine-grained control, configure liveness, readiness, and startup probes separately.livenessCheck
object
Optional
Determines if the container should be restarted.
readinessCheck
object
Optional
Determines if the container is ready to receive work.
startupCheck
object
Optional
Used for slow-starting containers. Other probes are disabled until this passes.
connections
array
Optional
Connect to external cloud services. See Connections Configuration for full documentation.
serviceMeshEnabled
boolean
Optional
Enable service mesh for enhanced inter-service communication with improved performance, reliability, and monitoring.
Useful for workers that need to communicate with other services in your cluster.
terminationGracePeriodSeconds
integer
Optional
Seconds to wait for graceful shutdown before forcefully terminating the container.
gpuCoresNvidia
integer
Optional
Allocate NVIDIA GPU cores for ML workloads or GPU-accelerated processing.
Requires a node group with GPU-enabled instances.

