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 ​

ArgNotes
name-

Optional Args ​

ArgDefaultNotes
image"curlimages/curl:8.5.0"-
schedule"0 * * * *"hourly at :00
timeZone"UTC"UTC - use tz like "America/New_York" for EST
labels[ ]-
namespace"default"-
failedJobsHistoryLimit3-
successfulJobsHistoryLimit3-
cpuRequest"100m"-
cpuLimitnull-
memoryRequest"100Mi"-
memoryLimitnull-
ephemeralStorageRequestnull-
ephemeralStorageLimitnull-
env[ ]-
envAttrs{ }-
envFrom[ ]-
sa"default"-
commandnull-
argsnull-
restartPolicy"Never"-
imagePullPolicy"Always"-
imagePullSecrets[ ]-
volumes[ ]-
concurrencyPolicy"Allow"Allow, Forbid, Replace
securityContext{ }-
extra{ }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 ​

ArgNotes
name-

Optional Args ​

ArgDefaultNotes
image"ghcr.io/jpetrucciani/k8s-aws:latest"-
schedule"0 * * * *"hourly at :00
timeZone"UTC"UTC - use tz like "America/New_York" for EST
labels[ ]-
namespace"default"-
failedJobsHistoryLimit3-
successfulJobsHistoryLimit3-
cpuRequest"100m"-
cpuLimitnull-
memoryRequest"100Mi"-
memoryLimitnull-
ephemeralStorageRequestnull-
ephemeralStorageLimitnull-
roleRules[ { apiGroups = [ "" ]; resources = [ "pods" ]; verbs = [ "delete" "get" "list" ]; } ]-
env[ ]-
envAttrs{ }-
envFrom[ ]-
command"bash"-
args[ "-c" ''kubectl get pods'' ]-
restartPolicy"OnFailure"-
concurrencyPolicy"Allow"Allow, Forbid, Replace
extraCron{ }extra escape hatch to use any other options!
extraCronContainer{ }extra escape hatch to use any other options!

Back to Helper Index