Sha256: 0608883a3df732f005fa484dba0d1b0499f05b7f92d2049457333ada4569faed

Contents?: true

Size: 720 Bytes

Versions: 10

Compression:

Stored size: 720 Bytes

Contents

kind: workload
name: daily-task
spec:
  # https://docs.controlplane.com/reference/workload#cron-configuration
  type: cron
  job:
    # Run daily job at 2am (see cron docs)
    schedule: 0  2  *  *  *
    # Never or OnFailure
    restartPolicy: Never
  containers:
    - name: daily-task
      cpu: 50m
      memory: 256Mi
      args:
        - bundle
        - exec
        - rails
        - db:prepare
      inheritEnv: true
      image: {{APP_IMAGE_LINK}}
  defaultOptions:
    autoscaling:
      minScale: 1
      maxScale: 1
    capacityAI: false
  firewallConfig:
    external:
      outboundAllowCIDR:
        - 0.0.0.0/0
  # Identity is used for binding workload to secrets
  identityLink: {{APP_IDENTITY_LINK}}

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
cpflow-4.1.0 templates/daily-task.yml
cpflow-4.0.1 templates/daily-task.yml
cpflow-4.0.0 templates/daily-task.yml
cpflow-3.0.1 templates/daily-task.yml
cpflow-3.0.0 templates/daily-task.yml
cpl-2.2.4 templates/daily-task.yml
cpl-2.2.2 templates/daily-task.yml
cpl-2.2.1 templates/daily-task.yml
cpl-2.2.0 templates/daily-task.yml
cpl-1.4.0 templates/daily-task.yml