]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephadm: document recommended syntax for mounting files with ECA 48069/head
authorAdam King <adking@redhat.com>
Wed, 7 Sep 2022 19:42:30 +0000 (15:42 -0400)
committerAdam King <adking@redhat.com>
Tue, 13 Sep 2022 14:44:42 +0000 (10:44 -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>
(cherry picked from commit f577d1117d9a05c31819b2c7158d604482c9addf)

Conflicts:
doc/cephadm/services/index.rst

doc/cephadm/services/index.rst

index 98e2b7c96552bf6e7f97e14d47259bade3679200..26fd8864a808b62b48af52a7f7e320efb3f38ab2 100644 (file)
@@ -518,10 +518,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"
+
 .. _orch-rm:
 
 Removing a Service