shoulders workload worker
shoulders workload worker
Create or update a background worker
shoulders workload worker <name> [flags]
Options
--arg stringArray Container argument, repeatable
--backoff-limit int32 Job retry backoff limit (default 6)
--command stringArray Container command entry, repeatable
--concurrency-policy string Cron concurrency policy: Allow|Forbid|Replace (default "Forbid")
--cpu-limit string CPU limit, for example 500m
--cpu-request string CPU request, for example 100m
--dry-run Print YAML instead of applying
--env stringArray Environment variable (KEY=VALUE), repeatable
--env-from-configmap stringArray ConfigMap to expose through envFrom, repeatable
--env-from-secret stringArray Secret to expose through envFrom, repeatable
-h, --help help for worker
--image string Container image (repo or repo:tag)
--memory-limit string Memory limit, for example 256Mi
--memory-request string Memory request, for example 128Mi
-n, --namespace string Workspace namespace to target
--read-only-root-filesystem Set container securityContext.readOnlyRootFilesystem
--replicas int32 Number of worker replicas (default 1)
--restart-policy string Pod restart policy: Always|OnFailure|Never (default "OnFailure")
--run-as-non-root Set container securityContext.runAsNonRoot
--run-as-user int Set container securityContext.runAsUser (default -1)
--schedule string Cron schedule, for example '*/5 * * * *'
--tag string Override image tag
Options inherited from parent commands
--config string Path to config file (default "/home/runner/.shoulders/config.yaml")
--kubeconfig string Path to kubeconfig file
-o, --output string Output format: table|json|yaml (default "table")
--set stringArray Set a config value override (key=value), repeatable
SEE ALSO
- shoulders workload - Manage background workers and jobs