<p>When I get the logs for one of the pods with the CrashLoopBackOff status</p>
<p><code>kubectl logs alfred</code></p>
<p>it returns the following errors.</p>
<pre><code>error: alfred service exiting due to error {&quot;label&quot;:&quot;winston&quot;,&quot;timestamp&quot;:&quot;2021-11-08T07:02:02.324Z&quot;}
</code></pre>
<pre><code>    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26) {
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'mongodb'
} {&quot;label&quot;:&quot;winston&quot;,&quot;timestamp&quot;:&quot;2021-11-08T07:02:02.326Z&quot;}
</code></pre>
<pre><code>error: Client Manager Redis Error: getaddrinfo ENOTFOUND redis {&quot;errno&quot;:&quot;ENOTFOUND&quot;,&quot;code&quot;:&quot;ENOTFOUND&quot;,&quot;syscall&quot;:&quot;getaddrinfo&quot;,&quot;hostname&quot;:&quot;redis&quot;,&quot;stack&quot;:&quot;Error: getaddrinfo ENOTFOUND redis\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)&quot;,&quot;label&quot;:&quot;winston&quot;,&quot;timestamp&quot;:&quot;2021-11-08T07:02:02.368Z&quot;}
</code></pre>
<p>I am new to the Kubernetes and Aws Eks. Would be looking forward to help. Thanks</p>

Hamza J
<p>If you see the error its failing at getaddrinfo, which is a program/function to resolve the dns name and connect with an external service. It is trying to access a redis cluster. Seems like your EKS cluster doesn't have the connectivity.</p>
<p>However if you are running redis as part of your EKS cluster, make sure to provide/update the kubernetes service dns in the application code, or set this as an environment variable which can be set just before deployment.</p>
<p>Its redis and mongodb, also as error says you are providing hostname as redis and mongodb, it won't resolve to an IP address unless you have mapped it in /etc/hosts file which is actually untrue.</p>
<p>Give the correct hostnames, the pods will come up. This is the root-cause.</p>
