Link Search Menu Expand Document

Stop a host running particular pod

Table of contents

  1. Scenario
  2. Scenario

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.


© 2020 Bloomberg Finance L.P.