Chapter 4. Managing Services with User-Defined Constraints

This chapter takes the CoreOS cluster to the next level by putting constraints on the services so that they run on the required members.

This chapter covers the following topics:

  • Pre-defined constraints using metadata
  • Service-level affinity/anti-affinity
  • Node-level affinity
  • High availability

Introduction to service constraints

Not all cluster members run all the services in a deployment. Some may run the services running business logic, some may run management software, and some may run logging or auditing software, and so on. Hence, it's imperative that cluster management software provides mechanisms to control service deployment so they run only on the members satisfying their properties. ...

Get Learning CoreOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.