# How to re-use helm to create 2 ES and kibana cluster?

**URL:** <https://discuss.elastic.co/t/how-to-re-use-helm-to-create-2-es-and-kibana-cluster/227223>\
**Category:** Elasticsearch\
**Created:** [April 9, 2020, 12:42am UTC](https://discuss.elastic.co/t/how-to-re-use-helm-to-create-2-es-and-kibana-cluster/227223 "2020-04-09T00:42:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mui\_Chun\_Lim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mui_chun_lim/32/45680_2.png) [@Mui\_Chun\_Lim](https://discuss.elastic.co/u/Mui_Chun_Lim)\
**Post date:** [April 9, 2020, 12:42am UTC](https://discuss.elastic.co/t/how-to-re-use-helm-to-create-2-es-and-kibana-cluster/227223/1 "2020-04-09T00:42:56Z")

</div>

I have k8s 1.17.4 and helm 2.16.5 installed in my Data Center (on premise k8s) and I intent to install elasticsearch and kibana on k8s.

I setup ES with the following commands.

cd elasticsearch/examples/security make secrets  
$ make install

and setup Kibana with these commands

cd kibana/examples/security make secrets  
$ make install

Installation works perfectly and I can see pods, services and nodePort all working. But when I access it via browser, I got https cert issue.

Here is the challenge I am facing is that the cert generated has a friendly name = "security-master"  
$ cd elasticsearch/examples/security ;make secrets

And my k8s host is something else.

Do I need to change the friendly name to match my k8s host name since I use NodePort to export the service?

How do I generate SSL cert for Kibana?

---

<div class="post-metadata">

**Author:** ![Julien\_MAILLERET](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_mailleret/32/45074_2.png) [@Julien\_MAILLERET](https://discuss.elastic.co/u/Julien_MAILLERET)\
**Post date:** [April 14, 2020, 7:31am UTC](https://discuss.elastic.co/t/how-to-re-use-helm-to-create-2-es-and-kibana-cluster/227223/2 "2020-04-14T07:31:44Z")

</div>

Hi @Mui_Chun_Lim,

The instructions in [elasticsearch/examples/security](https://github.com/elastic/helm-charts/blob/master/elasticsearch/examples/security) and [kibana/examples/security](https://github.com/elastic/helm-charts/blob/master/kibana/examples/security) are only provided as example. You should modify them to match your environment.

As for generating a certificate for Kibana, you can find instructions in [Kibana documentation](https://www.elastic.co/guide/en/kibana/current/configuring-tls.html).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 12, 2020, 7:32am UTC](https://discuss.elastic.co/t/how-to-re-use-helm-to-create-2-es-and-kibana-cluster/227223/3 "2020-05-12T07:32:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
