percona-xtradb-cluster-operator icon indicating copy to clipboard operation
percona-xtradb-cluster-operator copied to clipboard

Allow users to set the size of pxc equals to 1 through percona-xtradb-cluster-operator/deploy/cr.yaml

Open kevin-baas opened this issue 1 year ago • 1 comments

Proposal

When I set pxc to equal 1 through percona-xtradb-cluster-operator/deploy/cr.yaml, it doesn't work

Use-Case

No response

Is this a feature you are interested in implementing yourself?

No

Anything else?

No response

kevin-baas avatar Jun 16 '24 01:06 kevin-baas

Deploying the cluster with only one node is working for me. Because running the cluster with only one node is seen as an unsafe configuration you have to set allowUnsafeConfigurations to true.

From the docs:

allowUnsafeConfigurations Prevents users from configuring a cluster with unsafe parameters such as starting the cluster with the number of Percona XtraDB Cluster instances which is less than 3, more than 5, or is an even number, with less than 2 ProxySQL or HAProxy Pods, or without TLS/SSL certificates (if false, unsafe parameters will be automatically changed to safe defaults)

tombojer avatar Jun 17 '24 05:06 tombojer