<p>I have a working kubernetes cluster with the elasticsearch up and running returning a 200. I am trying to install the HQ plugin. So i log into the node running the es-client, and attach to the docker container. When i execute the command</p>

<pre><code>/ # /elasticsearch/bin/plugin  -install royrusso/elasticsearch-HQ
</code></pre>

<p>i am getting</p>

<pre><code>Exception in thread "main" java.lang.IllegalArgumentException: Could not resolve placeholder 'DISCOVERY_SERVICE'
</code></pre>

<p>I am using the yaml files from here
<a href="https://github.com/pires/kubernetes-elasticsearch-cluster" rel="nofollow">https://github.com/pires/kubernetes-elasticsearch-cluster</a>
with these modifications
<a href="https://github.com/UKHomeOffice/docker-elasticsearch/blob/master/examples/kubernetes.md" rel="nofollow">https://github.com/UKHomeOffice/docker-elasticsearch/blob/master/examples/kubernetes.md</a></p>

<p>Am i missing something?</p>

<p>Thanks in advance</p>

<p>Attach to the container</p>

<pre><code>docker exec -it 9f13966b1201 /bin/sh
</code></pre>

<p>Export the DISCOVERY_SERVICE</p>

<pre><code>export DISCOVERY_SERVICE=${DISCOVERY_SERVICE:-elasticsearch-discovery}
</code></pre>

<p>Install the Plugin</p>

<pre><code>/elasticsearch/bin/plugin  -install royrusso/elasticsearch-HQ
</code></pre>

<p>keep in mind this will not be persistent </p>
