Skip to main content

Playbooks

FieldDescriptionSchemeRequired
descriptionA short descriptionstringtrue
iconIcon for the playbookstring
onSpecify events to automatically trigger the Playbook. .[]Trigger
runsOnSpecify the runners that can run this playbook. One will be chosen on random. When empty, the playbook will run on the main instance itself[]string
templatesOnSpecify where the templating of the action spec should occurhost or agent
checksSpecify selectors for checks that can be run on the Playbook.[]ResourceSelector
configsSpecify selectors for config items that can be run on the Playbook.[]ResourceSelector
componentsSpecify selectors for component items that can be run on the Playbook.[]ResourceSelector
parametersDefine a set of labeled parameters for the Playbook.[]Parameter
actionsSpecify the set of actions to run.[]Actiontrue
approvalSpecify who can approve runs on this playbook.Approval

Action

FieldDescriptionSchemeRequired
nameName of action.stringtrue
runsOnSpecify the runners that can run this action. One will be chosen on random. When empty, the playbook will run on the main instance itself[]string
templatesOnSpecify where the templating of the action spec should occurhost or agent
delayA delay before running the action e.g. 8hDuration or Expression
filterWhether to run the step or notExpression
timeoutTimeout on this action.Duration
execSpecify exec of action.Exec
gitopsSpecify gitops of action.Gitops
httpSpecify http of action.Http
sqlSpecify sql of action.Sql
podSpecify pod of action.Pod
notificationSpecify notification of action.Notification

Trigger

FieldDescriptionSchemeRequired
canarySetup trigger on canary eventsEventTrigger
componentSetup trigger on health check events.EventTrigger
webhookSetup a webhook endpoint that triggers the playbook.WebhookTrigger

Approval

Authorization safeguards can be applied to playbook runs, ensuring their execution is limited to specific individuals or teams who grant approval.

approve-kubernetes-scaling.yaml
#...
kind: Playbook
spec:
#...
approval:
type: any
approvers:
people:
- admin@local
teams:
- DevOps
FieldDescriptionSchemeRequired
typeHow many approvals required. Defaults to allany or allfalse
approvers.[]peopleLogin or id of a personPeoplefalse
approvers.[]teamsName or id of a teamTeamfalse