Kubernetes Runner
AI-generatedSummary
Run a Kubernetes Job with specified container image, commands, arguments, environment variables, and timeout, then retrieve the job's logs upon completion.
Inputs
- Job Namespace — Set the Kubernetes namespace where the Job will be created; default is 'default'.
- Job Image — Specify the container image for the Job; default is 'alpine:latest'.
- Job Timeout (Seconds) — Define how many seconds to wait for the Job to complete before timing out; default is 60 seconds.
- Job Command (required) — Provide the command to execute inside the Job's container; supports multiple command parts.
- Job Arguments — Optional list of arguments to pass to the Job command.
- Environment Variables — Add one or more environment variables (name-value pairs) to the Job container.
Output shape
a single record with fields 'jobName' (string) and 'log' (string) containing the Pod logs from the executed Kubernetes Job
The operation creates and runs a Kubernetes Job resource, waits for its completion or timeout, fetches the Pod name associated with the Job, retrieves the Pod logs, and returns them. Errors or timeouts during execution may cause node failure; ensure the Kubernetes cluster context is configured on the host running n8n.