<p>I'm getting below error while creating cassandra operator for kubernetes.</p>

<pre><code># kubectl create -f example-cassandra-cluster.yaml 
error: unable to recognize "example-cassandra-cluster.yaml": no matches for cassandra.database.instaclustr.com/, Kind=CassandraCluster
</code></pre>

<p><code>example-cassandra-cluster.yaml</code> is:</p>

<pre><code>apiVersion: "cassandra.database.instaclustr.com/v1beta2"
kind: "CassandraCluster"
metadata:
name: "example-cassandra-cluster"
spec:
size: 3
version: "3.11"
pod:
resources:
  limits:
    memory: "512Mi"
</code></pre>

<p>Have anyone encountered this error before?  </p>

<p>The</p>

<pre><code>apiVersion: "cassandra.database.instaclustr.com/v1beta2"
</code></pre>

<p>indicates that the CassandraCluster kind</p>

<pre><code>kind: "CassandraCluster"
</code></pre>

<p>depends on a Custom Resource Definition.</p>

<p>That CRD has to be created in the cluster before instantiating its objects.</p>

<p><a href="https://kubernetes.io/docs/tasks/access-kubernetes-api/extend-api-custom-resource-definitions/#create-a-customresourcedefinition" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/access-kubernetes-api/extend-api-custom-resource-definitions/#create-a-customresourcedefinition</a></p>
