From ce73047d25599b247ab889614fa62684b0c7aca0 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 29 Sep 2021 12:02:28 +0200 Subject: [PATCH] doc/cephadm: update example of custom container spec file Signed-off-by: Sebastian Wagner --- doc/cephadm/services/custom-container.rst | 35 ++++++++++++----------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/doc/cephadm/services/custom-container.rst b/doc/cephadm/services/custom-container.rst index 542fcf16261d..3ece248c5a4c 100644 --- a/doc/cephadm/services/custom-container.rst +++ b/doc/cephadm/services/custom-container.rst @@ -11,32 +11,33 @@ A corresponding :ref:`orchestrator-cli-service-spec` must look like: service_id: foo placement: ... - image: docker.io/library/foo:latest - entrypoint: /usr/bin/foo - uid: 1000 - gid: 1000 - args: + spec: + image: docker.io/library/foo:latest + entrypoint: /usr/bin/foo + uid: 1000 + gid: 1000 + args: - "--net=host" - "--cpus=2" - ports: + ports: - 8080 - 8443 - envs: + envs: - SECRET=mypassword - PORT=8080 - PUID=1000 - PGID=1000 - volume_mounts: + volume_mounts: CONFIG_DIR: /etc/foo - bind_mounts: - - ['type=bind', 'source=lib/modules', 'destination=/lib/modules', 'ro=true'] - dirs: - - CONFIG_DIR - files: - CONFIG_DIR/foo.conf: - - refresh=true - - username=xyz - - "port: 1234" + bind_mounts: + - ['type=bind', 'source=lib/modules', 'destination=/lib/modules', 'ro=true'] + dirs: + - CONFIG_DIR + files: + CONFIG_DIR/foo.conf: + - refresh=true + - username=xyz + - "port: 1234" where the properties of a service specification are: -- 2.47.3