Skip to content

Commit

Permalink
fleetd: support operators in metadata
Browse files Browse the repository at this point in the history
Update documentation.

Fixes coreos#1143
  • Loading branch information
wuqixuan authored and Dongsu Park committed Jun 3, 2016
1 parent a2267f3 commit 0ee6bdf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Documentation/unit-files-and-scheduling.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,14 @@ app.service 282f949f.../10.10.20.1 active running
app.service fd1d3e94.../10.0.0.1 active running
```

`MachineMetadata` also support relational operators, including `<=`, `>=`, `<`, `>` and `!=`:

```
[X-Fleet]
MachineMetadata=ram<1024
```
This requires an eligible machine to have the `ram` less than 1024. The value must be numeral when using `<=`, `>=`, `<` or `>`.

A machine is not automatically configured with metadata.
A deployer may define machine metadata using the `metadata` [config option][config-option].

Expand Down

0 comments on commit 0ee6bdf

Please sign in to comment.