No matches for kind "PerconaXtraDBCluster" in version ""

Here comes an error while installing a XtraDB cluster using cr.yaml file
I’am using the latest slightly modified cr.yaml
from here percona-xtradb-cluster-operator/cr.yaml at main · percona/percona-xtradb-cluster-operator · GitHub

helm install xtradb-operator percona/pxc-operator --namespace xtradb
kubectl apply -f cr.yaml


error: unable to recognize "cr.yaml": no matches for kind "PerconaXtraDBCluster" in version ""

When using original cr.yaml from Percfona Github repo another error comes up:

kubectl apply -f

error: error parsing error converting YAML to JSON: yaml: line 138: mapping values are not allowed in this context

What is wrong? How to troubleshoot this?

1 Like

I found out an answer to the first question.
The latest XtraDB Percona operator has apiVersion:
While the cr.yaml in main branch requires v1-10-0

However the cr.yaml out of GitHub repo does not work.

1 Like

Hello @Michael_Chudinov .

As you have already discovered the latest stable Operator version is 1.9.0. In main branch we have latest in greatest, which is 1.10. It also might have some additional fields, which would be not recognized by 1.9.0 operator.

Please use 1.9.0 tag, not main.

Let me know how it goes.

1 Like