Stop a host running particular pod
Table of contents
Scenario
You might want to stop a host that runs a particular set of pods. You can do that with stopHost
action for pods.
Scenario
scenarios:
- name: Stop that host!
steps:
- podAction:
matches:
- namespace: something
filters:
- randomSample:
size: 1
actions:
- stopHost:
autoRestart: true
- wait:
seconds: 30
This will stop the host running that pod, and restart at the end of the scenario.