]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: update Grafana certificate configuration to use certmgr 65406/head
authorRedouane Kachach <rkachach@ibm.com>
Fri, 5 Sep 2025 09:11:41 +0000 (11:11 +0200)
committerRedouane Kachach <rkachach@ibm.com>
Fri, 5 Sep 2025 13:40:27 +0000 (15:40 +0200)
With the introduction of certmgr, users must register their certificates
via `ceph orch certmgr cert set --hostname ...` instead of the old
config-key method. The updated docs clarify that Grafana certificates
are host-scoped and can only be provided by reference (or default to
cephadm-signed).

Signed-off-by: Redouane Kachach <rkachach@ibm.com>
doc/cephadm/services/monitoring.rst

index 0eae8751c96f6698e649cd325186802185a55be6..6f06799f79d15e465f0c25bc245c1ac2da2054c3 100644 (file)
@@ -515,28 +515,43 @@ services have been deployed, you should see something like this when you issue t
 Configuring SSL/TLS for Grafana
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-``cephadm`` deploys Grafana using the certificate defined in the ceph
-key/value store. If no certificate is specified, ``cephadm`` generates a
-self-signed certificate during the deployment of the Grafana service. Each
-certificate is specific for the host it was generated on.
+``cephadm`` deploys Grafana using a certificate managed by the cephadm
+Certificate Manager (certmgr). Certificates for Grafana are **per host**:
 
-A custom certificate can be configured using the following commands:
+  - **Default (cephadm-signed):** If no certificate is specified,
+    cephadm generates and signs a certificate for each host where Grafana runs.
+  - **User-provided (as reference):** You can add your own certificate
+    and private key with certmgr and reference them in the Grafana spec.
 
-.. prompt:: bash #
+A Grafana service spec with a user-provided certificate looks like:
+
+.. code-block:: yaml
 
-  ceph config-key set mgr/cephadm/{hostname}/grafana_key -i $PWD/key.pem
-  ceph config-key set mgr/cephadm/{hostname}/grafana_crt -i $PWD/certificate.pem
+   service_type: grafana
+   placement:
+     hosts:
+       - <ceph-node-hostname>
+   spec:
+     ssl: true
+     certificate_source: reference
+
+To register a custom certificate and key with certmgr for host ``<ceph-node-hostname>``:
+
+.. prompt:: bash #
 
-Where `hostname` is the hostname for the host where grafana service is deployed.
+   ceph orch certmgr cert set --cert-name grafana_ssl_cert --hostname <ceph-node-hostname> -i $PWD/certificate.pem
+   ceph orch certmgr key set --key-name grafana_ssl_key --hostname <ceph-node-hostname> -i  $PWD/key.pem
 
-If you have already deployed Grafana, run ``reconfig`` on the service to
-update its configuration:
+If Grafana is already deployed, run ``reconfig`` on the service to
+apply the updated certificate:
 
 .. prompt:: bash #
 
-  ceph orch reconfig grafana
+   ceph orch reconfig grafana
 
-The ``reconfig`` command also sets the proper URL for Ceph Dashboard.
+The ``reconfig`` command also ensures that the Ceph Dashboard URL
+is updated to use the correct certificate. The ``reconfig`` command
+also sets the proper URL for the Ceph Dashboard.
 
 Setting the initial admin password
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~