# Elastic Stack on OpenShift

**URL:** https://discuss.elastic.co/t/elastic-stack-on-openshift/190490
**Category:** Elasticsearch
**Created:** [July 15, 2019, 10:02am UTC](https://discuss.elastic.co/t/elastic-stack-on-openshift/190490 "2019-07-15T10:02:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![vivek14](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vivek14](https://discuss.elastic.co/u/vivek14)
#### Post date: [July 15, 2019, 10:02am UTC](https://discuss.elastic.co/t/elastic-stack-on-openshift/190490/1 "2019-07-15T10:02:07Z")

</div>

Hi,

I want to install the Elastic Stack on OpenShift Container Platform.

To start with Elasticsearch, I deployed the official **elasticsearch:7.2.0** image from docker hub on OCP but the pod does not start successfully.

Get following error

> BlockquoteERROR: [2] bootstrap checks failed  
> [1]: max virtual memory areas vm.max\_map\_count [65530] is too low, increase to at least [262144]  
> [2]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed\_hosts, discovery.seed\_providers, cluster.initial\_master\_nodes] must be configured

Is there any configuration needed to run it successfully?

Thanks,

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [July 15, 2019, 11:06am UTC](https://discuss.elastic.co/t/elastic-stack-on-openshift/190490/2 "2019-07-15T11:06:11Z")

</div>

Yes, the configuration you need to change is listed in the very message you quote. You must [increase `vm.max_map_count`](https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html) and configure at least one of the listed [discovery](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-hosts-providers.html) settings.

---

<div class="post-metadata">

### Author: ![vivek14](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vivek14](https://discuss.elastic.co/u/vivek14)
#### Post date: [July 15, 2019, 11:38am UTC](https://discuss.elastic.co/t/elastic-stack-on-openshift/190490/3 "2019-07-15T11:38:35Z")

</div>

@DavidTurner Thank you for your response.

Yes I did manage to solve the **vm.max\_map\_count** by increasing it directly on worker nodes but the second error is still there.

How and where do I apply the **discovery** settings while deploying the offical image on OpenShift? What should be the value for **discovery** settings since it will run as a **pod** in OCP and not on a VM or physical server?

Is there any documentation/blog on deploying the Elastic Stack on OpenShift?

I am interested in deploying ELK and Filebeat to start with.

Appreciate if you can give pointers or guide me on this.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [July 15, 2019, 12:41pm UTC](https://discuss.elastic.co/t/elastic-stack-on-openshift/190490/4 "2019-07-15T12:41:39Z")

</div>

I don't know much about OpenShift (it's not something I think we really support) but the discovery process shouldn't be very different there, so all the documentation should still apply in your case. If you have a one-node cluster then normally the simplest thing to do is to set `cluster.initial_master_nodes` to the name of the node.

---

<div class="post-metadata">

### Author: ![vivek14](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@vivek14](https://discuss.elastic.co/u/vivek14)
#### Post date: [July 16, 2019, 6:06am UTC](https://discuss.elastic.co/t/elastic-stack-on-openshift/190490/5 "2019-07-16T06:06:09Z")

</div>

During installation process of OpenShift Container Platform (OCP), if logging module is enabled, Elastic Fluentd Kibana (EFK) stack gets provisioned in OCP. This process provisions old versions of EFK.

There is some documentation on [elastic.co](http://elastic.co) on Running Filebeat on Kubernetes/OCP through manifest file filebeat-kubernetes.yaml as shown in below image...

 ![filebeat](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d93a1de2ccdf640a62823db5850597105730e1e5.png)

with additional reference of RedHat OpenShift configuration

 ![filebeat%20on%20ocp](https://us1.discourse-cdn.com/elastic/original/3X/2/a/2a94660b462a1ce536395ff1e5943dd9af3cab6a.png)

For those who want provision latest versions of ELK on OCP and want to have full control of the stack configuration, how do they proceed?

I could not find any documentation/guide for ELK on [elastic.co](http://elastic.co) or outside.

Could you help give any reference to contact?

Thank you,

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [July 16, 2019, 6:12am UTC](https://discuss.elastic.co/t/elastic-stack-on-openshift/190490/6 "2019-07-16T06:12:34Z")

</div>

> [@vivek14](#):
>
> There is some documentation on [elastic.co](http://elastic.co) on Running Filebeat on Kubernetes/OCP

To be clear, there is documentation on running Filebeat on Kubernetes, but no mention of OCP.

> [@vivek14](#):
>
> For those who want provision latest versions of ELK on OCP and want to have full control of the stack configuration, how do they proceed?

If OCP is installing an old version of the Elastic Stack for its logging module then it's probably best to seek help from the [good people that develop OCP](https://help.openshift.com).

---

<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: [August 13, 2019, 6:12am UTC](https://discuss.elastic.co/t/elastic-stack-on-openshift/190490/7 "2019-08-13T06:12:36Z")

</div>

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