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

Commit 669c083

Browse files
wuqixuanDongsu Park
wuqixuan
authored and
Dongsu Park
committed
Documentation: describe about operators in metadata
Update documentation. Fixes #1143
1 parent 2c76ec0 commit 669c083

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Documentation/unit-files-and-scheduling.md

+8
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ app.service 282f949f.../10.10.20.1 active running
179179
app.service fd1d3e94.../10.0.0.1 active running
180180
```
181181

182+
`MachineMetadata` also support relational operators, including `<=`, `>=`, `<`, `>`, `==` and `!=`:
183+
184+
```
185+
[X-Fleet]
186+
MachineMetadata=ram<1024
187+
```
188+
This requires an eligible machine to have the `ram` less than 1024. The value must be numeral when using `<=`, `>=`, `<` or `>`.
189+
182190
A machine is not automatically configured with metadata.
183191
A deployer may define machine metadata using the `metadata` [config option][config-option].
184192

0 commit comments

Comments
 (0)