]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc/cephadm: document recommended syntax for mounting files with ECA
authorAdam King <adking@redhat.com>
Wed, 7 Sep 2022 19:42:30 +0000 (15:42 -0400)
committerAdam King <adking@redhat.com>
Mon, 12 Sep 2022 19:19:18 +0000 (15:19 -0400)
Mounting files with extra container args seems to not
work with some of the more intuitive syntaxes.
See https://tracker.ceph.com/issues/57338

Signed-off-by: Adam King <adking@redhat.com>
doc/cephadm/services/index.rst

index 09257e947288598c98e88f9785bd37676d343d85..23440907cc06454f89954d92c38d1a81c0ea8d9c 100644 (file)
@@ -519,10 +519,32 @@ a spec like
         - host2
         - host3
     extra_container_args:
-      -  "--cpus=2"
+      - "--cpus=2"
 
 which would cause each mon daemon to be deployed with `--cpus=2`.
 
+Mounting Files with Extra Container Arguments
+---------------------------------------------
+
+A common use case for extra container arguments is to mount additional
+files within the container. However, some intuitive formats for doing
+so can cause deployment to fail (see https://tracker.ceph.com/issues/57338).
+The recommended syntax for mounting a file with extra container arguments is:
+
+.. code-block:: yaml
+
+    extra_container_args:
+      - "-v"
+      - "/absolute/file/path/on/host:/absolute/file/path/in/container"
+
+For example:
+
+.. code-block:: yaml
+
+    extra_container_args:
+      - "-v"
+      - "/opt/ceph_cert/host.cert:/etc/grafana/certs/cert_file:ro"
+
 Custom Config Files
 ===================