<p>Cassandra cluster on aws is failing to start.
The error is as follows.</p>

<blockquote>
  <p>INFO  [main] 2018-10-11 08:11:42,794 DatabaseDescriptor.java:729 -
  Back-pressure is disabled with strategy
  org.apache.cassandra.net.RateBasedBackPressure{high_ratio=0.9,
  factor=5, flow=FAST}.</p>
  
  <p>WARN  [main] 2018-10-11 08:11:42,848 SimpleSeedProvider.java:60 - Seed
  provider couldn't lookup host
  cassandra-0.cassandra.default.svc.cluster.local Exception
  (org.apache.cassandra.exceptions.ConfigurationException) encountered
  during startup: The seed provider lists no seeds. The seed provider
  lists no seeds. ERROR [main] 2018-10-11 08:11:42,851
  CassandraDaemon.java:708 - Exception encountered during startup: The
  seed provider lists no seeds.</p>
</blockquote>

<p>Here are my details of it.</p>

<pre><code>$kubectl get pods                                                                                                                                                                                   [13:48]
NAME          READY     STATUS             RESTARTS   AGE
cassandra-0   1/1       Running            0          19h
cassandra-1   0/1       CrashLoopBackOff   231        19h

$kubectl get services                                                                                                                                                                               [13:49]
NAME         TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)          AGE
cassandra    NodePort    100.69.201.208   &lt;none&gt;        9042:30000/TCP   1d
kubernetes   ClusterIP   100.64.0.1       &lt;none&gt;        443/TCP          15d

$kubectl get pvc                                                                                                                                                                                    [13:50]
NAME                            STATUS    VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
cassandra-data-cassandra-0      Pending                                                                        fast           15d
cassandra-storage-cassandra-0   Bound     pvc-f3ff4203-c0a4-11e8-84a8-02c7556b5a4a   320Gi      RWO            gp2            15d
cassandra-storage-cassandra-1   Bound     pvc-1bc3f896-c0a5-11e8-84a8-02c7556b5a4a   320Gi      RWO            gp2            15d

$kubectl get namespaces                                                                                                                                                                             [13:53]
NAME          STATUS    AGE
default       Active    15d
kube-public   Active    15d
kube-system   Active    15d
</code></pre>

<p>Even the working pod is not loading storage.</p>

<p>It was working fine till I tried to change <code>MAX_HEAP_SIZE</code> from 1024M to 2048M.</p>

<p>After that even I deleted all old pods, services and created fresh, still it's not working.</p>

Manish Kumar
<p>You are using the NodePort type. This will not make the service a headless service which is why the IP-address of the pod doesn't get resolved.</p>

<p>What you need to do is to create a seperate headless service. You also need to create your own Docker image and run a script in your entrypoint that will fetch all the ips for the service domain name.</p>

<p>You can look at the following project as an example: <a href="https://github.com/vyshane/cassandra-kubernetes/" rel="nofollow noreferrer">https://github.com/vyshane/cassandra-kubernetes/</a></p>
