No matches for kind "PerconaXtraDBCluster" in version "pxc.percona.com/v1-10-0"

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:

error: unable to recognize "cr.yaml": no matches for kind "PerconaXtraDBCluster" in version "pxc.percona.com/v1-10-0"

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

kubectl apply -f https://github.com/percona/percona-xtradb-cluster-operator/blob/main/deploy/cr.yaml

error: error parsing https://github.com/percona/percona-xtradb-cluster-operator/blob/main/deploy/cr.yaml: 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: pxc.percona.com/v1-9-0
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.

https://github.com/percona/percona-xtradb-cluster-operator/blob/v1.9.0/deploy/cr.yaml

Let me know how it goes.

1 Like