From: Redouane Kachach Date: Fri, 5 Sep 2025 09:11:41 +0000 (+0200) Subject: doc: update Grafana certificate configuration to use certmgr X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2b5efb757a8327feaa8adf3bf21b8f96cd62b317;p=ceph.git doc: update Grafana certificate configuration to use certmgr 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 --- diff --git a/doc/cephadm/services/monitoring.rst b/doc/cephadm/services/monitoring.rst index 0eae8751c96f6..6f06799f79d15 100644 --- a/doc/cephadm/services/monitoring.rst +++ b/doc/cephadm/services/monitoring.rst @@ -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: + - + spec: + ssl: true + certificate_source: reference + +To register a custom certificate and key with certmgr for host ````: + +.. 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 -i $PWD/certificate.pem + ceph orch certmgr key set --key-name grafana_ssl_key --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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~