<p>I have three questions basically.</p>

<ol>
<li>How to create an HA rancher cluster with custom CA.</li>
<li>How to create kubernetes cluster using the same rancher and custom CA.</li>
<li>How to get etcd certificated from etc machines to monitor it on Prometheus kubertnetes over SSL.</li>
</ol>

<p>I tried multiple forums and rancher documentation. I also tried generating certificates from rke. </p>

<p>I have two different problems</p>

<ol>
<li>How to use custom certificates</li>
<li>How to get certificates from ectd to run this <code>rancher kubectl -n monitoring create secret generic etcd-certs --from-file=/tmp/etcdcerts/kube-etcd.pem --from-file=/tmp/etcdcerts/kube-etcd-key.pem --from-file=/tmp/etcdcerts/kube-ca.pem</code></li>
</ol>

<p>Right now I am doing scp on ectd machines to get those certificates after rancher agent runs. I want to create certificates and create a cluster with them.</p>

rohitarora
<ol>
<li><p>You can bring in your own certificates when installing Rancher. See here for more info: <a href="https://rancher.com/docs/rancher/v2.x/en/installation/ha/helm-rancher/" rel="nofollow noreferrer">https://rancher.com/docs/rancher/v2.x/en/installation/ha/helm-rancher/</a></p></li>
<li><p>When you create a Cluster in Rancher, the certificates are automatically managed for you.</p></li>
<li><p>Starting Rancher v2.2.x, Prometheus is integrated into Rancher. You just have to enable it in Settings. After the installation, you can access the etcd metrics by clicking the Grafana icon in the UI on the cluster page.</p></li>
</ol>

<p><a href="https://i.stack.imgur.com/lCmjo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lCmjo.png" alt="etcd-grafana-screenshot"></a></p>
