From 35e8338f684a2d0e4233d361f060e853846a27c4 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 1 Apr 2020 11:33:51 +0200 Subject: [PATCH] doc/mgr/orchestrator: Update `Placement by pattern matching` Signed-off-by: Sebastian Wagner (cherry picked from commit b740ae12e54e69e21fa06081d47b0ed4f90fac41) --- doc/mgr/orchestrator.rst | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/mgr/orchestrator.rst b/doc/mgr/orchestrator.rst index 7fe7cf9cc35ad..47545f7f9cd9e 100644 --- a/doc/mgr/orchestrator.rst +++ b/doc/mgr/orchestrator.rst @@ -395,7 +395,7 @@ Placement by pattern matching Daemons can be placed on hosts as well:: - orch apply prometheus '*' + orch apply prometheus 'myhost[1-3]' Or in yaml: @@ -403,9 +403,21 @@ Or in yaml: service_type: prometheus placement: - all_hosts: true + host_pattern: "myhost[1-3]" +To place a service on *all* hosts, use ``"*"``:: + orch apply crash '*' + +Or in yaml: + +.. code-block:: yaml + + service_type: node-exporter + placement: + host_pattern: "*" + + Setting a limit --------------- -- 2.39.5