From 183379748882303923dc95739b14833e621fec50 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 24 Feb 2020 16:35:52 -0800 Subject: [PATCH] doc/orchestrator: update rgw creation Signed-off-by: Yehuda Sadeh --- doc/cephadm/install.rst | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/doc/cephadm/install.rst b/doc/cephadm/install.rst index 42c135e55560e..afdbb8ba25780 100644 --- a/doc/cephadm/install.rst +++ b/doc/cephadm/install.rst @@ -309,14 +309,35 @@ Deploy RGWs Cephadm deploys radosgw as a collection of daemons that manage a particular *realm* and *zone*. (For more information about realms and -zones, see :ref:`multisite`.) To deploy a set of radosgw daemons for -a particular realm and zone:: - - # ceph orch apply rgw ** ** ** [** ...] +zones, see :ref:`multisite`.) Note that with cephadm, radosgw daemons are configured via the monitor configuration database instead of via a `ceph.conf` or the command line. If -that confiruation isn't already in place (usually in the +that configuration isn't already in place (usually in the ``client.rgw..`` section), then the radosgw daemons will start up with default settings (e.g., binding to port 80). + +If a realm has not been created yet, first create a realm:: + + # radosgw-admin realm create --rgw-realm= --default + +Next create a new zonegroup:: + + # radosgw-admin zonegroup create --rgw-zonegroup= --master --default + +Next create a zone:: + + # radosgw-admin zone create --rgw-zonegroup= --rgw-zone= --master --default + +To deploy a set of radosgw daemons for a particular realm and zone:: + + # ceph orch apply rgw ** ** ** [** ...] + +For example, to deploy 2 rgw daemons serving the *myorg* realm and the *us-east-1* +zone on *myhost1* and *myhost2*:: + + # radosgw-admin realm create --rgw-realm=myorg --default + # radosgw-admin zonegroup create --rgw-zonegroup=default --master --default + # radosgw-admin zone create --rgw-zonegroup=default --rgw-zone=us-east-1 --master --default + # ceph orch apply rgw myorg us-east-1 2 myhost1 myhost2 -- 2.39.5