=======================
Basic Ceph Client Setup
=======================
+
Client hosts require basic configuration to interact with
Ceph clusters. This section describes how to perform this configuration.
``rados`` commands, as well as other commands including ``mount.ceph``
and ``rbd``.
+
Config File Setup
=================
-Client hosts usually require smaller configuration files (here
-sometimes called "config files") than do back-end cluster hosts.
+
To generate a minimal config file, log into a host that has been
configured as a client or that is running a cluster daemon, then
run the following command:
to reach the Ceph Monitors. This file should usually
be copied to ``/etc/ceph/ceph.conf`` on each client host.
+
Keyring Setup
=============
+
Most Ceph clusters run with authentication enabled. This means that
the client needs keys in order to communicate with Ceph daemons.
To generate a keyring file with credentials for ``client.fs``,
log into an running cluster member and run the following command:
-.. prompt:: bash $
+.. prompt:: bash #
ceph auth get-or-create client.fs
you should read :ref:`client_keyrings_and_configs`.
To see an example that explains how to distribute ``ceph.conf`` configuration
-files to hosts that are tagged with the ``bare_config`` label, you should read
-the subsection named "Distributing ceph.conf to hosts tagged with bare_config"
-under the heading :ref:`etc_ceph_conf_distribution`.
+files to hosts that are tagged with the ``bare_config`` label, you should
+read :ref:`ceph_conf_distribution_label`.
all Ceph versions, there are no known issues with using Podman
version 3.0 or greater with Ceph Quincy and later releases.
-.. warning::
+.. warning::
To use Podman with Ceph Pacific, you must use **a version of Podman that
is 2.0.0 or higher**. However, **Podman version 2.2.1 does not work with
Ceph Pacific**.
-
+
"Kubic stable" is known to work with Ceph Pacific, but it must be run
with a newer kernel.
- ceph-exporter deployment
- stretch mode integration
-- monitoring stack (moving towards prometheus service discover and providing TLS)
+- monitoring stack (moving towards Prometheus service discovery and providing TLS)
- RGW multisite deployment support (requires lots of manual steps currently)
- cephadm agent
ceph config set mgr mgr/cephadm/manage_etc_ceph_ceph_conf true
+.. _ceph_conf_distribution_label:
-Using Placement Specs to Specify which Hosts Get Keyrings
----------------------------------------------------------
+Using Placement Specs to Specify which Hosts Get ``ceph.conf``
+--------------------------------------------------------------
By default, the configs are written to all hosts (i.e., those listed by ``ceph
orch host ls``). To specify which hosts get a ``ceph.conf``, run a command of