Workload
Source: workload-xrd.yaml — group shoulders.io, scope Namespaced, version v1alpha1.
spec fields
| Field | Type | Description |
|---|---|---|
args | array<string> | Arguments to the container entrypoint. |
backoffLimit | integer | Retries before a Job is marked as failed. (default: 6) |
command | array<string> | Container entrypoint command, overriding the image default. |
concurrencyPolicy | string | How overlapping cronjob runs are handled. (allowed: Allow, Forbid, Replace) (default: Forbid) |
env | array | Environment variables for the container (Kubernetes EnvVar style). |
envFrom | array | Environment variables sourced from ConfigMaps or Secrets (Kubernetes EnvFromSource style). |
image | string | Container image repository for the workload (without tag). (required) |
imagePullPolicy | string | Image pull policy for the workload container. (allowed: Always, IfNotPresent, Never) |
podSecurityContext | object | Security settings for the pod. |
replicas | integer | Replicas for worker Deployments. Ignored for job and cronjob workloads. (default: 1) |
resources | object | CPU and memory requests and limits for the container. |
restartPolicy | string | Pod restart policy for job and cronjob workloads. (allowed: Always, OnFailure, Never) (default: OnFailure) |
schedule | string | Cron schedule for cronjob workloads (required when type is cronjob). |
securityContext | object | Security settings for the workload container. |
serviceAccountName | string | ServiceAccount the workload pods run as. |
tag | string | Image tag to deploy. (required) |
type | string | Workload kind. worker creates a Deployment, job a one-shot Job, cronjob a CronJob. (allowed: worker, job, cronjob) (default: worker) |
volumeMounts | array | Volume mounts for the workload container. |
volumes | array | Volumes for the pod, including Secret and emptyDir volumes. |