Skip to content

hex.k8s.jobs ​

  • Source: module
  • Function count: 1

hex.k8s.jobs.build ​

Copy Call Skeleton ​

nix
(hex.k8s.jobs.build {
  name = "build";
  image = "TODO";
})

Required Args ​

ArgTypeNotes
nameunknown-
imageunknown-

Optional Args ​

ArgTypeDefaultNotes
namespacestring"default"-
labelsattrset{ app = name; }keep these distinct from service labels so Services never select Job pods
restartPolicystring"Never"-
backoffLimitnumber3-
activeDeadlineSecondsnullnull-
ttlSecondsAfterFinishednullnullwith plain apply or GitOps, a deleted Job is recreated and reruns
parallelismnullnull-
completionsnullnull-
completionModenullnull-
podFailurePolicynullnull-
hooknullnullone of jobs.hooks; runs the Job as an Argo CD or Helm hook
hashNameunknownhook == nullsuffix the name with a spec hash, since Job templates are immutable
serviceAccountbooltrue-
serviceAccountNamenullnulluse an existing ServiceAccount instead of creating one
saSuffixstring"-sa"-
roleRuleslist[ ]-
cpuRequeststring"100m"-
memoryRequeststring"256Mi"-
extraJobAnnotationsattrset{ }-
extraJobattrset{ }-

Back to Helper Index