<p>I'm deploying ELK on k8s but getting error on <code>Filebeat</code></p>
<p><code>kubectl describe pod filebeat-filebeat-rpjbg -n elk</code> ///</p>
<p><strong>Error:</strong></p>
<pre><code>Warning  Unhealthy  8s (x5 over 48s)  kubelet            Readiness probe failed: logstash: logstash:5044...
  connection...
    parse host... OK
    dns lookup... ERROR lookup logstash on 10.245.0.10:53: no such host
</code></pre>
<p>In logstash <code>values.yaml</code> may be this causing error?</p>
<pre><code>logstashConfig:
  logstash.yml: |
    http.host: 0.0.0.0
    xpack.monitoring.enabled: false
</code></pre>
<p><strong>PODS:</strong></p>
<pre><code>NAME                      READY   STATUS    RESTARTS   AGE
elasticsearch-master-0    1/1     Running   0          146m
filebeat-filebeat-rpjbg   0/1     Running   0          5m45s
filebeat-filebeat-v4fxz   0/1     Running   0          5m45s
filebeat-filebeat-zf5w7   0/1     Running   0          5m45s
logstash-logstash-0       1/1     Running   0          14m
logstash-logstash-1       1/1     Running   0          14m
logstash-logstash-2       1/1     Running   0          14m
</code></pre>
<p><strong>SVC:</strong></p>
<pre><code>NAME                            TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)             AGE
elasticsearch-master            ClusterIP   10.245.205.251   &lt;none&gt;        9200/TCP,9300/TCP   172m
elasticsearch-master-headless   ClusterIP   None             &lt;none&gt;        9200/TCP,9300/TCP   172m
logstash-logstash               ClusterIP   10.245.104.163   &lt;none&gt;        5044/TCP            16m
logstash-logstash-headless      ClusterIP   None             &lt;none&gt;        9600/TCP            16m
</code></pre>
<p><a href="https://github.com/ConorGrocock/DigitalOcean-Kubernetes-Challenge/blob/main/elasticsearch/values.yaml" rel="nofollow noreferrer">elasticsearch - values.yaml</a></p>
<p><a href="https://github.com/ConorGrocock/DigitalOcean-Kubernetes-Challenge/blob/main/logstash/values.yaml" rel="nofollow noreferrer">logstash - values.yaml</a></p>
<p><a href="https://github.com/ConorGrocock/DigitalOcean-Kubernetes-Challenge/tree/main/filebeat" rel="nofollow noreferrer">filebeat - values.yaml</a></p>

<p>Filebeat is trying to resolve &quot;logstash&quot;, but you don't have a service with that name. You have &quot;logstash-logstash&quot;. Try to change filebeat config (line 49 and 116 in filebeat values.yaml) or change the name of your logstash service accordingly.</p>
