]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephadm: make custom containers its own chapter
authorSebastian Wagner <sebastian.wagner@suse.com>
Thu, 18 Feb 2021 14:34:04 +0000 (15:34 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 26 Feb 2021 10:51:29 +0000 (11:51 +0100)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
doc/cephadm/custom-container.rst [new file with mode: 0644]
doc/cephadm/index.rst
doc/cephadm/install.rst
doc/mgr/orchestrator.rst

diff --git a/doc/cephadm/custom-container.rst b/doc/cephadm/custom-container.rst
new file mode 100644 (file)
index 0000000..542fcf1
--- /dev/null
@@ -0,0 +1,78 @@
+========================
+Custom Container Service
+========================
+
+The orchestrator enables custom containers to be deployed using a YAML file.
+A corresponding :ref:`orchestrator-cli-service-spec` must look like:
+
+.. code-block:: yaml
+
+    service_type: container
+    service_id: foo
+    placement:
+        ...
+    image: docker.io/library/foo:latest
+    entrypoint: /usr/bin/foo
+    uid: 1000
+    gid: 1000
+    args:
+        - "--net=host"
+        - "--cpus=2"
+    ports:
+        - 8080
+        - 8443
+    envs:
+        - SECRET=mypassword
+        - PORT=8080
+        - PUID=1000
+        - PGID=1000
+    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"
+
+where the properties of a service specification are:
+
+* ``service_id``
+    A unique name of the service.
+* ``image``
+    The name of the Docker image.
+* ``uid``
+    The UID to use when creating directories and files in the host system.
+* ``gid``
+    The GID to use when creating directories and files in the host system.
+* ``entrypoint``
+    Overwrite the default ENTRYPOINT of the image.
+* ``args``
+    A list of additional Podman/Docker command line arguments.
+* ``ports``
+    A list of TCP ports to open in the host firewall.
+* ``envs``
+    A list of environment variables.
+* ``bind_mounts``
+    When you use a bind mount, a file or directory on the host machine
+    is mounted into the container. Relative `source=...` paths will be
+    located below `/var/lib/ceph/<cluster-fsid>/<daemon-name>`.
+* ``volume_mounts``
+    When you use a volume mount, a new directory is created within
+    Docker’s storage directory on the host machine, and Docker manages
+    that directory’s contents. Relative source paths will be located below
+    `/var/lib/ceph/<cluster-fsid>/<daemon-name>`.
+* ``dirs``
+    A list of directories that are created below
+    `/var/lib/ceph/<cluster-fsid>/<daemon-name>`.
+* ``files``
+    A dictionary, where the key is the relative path of the file and the
+    value the file content. The content must be double quoted when using
+    a string. Use '\\n' for line breaks in that case. Otherwise define
+    multi-line content as list of strings. The given files will be created
+    below the directory `/var/lib/ceph/<cluster-fsid>/<daemon-name>`.
+    The absolute path of the directory where the file will be created must
+    exist. Use the `dirs` property to create them if necessary.
index d1649447890ced6c988b6c1049c59aaf0726a2ca..3cdaf48ba2ed9694d5267955ed64b4158c1841b2 100644 (file)
@@ -33,6 +33,7 @@ versions of Ceph.
     host-management
     osd
     rgw
+    custom-container
     service-management
     upgrade
     Cephadm operations <operations>
index aa2b26e94017b2c85576c3c7d97b8e5c06a0efc6..bbb96d2810294a8b8add5c27630e785df1013029 100644 (file)
@@ -437,8 +437,5 @@ pool *nfs-ganesha* and namespace *nfs-ns*:
 
 See :ref:`orchestrator-cli-placement-spec` for details of the placement specification.
 
-Deploying custom containers
-===========================
-It is also possible to choose different containers than the default containers to deploy Ceph. See :ref:`containers` for information about your options in this regard.
 
 .. _cluster network: ../rados/configuration/network-config-ref#cluster-network
index 8f2283207151fa23a02cfd9b88b6dd1235235826..cd5e36b25be7430384fe8e2b6686470e84f85d2f 100644 (file)
@@ -184,85 +184,6 @@ Service Commands::
     ceph orch <start|stop|restart|redeploy|reconfig> <service_name>
 
 
-Deploying custom containers
-===========================
-
-The orchestrator enables custom containers to be deployed using a YAML file.
-A corresponding :ref:`orchestrator-cli-service-spec` must look like:
-
-.. code-block:: yaml
-
-    service_type: container
-    service_id: foo
-    placement:
-        ...
-    image: docker.io/library/foo:latest
-    entrypoint: /usr/bin/foo
-    uid: 1000
-    gid: 1000
-    args:
-        - "--net=host"
-        - "--cpus=2"
-    ports:
-        - 8080
-        - 8443
-    envs:
-        - SECRET=mypassword
-        - PORT=8080
-        - PUID=1000
-        - PGID=1000
-    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"
-
-where the properties of a service specification are:
-
-* ``service_id``
-    A unique name of the service.
-* ``image``
-    The name of the Docker image.
-* ``uid``
-    The UID to use when creating directories and files in the host system.
-* ``gid``
-    The GID to use when creating directories and files in the host system.
-* ``entrypoint``
-    Overwrite the default ENTRYPOINT of the image.
-* ``args``
-    A list of additional Podman/Docker command line arguments.
-* ``ports``
-    A list of TCP ports to open in the host firewall.
-* ``envs``
-    A list of environment variables.
-* ``bind_mounts``
-    When you use a bind mount, a file or directory on the host machine
-    is mounted into the container. Relative `source=...` paths will be
-    located below `/var/lib/ceph/<cluster-fsid>/<daemon-name>`.
-* ``volume_mounts``
-    When you use a volume mount, a new directory is created within
-    Docker’s storage directory on the host machine, and Docker manages
-    that directory’s contents. Relative source paths will be located below
-    `/var/lib/ceph/<cluster-fsid>/<daemon-name>`.
-* ``dirs``
-    A list of directories that are created below
-    `/var/lib/ceph/<cluster-fsid>/<daemon-name>`.
-* ``files``
-    A dictionary, where the key is the relative path of the file and the
-    value the file content. The content must be double quoted when using
-    a string. Use '\\n' for line breaks in that case. Otherwise define
-    multi-line content as list of strings. The given files will be created
-    below the directory `/var/lib/ceph/<cluster-fsid>/<daemon-name>`.
-    The absolute path of the directory where the file will be created must
-    exist. Use the `dirs` property to create them if necessary.
-
-
 
 Configuring the Orchestrator CLI
 ================================