# The only things the capability can ever do. A person writes and approves this file # before the hire. Commands are argument lists (no shell). {service} is only ever # filled with a name from "services". Unchanged from 0.1. actions: - id: restart-api title: Rolling restart of the api service match: - connection pool exhausted - OutOfMemory services: - api command: - kubectl - rollout - restart - deployment/{service} - -n - prod reversible: true auto_allowed: true max_per_day: 2 - id: clear-tmp title: Clear temporary files on the worker volume match: - No space left on device services: - worker command: - kubectl - exec - deployment/{service} - -n - prod - -- - find - /tmp/work - -mtime - '+1' - -delete reversible: false auto_allowed: false