Skip to content

hex.k8s.cron ​

  • Source: module
  • Function count: 2

hex.k8s.cron.build ​

Copy Call Skeleton ​

nix
(hex.k8s.cron.build {
  name = "build";
})

Required Args ​

ArgTypeNotes
nameunknown-

Optional Args ​

ArgTypeDefaultNotes
imagestring"curlimages/curl:8.5.0"-
schedulestring"0 * * * *"hourly at :00
timeZonestring"UTC"UTC - use tz like "America/New_York" for EST
labelsattrset{ }-
namespacestring"default"-
failedJobsHistoryLimitnumber3-
successfulJobsHistoryLimitnumber3-
backoffLimitnullnull-
activeDeadlineSecondsnullnull-
ttlSecondsAfterFinishednullnull-
cpuRequeststring"100m"-
cpuLimitnullnull-
memoryRequeststring"100Mi"-
memoryLimitnullnull-
ephemeralStorageRequestnullnull-
ephemeralStorageLimitnullnull-
envlist[ ]-
envAttrsattrset{ }-
envFromlist[ ]-
sastring"default"-
commandnullnull-
argsnullnull-
restartPolicystring"Never"-
imagePullPolicystring"Always"-
imagePullSecretslist[ ]-
volumeslist[ ]services.volumes entries or the legacy volume format
concurrencyPolicystring"Allow"Allow, Forbid, Replace
securityContextattrset{ }PodSpec securityContext
securitynullnullservices.security profile
extraattrset{ }extra escape hatch to use any other options!

hex.k8s.cron.kube_cron.build ​

Copy Call Skeleton ​

nix
(hex.k8s.cron.kube_cron.build {
  name = "build";
})

Required Args ​

ArgTypeNotes
nameunknown-

Optional Args ​

ArgTypeDefaultNotes
imagestring"ghcr.io/jpetrucciani/k8s-aws:latest"-
schedulestring"0 * * * *"hourly at :00
timeZonestring"UTC"UTC - use tz like "America/New_York" for EST
labelsattrset{ }-
namespacestring"default"-
failedJobsHistoryLimitnumber3-
successfulJobsHistoryLimitnumber3-
backoffLimitnullnull-
activeDeadlineSecondsnullnull-
ttlSecondsAfterFinishednullnull-
cpuRequeststring"100m"-
cpuLimitnullnull-
memoryRequeststring"100Mi"-
memoryLimitnullnull-
ephemeralStorageRequestnullnull-
ephemeralStorageLimitnullnull-
roleRuleslist[ { apiGroups = [ "" ]; resources = [ "pods" ]; verbs = [ "delete" "get" "list" ]; } ]-
envlist[ ]-
envAttrsattrset{ }-
envFromlist[ ]-
commandstring"bash"-
argslist[ "-c" ''kubectl get pods'' ]-
restartPolicystring"OnFailure"-
concurrencyPolicystring"Allow"Allow, Forbid, Replace
extraCronattrset{ }extra escape hatch to use any other options!
extraCronContainerattrset{ }extra escape hatch to use any other options!

Back to Helper Index