<p>I need to restart the Elasticsearch node after installing the injest-attachment plugin on Kubernetes Engine on Google Cloud Platform. I have deployed Elasticsearch on a pod. What is the best way to restart the Elasticsearch nodes?</p>

Ben Abey
<p>If Elasticsearch is running directly on the VM:</p>

<pre><code>systemctl restart elasticsearch
</code></pre>

<p>If Elasticsearch is running as a container on docker:</p>

<pre><code>docker restart &lt;container-id&gt;
</code></pre>

<p>If Elasticsearch is running as a Kubernetes pod (deployed through a Kubernetes manifest):</p>

<ul>
<li>update the image tag in the manifest if needed, and do <code>kubectl apply</code> </li>
<li>Or use <code>kubectl replace</code> or <code>kubectl edit</code> commands</li>
</ul>

<p>On Kubernetes, ideally, you should use the declarative way of updating the manifests and then do a <code>kubectl apply -f</code></p>
