Skip to content

Instantly share code, notes, and snippets.

@yeshess
Last active July 6, 2016 16:51
Show Gist options
  • Save yeshess/eb3485b4a8e7f0e1cee8df857a06f256 to your computer and use it in GitHub Desktop.
Save yeshess/eb3485b4a8e7f0e1cee8df857a06f256 to your computer and use it in GitHub Desktop.
heal_group:
members: [kubernetes_node_host]
policies:
simple_autoheal_policy:
type: cloudify.policies.types.host_failure
properties:
service:
- .*kubernetes_node_host.*.cpu.total.system
- .*kubernetes_node_host.*.process.hyperkube.cpu.percent
interval_between_workflows: 60
triggers:
auto_heal_trigger:
type: cloudify.policies.triggers.execute_workflow
parameters:
workflow: heal
workflow_parameters:
node_instance_id: { 'get_property': [ SELF, node_id ] }
diagnose_value: { 'get_property': [ SELF, diagnose ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment