Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

docs: Added detailed explanation on fleet's Metadata logic #1422

Merged
merged 1 commit into from
Feb 10, 2016

Conversation

kayrus
Copy link
Contributor

@kayrus kayrus commented Feb 4, 2016

[X-Fleet]
MachineMetadata="region=us-east-1" "diskType=SSD"
```

This requires an eligible machine to have at least the `region` and `diskType` keys set accordingly. A single key may also be defined multiple times, in which case only one of the conditions needs to be met:
This requires an eligible machine to have at least the `region` and `diskType` keys set accordingly. I.e. this logic could be represented as follows:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s#I.e.#This logic#

@jonboulle
Copy link
Contributor

A few small comments, lgtm after that

@tixxdz tixxdz added this to the v0.12.0 milestone Feb 8, 2016
@kayrus
Copy link
Contributor Author

kayrus commented Feb 8, 2016

@jonboulle updated commit and added more details.

diskType=SSD AND (region=us-east-1 OR region=us-west-1)
```

Previous example schedules maximum one unit accross your cluster depending on first met requirement. If you add `Global=true`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous example schedules at most one unit across your cluster, depending on the first satisfied requirement.

@jonboulle
Copy link
Contributor

One more comment then looks good to merge.

@kayrus
Copy link
Contributor Author

kayrus commented Feb 10, 2016

@jonboulle fixed

jonboulle added a commit that referenced this pull request Feb 10, 2016
docs: Added detailed explanation on fleet's Metadata logic
@jonboulle jonboulle merged commit 81d6c4a into coreos:master Feb 10, 2016
@kayrus kayrus deleted the kayrus/multi_metadata branch March 30, 2016 07:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global unit not starting with multiple MachineMetadata
3 participants