This repository has been archived by the owner on Aug 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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.
-
Go to Rancher UI
-
Go to menu → Infrastructure → Hosts
-
Go to menu → Infrastructure → Containers
-
Add container from Docker image alpine and inside Scheduling tab, fill in the fields of a Scheduling Rule
- Condition: must
- Field: host label
- Key: color
- Value: yellow
-
Delete the container and create a new one, but this time, set the color label to red
-
You should see that the container is running on host ra2, where color=red