Resource Type: kubernetes_job_spec
- Defined in:
- lib/puppet/type/kubernetes_job_spec.rb
- Providers:
-
swagger
Overview
JobSpec describes how the job execution will look like.
Properties
-
active_deadline_seconds
Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer
-
auto_selector
AutoSelector controls generation of pod labels and pod selectors. It was not present in the original extensions/v1beta1 Job definition, but exists to allow conversion from batch/v1 Jobs, where it corresponds to, but has the opposite meaning as, ManualSelector. More info: releases.k8s.io/HEAD/docs/design/selector-generation.md
-
completions
Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: kubernetes.io/docs/user-guide/jobs
-
ensure
(defaults to: present)
The basic property that the resource should be in.
Supported values:- present
- absent
-
parallelism
Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: kubernetes.io/docs/user-guide/jobs
-
selector
Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: kubernetes.io/docs/user-guide/labels#label-selectors
-
template
Template is the object that describes the pod that will be created when executing a job. More info: kubernetes.io/docs/user-guide/jobs
Parameters
-
name (namevar)
Name of the job_spec.
-
provider
The specific backend to use for this ‘kubernetes_job_spec` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.