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
Type: object - Optional
Configure horizontal pod autoscaling based on CPU and memory utilization.
| Field | Type | Description |
|---|---|---|
enabled | boolean | Enable autoscaling |
minInstances | integer | Minimum number of replicas |
maxInstances | integer | Maximum number of replicas |
cpuThresholdPercent | integer | CPU usage threshold (0-100) |
memoryThresholdPercent | integer | Memory usage threshold (0-100) |
When autoscaling is enabled, the
instances field is ignored.healthCheck
Type: 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
Type: object - Optional
Determines if the container should be restarted.
readinessCheck
Type: object - Optional
Determines if the container is ready to receive work.
startupCheck
Type: object - Optional
Used for slow-starting containers. Other probes are disabled until this passes.
connections
Type: array - Optional
Connect to external cloud services. See Reference for full documentation.
serviceMeshEnabled
Type: 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
Type: integer - Optional
Seconds to wait for graceful shutdown before forcefully terminating the container.
gpuCoresNvidia
Type: integer - Optional
Allocate NVIDIA GPU cores for ML workloads or GPU-accelerated processing.
Requires a node group with GPU-enabled instances.

