Kubeless Scheduled Events

Kubeless functions can be triggered following a certain schedule. The schedule can be specified events section of the serverless.yml following the Cron notation:

service: clock

provider:
  name: kubeless
  runtime: nodejs6

plugins:
  - serverless-kubeless

functions:
  clock:
    handler: handler.printClock
    events:
      - schedule: "* * * * *"

When deploying this serverless.yml file, Kubeless will create a Kubernetes cron job that will trigger the function printClock every minute.

Edit this page

Kubeless Scheduled Events

Kubeless functions can be triggered following a certain schedule. The schedule can be specified events section of the serverless.yml following the Cron notation:

service: clock

provider:
  name: kubeless
  runtime: nodejs6

plugins:
  - serverless-kubeless

functions:
  clock:
    handler: handler.printClock
    events:
      - schedule: "* * * * *"

When deploying this serverless.yml file, Kubeless will create a Kubernetes cron job that will trigger the function printClock every minute.