Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

04 Scheduling

satrapu edited this page Oct 14, 2017 · 4 revisions

This page details how to ensure a container is run on a particular host by using labels.

More information can be found here.

  1. Go to Rancher UI

  2. Go to menu → Infrastructure → Hosts

  3. Edit host ra1 by adding a label: color=blue

  4. Edit host ra2 by adding a label: color=red

  5. You should see one label on each host

  6. Go to menu → Infrastructure → Containers

  7. Add container from Docker image alpine and inside Scheduling tab, fill in the fields of a Scheduling Rule

    1. Condition: must
    2. Field: host label
    3. Key: color
    4. Value: yellow

  8. You should see an error

  9. Delete the container and create a new one, but this time, set the color label to red

  10. You should see that the container is running on host ra2, where color=red

Clone this wiki locally