<p>I have tried to install Cassandra on my Kubernetes cluster. After executing the commands </p>

<pre><code>kubectl apply -f Cassandra-service.yaml
</code></pre>

<p>and</p>

<pre><code>kubectl apply -f cassandra-statefulset.yaml
</code></pre>

<p>I have no errors, but the three Cassandras pods are not setting up. </p>

<p>When I execute</p>

<pre><code>kubectl get pods -o wide
</code></pre>

<p>the result is that a pod called <code>Cassandra-0</code> is not ready. I expected that the Cassandra pods would be already set up.</p>

<p>This is my <code>cassandra-statefulset.yaml</code> file: <a href="https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/application/cassandra/cassandra-statefulset.yaml" rel="nofollow noreferrer">https://raw.githubusercontent.com/kubernetes/website/master/content/en/examples/application/cassandra/cassandra-statefulset.yaml</a></p>

<p>I expect there to be three Cassandra pods but there is only one in the pending state:</p>

<p><img src="https://i.stack.imgur.com/TRl2R.png"></p>

<p>Here is the result of the previous command:</p>

<p><img src="https://i.stack.imgur.com/FEHTh.png"></p>

Paloma Gómez
<p>What Kubernetes environment do you use? Do you use Minikube?</p>

<p>It seems that cluster cannot create PersistentVolumeClaim. Maybe <code>StorageClass</code> configuration doesn't suit your cluster. </p>

<p>Also example Cassandra deployment contains:</p>

<pre><code>        resources:
          limits:
            cpu: "500m"
            memory: 1Gi
          requests:
            cpu: "500m"
            memory: 1Gi
</code></pre>

<p>So, your cluster should has free 1.5cpu and ~3Gb.</p>

<p>On my opinion, it's better and easier to configure Helm charts for infrastructure deployments, for example - <a href="https://github.com/bitnami/charts/tree/master/bitnami/cassandra" rel="nofollow noreferrer">https://github.com/bitnami/charts/tree/master/bitnami/cassandra</a></p>
