From: Adam King Date: Tue, 8 Nov 2022 19:25:13 +0000 (-0500) Subject: doc/cephadm: docs for extra entrypoint args X-Git-Tag: v18.1.0~488^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8ee799e9cc0800fbedc8d9343aa3207bc9fd429e;p=ceph.git doc/cephadm: docs for extra entrypoint args Signed-off-by: Adam King --- diff --git a/doc/cephadm/services/index.rst b/doc/cephadm/services/index.rst index 23440907cc06..f8d783e0f993 100644 --- a/doc/cephadm/services/index.rst +++ b/doc/cephadm/services/index.rst @@ -497,11 +497,20 @@ candidate hosts. If there are fewer hosts selected by the placement specification than demanded by ``count``, cephadm will deploy only on the selected hosts. +.. _cephadm-extra-container-args: + Extra Container Arguments ========================= .. warning:: - The arguments provided for extra container args are limited to whatever arguments are available for a `run` command from whichever container engine you are using. Providing any arguments the `run` command does not support (or invalid values for arguments) will cause the daemon to fail to start. + The arguments provided for extra container args are limited to whatever arguments are available for + a `run` command from whichever container engine you are using. Providing any arguments the `run` + command does not support (or invalid values for arguments) will cause the daemon to fail to start. + +.. note:: + + For arguments passed to the process running inside the container rather than the for + the container runtime itself, see :ref:`cephadm-extra-entrypoint-args` Cephadm supports providing extra miscellaneous container arguments for @@ -545,6 +554,30 @@ For example: - "-v" - "/opt/ceph_cert/host.cert:/etc/grafana/certs/cert_file:ro" +.. _cephadm-extra-entrypoint-args: + +Extra Entrypoint Arguments +========================== + +.. note:: + + For arguments intended for the container runtime rather than the process inside + it, see :ref:`cephadm-extra-container-args` + +Similar to extra container args for the container runtime, Cephadm supports +appending to args passed to the entrypoint process running +within a container. For example, to set the collector textfile directory for +the node-exporter service , one could apply a service spec like + +.. code-block:: yaml + + service_type: node-exporter + service_name: node-exporter + placement: + host_pattern: '*' + extra_entrypoint_args: + - "--collector.textfile.directory=/var/lib/node_exporter/textfile_collector2" + Custom Config Files ===================