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?