Skip to main content

Workload

Source: workload-xrd.yaml — group shoulders.io, scope Namespaced, version v1alpha1.

spec fields​

FieldTypeDescription
argsarray<string>Arguments to the container entrypoint.
backoffLimitintegerRetries before a Job is marked as failed. (default: 6)
commandarray<string>Container entrypoint command, overriding the image default.
concurrencyPolicystringHow overlapping cronjob runs are handled. (allowed: Allow, Forbid, Replace) (default: Forbid)
envarrayEnvironment variables for the container (Kubernetes EnvVar style).
envFromarrayEnvironment variables sourced from ConfigMaps or Secrets (Kubernetes EnvFromSource style).
imagestringContainer image repository for the workload (without tag). (required)
imagePullPolicystringImage pull policy for the workload container. (allowed: Always, IfNotPresent, Never)
podSecurityContextobjectSecurity settings for the pod.
replicasintegerReplicas for worker Deployments. Ignored for job and cronjob workloads. (default: 1)
resourcesobjectCPU and memory requests and limits for the container.
restartPolicystringPod restart policy for job and cronjob workloads. (allowed: Always, OnFailure, Never) (default: OnFailure)
schedulestringCron schedule for cronjob workloads (required when type is cronjob).
securityContextobjectSecurity settings for the workload container.
serviceAccountNamestringServiceAccount the workload pods run as.
tagstringImage tag to deploy. (required)
typestringWorkload kind. worker creates a Deployment, job a one-shot Job, cronjob a CronJob. (allowed: worker, job, cronjob) (default: worker)
volumeMountsarrayVolume mounts for the workload container.
volumesarrayVolumes for the pod, including Secret and emptyDir volumes.