From: Sebastian Wagner Date: Wed, 29 Sep 2021 10:02:28 +0000 (+0200) Subject: doc/cephadm: update example of custom container spec file X-Git-Tag: v17.1.0~683^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ce73047d25599b247ab889614fa62684b0c7aca0;p=ceph.git doc/cephadm: update example of custom container spec file Signed-off-by: Sebastian Wagner --- 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: