]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephadm: update example of custom container spec file
authorSebastian Wagner <sewagner@redhat.com>
Wed, 29 Sep 2021 10:02:28 +0000 (12:02 +0200)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 2 Nov 2021 09:01:22 +0000 (10:01 +0100)
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
(cherry picked from commit ce73047d25599b247ab889614fa62684b0c7aca0)

doc/cephadm/services/custom-container.rst

index 542fcf16261d80234a8d843be18d196abb064419..3ece248c5a4c9ed3e667b51c0c9daac7bca2146e 100644 (file)
@@ -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: