I'm getting below error while creating cassandra operator for kubernetes.
# kubectl create -f example-cassandra-cluster.yaml
error: unable to recognize "example-cassandra-cluster.yaml": no matches for cassandra.database.instaclustr.com/, Kind=CassandraCluster
example-cassandra-cluster.yaml
is:
apiVersion: "cassandra.database.instaclustr.com/v1beta2"
kind: "CassandraCluster"
metadata:
name: "example-cassandra-cluster"
spec:
size: 3
version: "3.11"
pod:
resources:
limits:
memory: "512Mi"
Have anyone encountered this error before?
The
apiVersion: "cassandra.database.instaclustr.com/v1beta2"
indicates that the CassandraCluster kind
kind: "CassandraCluster"
depends on a Custom Resource Definition.
That CRD has to be created in the cluster before instantiating its objects.