In the lab, we generated two different certificates (with keys) in 2 nodes. The certificate content is different. While configuring in prometheus server, how can we use the same certificate of one of the nodes for both nodes?
You can check the following steps:
Copy the certificate and key from one of the nodes to the other node.
prometheus.ymlconfiguration file, update the
tls_configsection to point to the copied certificate and key files. For example:
tls_config: cert_file: /etc/prometheus/prometheus.crt key_file: /etc/prometheus/prometheus.key
For your reference: