Percona Operator for MySQL uses Custom Resources :octicons-link-external-16: to manage options for the various components of the cluster.
PerconaXtraDBCluster
Custom Resource with Percona XtraDB Cluster options,PerconaXtraDBClusterBackup
andPerconaXtraDBClusterRestore
Custom Resources contain options for Percona XtraBackup used to backup Percona XtraDB Cluster and to restore it from backups.
PerconaXtraDBCluster
Custom Resource contains options for Percona XtraDB Cluster and can be configured via the deploy/cr.yaml :octicons-link-external-16: configuration file.
The metadata part contains the following keys:
-
name
(cluster1
by default) sets the name of your Percona XtraDB Cluster; it should include only URL-compatible characters :octicons-link-external-16:, not exceed 22 characters, start with an alphabetic character, and end with an alphanumeric character; finalizers
subsection:percona.com/delete-pods-in-order
if present, activates the Finalizer :octicons-link-external-16: which controls the proper Pods deletion order in case of the cluster deletion event (on by default).percona.com/delete-pxc-pvc
if present, activates the Finalizer :octicons-link-external-16: which deletes Persistent Volume Claims :octicons-link-external-16: for Percona XtraDB Cluster Pods after the cluster deletion event (off by default).percona.com/delete-proxysql-pvc
if present, activates the Finalizer :octicons-link-external-16: which deletes Persistent Volume Claim :octicons-link-external-16: for ProxySQL Pod after the cluster deletion event (off by default).-
percona.com/delete-ssl
if present, activates the Finalizer :octicons-link-external-16: which deletes objects, created for SSL (Secret, certificate, and issuer) after the cluster deletion event (off by default).
The toplevel spec elemets of the deploy/cr.yaml :octicons-link-external-16: are the following ones:
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. This option is deprecated and will be removed in future releases. Use unsafeFlags
subsection instead.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
Enables or disables schema validation before applying cr.yaml
file (works only in cluster-wide mode due to access restrictions).
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | true |
Enables or disables automatic storage scaling / volume expansion.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
Pause/resume: setting it to true
gracefully stops the cluster, and setting it to false
after shut down starts the cluster back.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
A name for users secrets.
Value type | Example |
---|---|
:material-code-string: string | cluster1-secrets |
Version of the Operator the Custom Resource belongs to.
Value type | Example |
---|---|
:material-code-string: string | {{ release }} |
The list of annotations to be ignored by the Operator.
Value type | Example |
---|---|
:material-text-long: subdoc | iam.amazonaws.com/role |
The list of labels to be ignored by the Operator.
Value type | Example |
---|---|
:material-text-long: subdoc | rack |
A secret for the HashiCorp Vault :octicons-link-external-16: to carry on Data at Rest Encryption.
Value type | Example |
---|---|
:material-code-string: string | keyring-secret-vault |
A secret with TLS certificate generated for external communications, see Transport Layer Security (TLS) for details.
Value type | Example |
---|---|
:material-code-string: string | cluster1-ssl |
A secret with TLS certificate generated for internal communications, see Transport Layer Security (TLS) for details.
Value type | Example |
---|---|
:material-code-string: string | cluster1-ssl-internal |
A secret for the Fluent Bit Log Collector.
Value type | Example |
---|---|
:material-code-string: string | my-log-collector-secrets |
An alternative image for the initial Operator installation. This option is deprecated and will be removed in future releases. Use initContainer.image
instead.
Value type | Example |
---|---|
:material-code-string: string | percona/percona-xtradb-cluster-operator:{{ release }} |
A strategy the Operator uses for upgrades.
Value type | Example |
---|---|
:material-code-string: string | SmartUpdate |
The unsafeFlags
section in the deploy/cr.yaml :octicons-link-external-16: file contains various configuration options to prevent users from configuring a cluster with unsafe parameters.
Allows users to configure a cluster without TLS/SSL certificates (if false
, the Operator will detect unsafe parameters, set cluster status to error
, and print error message in logs).
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
Allows users to configure a cluster with less than 3 Percona XtraDB Cluster instances (if false
, the Operator will detect unsafe parameters, set cluster status to error
, and print error message in logs).
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
Allows users to configure a cluster with less than 2 ProxySQL or HAProxy Pods (if false
, the Operator will detect unsafe parameters, set cluster status to error
, and print error message in logs).
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
Allows running a backup even if the cluster status is not ready
.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
The initContainer
section in the deploy/cr.yaml :octicons-link-external-16: file
allows providing an alternative image with various options for the initial Operator installation.
An alternative image for the initial Operator installation.
Value type | Example |
---|---|
:material-code-string: string | percona/percona-xtradb-cluster-operator:{{ release }} |
###initContainer.containerSecurityContext
A custom Kubernetes Security Context for a Container :octicons-link-external-16: for the image used for the initial Operator installation.
Value type | Example |
---|---|
:material-text-long: subdoc | privileged: false |
The Kubernetes memory requests :octicons-link-external-16: for an image used while the initial Operator installation.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU requests :octicons-link-external-16: for an image used while the initial Operator installation.
Value type | Example |
---|---|
:material-code-string: string | 600m |
Kubernetes memory limits :octicons-link-external-16: for an image used while the initial Operator installation.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU limits :octicons-link-external-16: for an image used while the initial Operator installation.
Value type | Example |
---|---|
:material-code-string: string | 1 |
The tls
section in the deploy/cr.yaml :octicons-link-external-16: file contains various configuration options for additional customization of the TLS cert-manager.
Enables or disables the TLS encryption. If set to false
,
it also requires setting unsafeFlags.tls option to
true`.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | true |
Additional domains (SAN) to be added to the TLS certificate within the extended cert-manager configuration.
Value type | Example |
---|---|
:material-text-long: subdoc |
A cert-manager issuer name :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | special-selfsigned-issuer |
A cert-manager issuer type :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | ClusterIssuer |
A cert-manager issuer group :octicons-link-external-16:. Should be cert-manager.io
for built-in cert-manager certificate issuers.
Value type | Example |
---|---|
:material-code-string: string | cert-manager.io |
The upgradeOptions
section in the deploy/cr.yaml :octicons-link-external-16: file contains various configuration options to control Percona XtraDB Cluster upgrades.
The Version Service URL used to check versions compatibility for upgrade.
Value type | Example |
---|---|
:material-code-string: string | https://check.percona.com |
Specifies how updates are processed by the Operator. Never
or Disabled
will completely disable automatic upgrades, otherwise it can be set to Latest
or Recommended
or to a specific version string of Percona XtraDB Cluster (e.g. 8.0.19-10.1
) that is wished to be version-locked (so that the user can control the version running, but use automatic upgrades to move between them).
Value type | Example |
---|---|
:material-code-string: string | Disabled |
Scheduled time to check for updates, specified in the crontab format :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | 0 2 \* \* \* |
The pxc
section in the deploy/cr.yaml :octicons-link-external-16: file contains general
configuration options for the Percona XtraDB Cluster.
The size of the Percona XtraDB cluster must be 3 or 5 for High Availability :octicons-link-external-16:. Other values are allowed if the spec.unsafeFlags.pxcSize
key is set to true.
Value type | Example |
---|---|
:material-numeric-1-box: int | 3 |
The Docker image of the Percona cluster used (actual image names for Percona XtraDB Cluster 8.0 and Percona XtraDB Cluster 5.7 can be found in the list of certified images).
Value type | Example |
---|---|
:material-code-string: string | percona/percona-xtradb-cluster:{{ pxc80recommended }} |
Turns Automatic Crash Recovery on or off.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | true |
Enable or disable exposing Percona XtraDB Cluster instances with dedicated IP addresses.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | true |
The Kubernetes Service Type :octicons-link-external-16: used for exposure.
Value type | Example |
---|---|
:material-code-string: string | LoadBalancer |
Specifies whether Service should route external traffic to cluster-wide or node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness) This option is deprecated and will be removed in future releases. Use pxc.expose.externalTrafficPolicy
instead.
Value type | Example |
---|---|
:material-code-string: string | Local |
Specifies whether Service for Percona XtraDB Cluster should route external traffic to cluster-wide or to node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness).
Value type | Example |
---|---|
:material-code-string: string | Local |
Specifies whether Service for Percona XtraDB Cluster should route internal traffic to cluster-wide or to node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness).
Value type | Example |
---|---|
:material-code-string: string | Local |
The range of client IP addresses from which the load balancer should be reachable (if not set, there is no limitations).
Value type | Example |
---|---|
:material-code-string: string | 10.0.0.0/8 |
The static IP-address for the load balancer.
Value type | Example |
---|---|
:material-code-string: string | 127.0.0.1 |
The Kubernetes annotations :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | networking.gke.io/load-balancer-type: "Internal" |
Name of the replication channel for cross-site replication.
Value type | Example |
---|---|
:material-code-string: string | pxc1_to_pxc2 |
Should the cluster act as Source (true
) or Replica (false
)
in cross-site replication.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
Number of retries Replica should do when the existing connection source fails.
Value type | Example |
---|---|
:material-numeric-1-box: int | 3 |
The interval between reconnection attempts in seconds to be used by Replica when the the existing connection source fails.
Value type | Example |
---|---|
:material-numeric-1-box: int | 60 |
Turns SSL for replication channels on or off.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
Turns the host name identity verification for SSL-based replication on or off.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | true |
The path name of the Certificate Authority (CA) certificate file to be used if the SSL for replication channels is turned on.
Value type | Example |
---|---|
:material-code-string: string | /etc/mysql/ssl/ca.crt |
For the cross-site replication Replica cluster, this key should contain the hostname or IP address of the Source cluster.
Value type | Example |
---|---|
:material-code-string: string | 10.95.251.101 |
For the cross-site replication Replica cluster, this key should contain the Source port number.
Value type | Example |
---|---|
:material-numeric-1-box: int | 3306 |
For the cross-site replication Replica cluster, this key should contain the Source cluster weight (varies from 1
to 100
, the cluster with the higher number will be selected as the replication source first).
Value type | Example |
---|---|
:material-numeric-1-box: int | 100 |
Adds a delay before a run check to verify the application is ready to process traffic.
Value type | Example |
---|---|
:material-numeric-1-box: int | 15 |
Adds a delay before the run check ensures the application is healthy and capable of processing requests.
Value type | Example |
---|---|
:material-numeric-1-box: int | 300 |
The my.cnf
file options to be passed to Percona XtraDB cluster nodes.
Value type | Example |
---|---|
:material-code-string: string | | |
The Kubernetes ImagePullSecret :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | private-registry-credentials |
The Kubernetes Pod priority class :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | high-priority |
The Kubernetes Scheduler :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | mycustom-scheduler |
The Kubernetes annotations :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | iam.amazonaws.com/role: role-arn |
Labels are key-value pairs attached to objects :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | rack: rack-22 |
Number of seconds to wait before performing the first readiness probe :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 15 |
Number of seconds after which the readiness probe :octicons-link-external-16: times out.
Value type | Example |
---|---|
:material-numeric-1-box: int | 15 |
How often (in seconds) to perform the readiness probe :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 30 |
Minimum consecutive successes for the readiness probe :octicons-link-external-16: to be considered successful after having failed.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
When the readiness probe :octicons-link-external-16: fails, Kubernetes will try this number of times before marking the Pod Unready.
Value type | Example |
---|---|
:material-numeric-1-box: int | 5 |
Number of seconds to wait before performing the first liveness probe :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 300 |
Number of seconds after which the liveness probe :octicons-link-external-16: times out.
Value type | Example |
---|---|
:material-numeric-1-box: int | 5 |
How often (in seconds) to perform the liveness probe :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 10 |
Minimum consecutive successes for the liveness probe :octicons-link-external-16: to be considered successful after having failed.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
When the liveness probe :octicons-link-external-16: fails, Kubernetes will try this number of times before restarting the container.
Value type | Example |
---|---|
:material-numeric-1-box: int | 3 |
A secret with environment variables, see Define environment variables for details.
Value type | Example |
---|---|
:material-code-string: string | my-env-var-secrets |
The Kubernetes memory requests :octicons-link-external-16: for a Percona XtraDB Cluster container.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU requests :octicons-link-external-16: for a Percona XtraDB Cluster container.
Value type | Example |
---|---|
:material-code-string: string | 600m |
Kubernetes Ephemeral Storage :octicons-link-external-16: requests :octicons-link-external-16: for a Percona XtraDB Cluster container.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes memory limits :octicons-link-external-16: for a Percona XtraDB Cluster container.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU limits :octicons-link-external-16: for a Percona XtraDB Cluster container.
Value type | Example |
---|---|
:material-code-string: string | 1 |
Kubernetes Ephemeral Storage :octicons-link-external-16: limits :octicons-link-external-16: for a Percona XtraDB Cluster container.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes nodeSelector :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | disktype: ssd |
The Label selector for the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | app.kubernetes.io/name: percona-xtradb-cluster-operator |
The degree to which Pods may be unevenly distributed under the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
The key of node labels for the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | kubernetes.io/hostname |
What to do with a Pod if it doesn't satisfy the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | DoNotSchedule |
The Operator topology key :octicons-link-external-16: node anti-affinity constraint.
Value type | Example |
---|---|
:material-code-string: string | kubernetes.io/hostname |
In cases where the Pods require complex tuning the advanced option turns off the topologyKey
effect. This setting allows the standard Kubernetes affinity constraints of any complexity to be used.
Value type | Example |
---|---|
:material-text-long: subdoc |
Kubernetes Pod tolerations :octicons-link-external-16:.
Value type | Example |
---|---|
:material-text-long: subdoc | node.alpha.kubernetes.io/unreachable |
The Kubernetes podDisruptionBudget :octicons-link-external-16: specifies the number of Pods from the set unavailable after the eviction.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
The Kubernetes podDisruptionBudget :octicons-link-external-16: Pods that must be available after an eviction.
Value type | Example |
---|---|
:material-numeric-1-box: int | 0 |
The Kubernetes emptyDir volume :octicons-link-external-16: The directory created on a node and accessible to the Percona XtraDB Cluster Pod containers.
Value type | Example |
---|---|
:material-code-string: string | {} |
Kubernetes hostPath :octicons-link-external-16: The volume that mounts a directory from the host node’s filesystem into your Pod. The path property is required.
Value type | Example |
---|---|
:material-code-string: string | /data |
The Kubernetes hostPath :octicons-link-external-16:. An optional property for the hostPath.
Value type | Example |
---|---|
:material-code-string: string | Directory |
Set the Kubernetes storage class :octicons-link-external-16: to use with the Percona XtraDB Cluster PersistentVolumeClaim :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | standard |
The Kubernetes PersistentVolumeClaim :octicons-link-external-16: access modes for the Percona XtraDB cluster.
Value type | Example |
---|---|
:material-application-array-outline: array | [ReadWriteOnce] |
The name of PVC used as a data source to create the Percona XtraDB Cluster Volumes by cloning :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | new-snapshot-test |
The Kubernetes DataSource type :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | VolumeSnapshot |
The Kubernetes API group :octicons-link-external-16: to use for PVC Data Source :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | snapshot.storage.k8s.io |
The Kubernetes grace period when terminating a Pod :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 600 |
A custom Kubernetes Security Context for a Container :octicons-link-external-16: to be used instead of the default one.
Value type | Example |
---|---|
:material-text-long: subdoc | privileged: true |
A custom Kubernetes Security Context for a Pod :octicons-link-external-16: to be used instead of the default one.
Value type | Example |
---|---|
:material-text-long: subdoc | fsGroup: 1001 |
The Kubernetes Service Account :octicons-link-external-16: for Percona XtraDB Cluster Pods.
Value type | Example |
---|---|
:material-code-string: string | percona-xtradb-cluster-operator-workload |
The policy used to update images :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | Always |
Name of the Kubernetes Runtime Class :octicons-link-external-16: for Percona XtraDB Cluster Pods.
Value type | Example |
---|---|
:material-code-string: string | image-rc |
Image for the custom sidecar container for Percona XtraDB Cluster Pods.
Value type | Example |
---|---|
:material-code-string: string | busybox |
Command for the custom sidecar container for Percona XtraDB Cluster Pods.
Value type | Example |
---|---|
:material-application-array-outline: array | ["/bin/sh"] |
Command arguments for the custom sidecar container for Percona XtraDB Cluster Pods.
Value type | Example |
---|---|
:material-application-array-outline: array | ["-c", "while true; do trap 'exit 0' SIGINT SIGTERM SIGQUIT SIGKILL; done;"] |
Name of the custom sidecar container for Percona XtraDB Cluster Pods.
Value type | Example |
---|---|
:material-code-string: string | my-sidecar-1 |
The Kubernetes memory requests :octicons-link-external-16: for a Percona XtraDB Cluster sidecar container.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU requests :octicons-link-external-16: for a Percona XtraDB Cluster sidecar container.
Value type | Example |
---|---|
:material-code-string: string | 500m |
Kubernetes memory limits :octicons-link-external-16: for a Percona XtraDB Cluster sidecar container.
Value type | Example |
---|---|
:material-code-string: string | 2G |
Kubernetes CPU limits :octicons-link-external-16: for a Percona XtraDB Cluster sidecar container.
Value type | Example |
---|---|
:material-code-string: string | 600m |
Command for the preStop lifecycle hook :octicons-link-external-16: for Percona XtraDB Cluster Pods.
Value type | Example |
---|---|
:material-application-array-outline: array | ["/bin/true"] |
Command for the postStart lifecycle hook :octicons-link-external-16: for Percona XtraDB Cluster Pods.
Value type | Example |
---|---|
:material-application-array-outline: array | ["/bin/true"] |
The haproxy
section in the deploy/cr.yaml :octicons-link-external-16: file contains
configuration options for the HAProxy service.
Enables or disables load balancing with HAProxy :octicons-link-external-16: Services :octicons-link-external-16:.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | true |
The number of the HAProxy Pods to provide load balancing :octicons-link-external-16:. It should be 2 or more unless the spec.unsafeFlags.proxySize
key is set to true.
Value type | Example |
---|---|
:material-numeric-1-box: int | 2 |
HAProxy Docker image to use.
Value type | Example |
---|---|
:material-code-string: string | percona/percona-xtradb-cluster-operator:{{ release }}-haproxy |
The policy used to update images :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | Always |
The Kubernetes imagePullSecrets :octicons-link-external-16: for the HAProxy image.
Value type | Example |
---|---|
:material-code-string: string | private-registry-credentials |
Adds a delay before a run check to verify the application is ready to process traffic.
Value type | Example |
---|---|
:material-numeric-1-box: int | 15 |
Adds a delay before the run check ensures the application is healthy and capable of processing requests.
Value type | Example |
---|---|
:material-numeric-1-box: int | 300 |
The custom HAProxy configuration file contents.
Value type | Example |
---|---|
:material-code-string: string |
The Kubernetes annotations :octicons-link-external-16: metadata.
Value type | Example |
---|---|
:material-label-outline: label | iam.amazonaws.com/role: role-arn |
Labels are key-value pairs attached to objects :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | rack: rack-22 |
Number of seconds to wait before performing the first readiness probe :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 15 |
Number of seconds after which the readiness probe :octicons-link-external-16: times out.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
How often (in seconds) to perform the readiness probe :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 5 |
Minimum consecutive successes for the readiness probe :octicons-link-external-16: to be considered successful after having failed.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
When the readiness probe :octicons-link-external-16: fails, Kubernetes will try this number of times before marking the Pod Unready.
Value type | Example |
---|---|
:material-numeric-1-box: int | 3 |
Specifies the type of Kubernetes Service :octicons-link-external-16: to be used for HAProxy. This option is deprecated and will be removed in future releases. Use haproxy.exposePrimary.type
instead.
Value type | Example |
---|---|
:material-code-string: string | ClusterIP |
Specifies whether Service for HAProxy should route external traffic to cluster-wide or to node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness). This option is deprecated and will be removed in future releases. Use haproxy.exposePrimary.externalTrafficPolicy
instead.
Value type | Example |
---|---|
:material-code-string: string | Cluster |
Number of seconds to wait before performing the first liveness probe :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 60 |
Number of seconds after which the liveness probe :octicons-link-external-16: times out.
Value type | Example |
---|---|
:material-numeric-1-box: int | 5 |
How often (in seconds) to perform the liveness probe :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 30 |
Minimum consecutive successes for the liveness probe :octicons-link-external-16: to be considered successful after having failed.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
When the liveness probe :octicons-link-external-16: fails, Kubernetes will try this number of times before marking the Pod Unready.
Value type | Example |
---|---|
:material-numeric-1-box: int | 4 |
The Kubernetes memory requests :octicons-link-external-16: for the main HAProxy container.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU requests :octicons-link-external-16: for the main HAProxy container.
Value type | Example |
---|---|
:material-code-string: string | 600m |
Kubernetes memory limits :octicons-link-external-16: for the main HAProxy container.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU limits :octicons-link-external-16: for the main HAProxy container.
Value type | Example |
---|---|
:material-code-string: string | 700m |
A secret with environment variables, see Define environment variables for details.
Value type | Example |
---|---|
:material-code-string: string | my-env-var-secrets |
The Kubernetes Pod Priority class :octicons-link-external-16: for HAProxy.
Value type | Example |
---|---|
:material-code-string: string | high-priority |
The Kubernetes Scheduler :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | mycustom-scheduler |
Kubernetes nodeSelector :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | disktype: ssd |
The Label selector for the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | app.kubernetes.io/name: percona-xtradb-cluster-operator |
The degree to which Pods may be unevenly distributed under the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
The key of node labels for the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | kubernetes.io/hostname |
What to do with a Pod if it doesn't satisfy the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | DoNotSchedule |
The Operator topology key :octicons-link-external-16: node anti-affinity constraint.
Value type | Example |
---|---|
:material-code-string: string | kubernetes.io/hostname |
If available it makes a topologyKey :octicons-link-external-16: node affinity constraint to be ignored.
Value type | Example |
---|---|
:material-text-long: subdoc |
Kubernetes Pod tolerations :octicons-link-external-16:.
Value type | Example |
---|---|
:material-text-long: subdoc | node.alpha.kubernetes.io/unreachable |
The Kubernetes podDisruptionBudget :octicons-link-external-16: specifies the number of Pods from the set unavailable after the eviction.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
The Kubernetes podDisruptionBudget :octicons-link-external-16: Pods that must be available after an eviction.
Value type | Example |
---|---|
:material-numeric-1-box: int | 0 |
The Kubernetes grace period when terminating a Pod :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 30 |
Enables or disables the HAProxy primary instance Service.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
Specifies the type of Kubernetes Service :octicons-link-external-16: to be used for HAProxy primary instance Service.
Value type | Example |
---|---|
:material-code-string: string | ClusterIP |
Specifies whether Service for HAProxy should route external traffic to cluster-wide or to node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness).
Value type | Example |
---|---|
:material-code-string: string | Cluster |
Specifies whether Service for HAProxy primary instance should route internal traffic to cluster-wide or to node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness).
Value type | Example |
---|---|
:material-code-string: string | Cluster |
The range of client IP addresses from which the load balancer should be reachable (if not set, there is no limitations).
Value type | Example |
---|---|
:material-code-string: string | 10.0.0.0/8 |
The static IP-address for the load balancer.
Value type | Example |
---|---|
:material-code-string: string | 127.0.0.1 |
The Kubernetes labels :octicons-link-external-16: for the load balancer Service. This option is deprecated and will be removed in future releases. Use haproxy.exposePrimary.labels
instead.
Value type | Example |
---|---|
:material-label-outline: label | rack: rack-22 |
The Kubernetes labels :octicons-link-external-16: for the load balancer Service.
Value type | Example |
---|---|
:material-label-outline: label | rack: rack-22 |
The Kubernetes annotations :octicons-link-external-16: metadata for the load balancer Service. This option is deprecated and will be removed in future releases. Use haproxy.exposePrimary.annotations
instead.
Value type | Example |
---|---|
:material-code-string: string | service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp |
The Kubernetes annotations :octicons-link-external-16: metadata for the load balancer Service.
Value type | Example |
---|---|
:material-code-string: string | service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp |
Enables or disables haproxy-replicas
Service. This Service (on by default) forwards requests to all Percona XtraDB Cluster instances, and it should not be used for write requests! This option is deprecated and will be removed in future releases. Use haproxy.exposeReplicas.enabled
instead.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
Enables or disables haproxy-replicas
Service. This Service default forwards requests to all Percona XtraDB Cluster instances, and it should not be used for write requests!
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | true |
Setting it to true
excludes current MySQL primary instance (writer) from the list of Pods, to which haproxy-replicas
Service directs connections, leaving only the reader instances.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
The range of client IP addresses from which the load balancer should be reachable (if not set, no limitations). This option is deprecated and will be removed in future releases. Use haproxy.exposeReplicas.loadBalancerSourceRanges
instead.
Value type | Example |
---|---|
:material-code-string: string | 10.0.0.0/8 |
The range of client IP addresses from which the load balancer should be reachable (if not set, no limitations).
Value type | Example |
---|---|
:material-code-string: string | 10.0.0.0/8 |
The static IP-address for the replicas load balancer. This option is deprecated and will be removed in future releases. Use haproxy.exposeReplicas.loadBalancerIP
instead.
Value type | Example |
---|---|
:material-code-string: string | 127.0.0.1 |
The static IP-address for the replicas load balancer.
Value type | Example |
---|---|
:material-code-string: string | 127.0.0.1 |
Specifies the type of Kubernetes Service :octicons-link-external-16: to be used for HAProxy replicas. This option is deprecated and will be removed in future releases. Use haproxy.exposeReplicas.serviceType
instead.
Value type | Example |
---|---|
:material-code-string: string | ClusterIP |
Specifies the type of Kubernetes Service :octicons-link-external-16: to be used for HAProxy replicas.
Value type | Example |
---|---|
:material-code-string: string | ClusterIP |
Specifies whether Service for HAProxy replicas should route external traffic to cluster-wide or to node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness). This option is deprecated and will be removed in future releases. Use haproxy.exposeReplicas.externalTrafficPolicy
instead.
Value type | Example |
---|---|
:material-code-string: string | Cluster |
Specifies whether Service for HAProxy replicas should route external traffic to cluster-wide or to node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness).
Value type | Example |
---|---|
:material-code-string: string | Cluster |
Specifies whether Service for HAProxy replicas should route internal traffic to cluster-wide or to node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness).
Value type | Example |
---|---|
:material-code-string: string | Cluster |
The Kubernetes labels :octicons-link-external-16: for the haproxy-replicas
Service. This option is deprecated and will be removed in future releases. Use haproxy.exposeReplicas.labels
instead.
Value type | Example |
---|---|
:material-label-outline: label | rack: rack-22 |
The Kubernetes labels :octicons-link-external-16: for the haproxy-replicas
Service.
Value type | Example |
---|---|
:material-label-outline: label | rack: rack-22 |
The Kubernetes annotations :octicons-link-external-16: metadata for the haproxy-replicas
Service. This option is deprecated and will be removed in future releases. Use haproxy.exposeReplicas.annotations
instead.
Value type | Example |
---|---|
:material-code-string: string | service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp |
The Kubernetes annotations :octicons-link-external-16: metadata for the haproxy-replicas
Service.
Value type | Example |
---|---|
:material-code-string: string | service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp |
A custom Kubernetes Security Context for a Container :octicons-link-external-16: to be used instead of the default one.
Value type | Example |
---|---|
:material-text-long: subdoc | privileged: true |
A custom Kubernetes Security Context for a Pod :octicons-link-external-16: to be used instead of the default one.
Value type | Example |
---|---|
:material-text-long: subdoc | fsGroup: 1001 |
The Kubernetes Service Account :octicons-link-external-16: for the HAProxy Pod.
Value type | Example |
---|---|
:material-code-string: string | percona-xtradb-cluster-operator-workload |
Name of the Kubernetes Runtime Class :octicons-link-external-16: for the HAProxy Pod.
Value type | Example |
---|---|
:material-code-string: string | image-rc |
Image for the custom sidecar container for the HAProxy Pod.
Value type | Example |
---|---|
:material-code-string: string | busybox |
Command for the custom sidecar container for the HAProxy Pod.
Value type | Example |
---|---|
:material-application-array-outline: array | ["/bin/sh"] |
Command arguments for the custom sidecar container for the HAProxy Pod.
Value type | Example |
---|---|
:material-application-array-outline: array | ["-c", "while true; do trap 'exit 0' SIGINT SIGTERM SIGQUIT SIGKILL; done;"] |
Name of the custom sidecar container for the HAProxy Pod.
Value type | Example |
---|---|
:material-code-string: string | my-sidecar-1 |
The Kubernetes memory requests :octicons-link-external-16: for the sidecar HAProxy containers.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU requests :octicons-link-external-16: for the sidecar HAProxy containers.
Value type | Example |
---|---|
:material-code-string: string | 500m |
Kubernetes memory limits :octicons-link-external-16: for the sidecar HAProxy containers.
Value type | Example |
---|---|
:material-code-string: string | 2G |
Kubernetes CPU limits :octicons-link-external-16: for the sidecar HAProxy containers.
Value type | Example |
---|---|
:material-code-string: string | 600m |
Command for the preStop lifecycle hook :octicons-link-external-16: for HAProxy Pods.
Value type | Example |
---|---|
:material-application-array-outline: array | ["/bin/true"] |
Command for the postStart lifecycle hook :octicons-link-external-16: for HAProxy Pods.
Value type | Example |
---|---|
:material-application-array-outline: array | ["/bin/true"] |
The proxysql
section in the deploy/cr.yaml :octicons-link-external-16: file contains
configuration options for the ProxySQL daemon.
Enables or disables load balancing with ProxySQL :octicons-link-external-16: Services :octicons-link-external-16: ProxySQL can be enabled only at cluster creation time; otherwise you will be limited to HAProxy load balancing.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
The number of the ProxySQL daemons to provide load balancing :octicons-link-external-16:. It should be 2 or more unless the spec.unsafeFlags.proxySize
key is set to true.
Value type | Example |
---|---|
:material-numeric-1-box: int | 2 |
ProxySQL Docker image to use.
Value type | Example |
---|---|
:material-code-string: string | percona/percona-xtradb-cluster-operator:{{ release }}-proxysql |
The policy used to update images :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | Always |
The Kubernetes imagePullSecrets :octicons-link-external-16: for the ProxySQL image.
Value type | Example |
---|---|
:material-code-string: string | private-registry-credentials |
Adds a delay before a run check to verify the application is ready to process traffic.
Value type | Example |
---|---|
:material-numeric-1-box: int | 15 |
Adds a delay before the run check ensures the application is healthy and capable of processing requests.
Value type | Example |
---|---|
:material-numeric-1-box: int | 300 |
The custom ProxySQL configuration file contents.
Value type | Example |
---|---|
:material-code-string: string |
The Kubernetes annotations :octicons-link-external-16: metadata.
Value type | Example |
---|---|
:material-label-outline: label | iam.amazonaws.com/role: role-arn |
Labels are key-value pairs attached to objects :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | rack: rack-22 |
Enable or disable exposing ProxySQL nodes with dedicated IP addresses.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
Specifies the type of Kubernetes Service :octicons-link-external-16: to be used. This option is deprecated and will be removed in future releases. Use proxysql.expose.type
instead.
Value type | Example |
---|---|
:material-code-string: string | ClusterIP |
Specifies the type of Kubernetes Service :octicons-link-external-16: to be used.
Value type | Example |
---|---|
:material-code-string: string | ClusterIP |
Specifies whether Service for ProxySQL should route external traffic to cluster-wide or to node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness). This option is deprecated and will be removed in future releases. Use proxysql.expose.externalTrafficPolicy
instead.
Value type | Example |
---|---|
:material-code-string: string | Local |
Specifies whether Service for ProxySQL should route external traffic to cluster-wide or to node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness).
Value type | Example |
---|---|
:material-code-string: string | Local |
Specifies whether Service for ProxySQL should route internal traffic to cluster-wide or to node-local endpoints :octicons-link-external-16: (it can influence the load balancing effectiveness).
Value type | Example |
---|---|
:material-code-string: string | Local |
The Kubernetes annotations :octicons-link-external-16: metadata for the load balancer Service. This option is deprecated and will be removed in future releases. Use proxysql.expose.annotations
instead.
Value type | Example |
---|---|
:material-label-outline: label | service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp |
The Kubernetes annotations :octicons-link-external-16: metadata for the load balancer Service.
Value type | Example |
---|---|
:material-label-outline: label | service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp |
The Kubernetes labels :octicons-link-external-16: for the load balancer Service. This option is deprecated and will be removed in future releases. Use proxysql.expose.labels
instead.
Value type | Example |
---|---|
:material-label-outline: label | rack: rack-22 |
The Kubernetes labels :octicons-link-external-16: for the load balancer Service.
Value type | Example |
---|---|
:material-label-outline: label | rack: rack-22 |
The range of client IP addresses from which the load balancer should be reachable (if not set, there is no limitations). This option is deprecated and will be removed in future releases. Use proxysql.expose.loadBalancerSourceRanges
instead.
Value type | Example |
---|---|
:material-code-string: string | 10.0.0.0/8 |
The range of client IP addresses from which the load balancer should be reachable (if not set, there is no limitations).
Value type | Example |
---|---|
:material-code-string: string | 10.0.0.0/8 |
The static IP-address for the load balancer.
Value type | Example |
---|---|
:material-code-string: string | 127.0.0.1 |
The Kubernetes memory requests :octicons-link-external-16: for the main ProxySQL container.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU requests :octicons-link-external-16: for the main ProxySQL container.
Value type | Example |
---|---|
:material-code-string: string | 600m |
Kubernetes memory limits :octicons-link-external-16: for the main ProxySQL container.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU limits :octicons-link-external-16: for the main ProxySQL container.
Value type | Example |
---|---|
:material-code-string: string | 700m |
A secret with environment variables, see Define environment variables for details.
Value type | Example |
---|---|
:material-code-string: string | my-env-var-secrets |
The Kubernetes Pod Priority class :octicons-link-external-16: for ProxySQL.
Value type | Example |
---|---|
:material-code-string: string | high-priority |
The Kubernetes Scheduler :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | mycustom-scheduler |
Kubernetes nodeSelector :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | disktype: ssd |
The Label selector for the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | app.kubernetes.io/name: percona-xtradb-cluster-operator |
The degree to which Pods may be unevenly distributed under the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
The key of node labels for the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | kubernetes.io/hostname |
What to do with a Pod if it doesn't satisfy the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | DoNotSchedule |
The Operator topology key :octicons-link-external-16: node anti-affinity constraint.
Value type | Example |
---|---|
:material-code-string: string | kubernetes.io/hostname |
If available it makes a topologyKey :octicons-link-external-16: node affinity constraint to be ignored.
Value type | Example |
---|---|
:material-text-long: subdoc |
Kubernetes Pod tolerations :octicons-link-external-16:.
Value type | Example |
---|---|
:material-text-long: subdoc | node.alpha.kubernetes.io/unreachable |
The Kubernetes emptyDir volume :octicons-link-external-16: The directory created on a node and accessible to the Percona XtraDB Cluster Pod containers.
Value type | Example |
---|---|
:material-code-string: string | {} |
Kubernetes hostPath :octicons-link-external-16: The volume that mounts a directory from the host node’s filesystem into your Pod. The path property is required.
Value type | Example |
---|---|
:material-code-string: string | /data |
The Kubernetes hostPath :octicons-link-external-16:. An optional property for the hostPath.
Value type | Example |
---|---|
:material-code-string: string | Directory |
Set the Kubernetes storage class :octicons-link-external-16: to use with the Percona XtraDB Cluster PersistentVolumeClaim :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | standard |
The Kubernetes PersistentVolumeClaim :octicons-link-external-16: access modes for the Percona XtraDB cluster.
Value type | Example |
---|---|
:material-application-array-outline: array | [ReadWriteOnce] |
The Kubernetes PersistentVolumeClaim :octicons-link-external-16: size for the Percona XtraDB cluster.
Value type | Example |
---|---|
:material-code-string: string | 6Gi |
The Kubernetes podDisruptionBudget :octicons-link-external-16: specifies the number of Pods from the set unavailable after the eviction.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
The Kubernetes podDisruptionBudget :octicons-link-external-16: Pods that must be available after an eviction.
Value type | Example |
---|---|
:material-numeric-1-box: int | 0 |
The Kubernetes grace period when terminating a Pod :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 30 |
A custom Kubernetes Security Context for a Container :octicons-link-external-16: to be used instead of the default one.
Value type | Example |
---|---|
:material-text-long: subdoc | privileged: true |
A custom Kubernetes Security Context for a Pod :octicons-link-external-16: to be used instead of the default one.
Value type | Example |
---|---|
:material-text-long: subdoc | fsGroup: 1001 |
The Kubernetes Service Account :octicons-link-external-16: for the ProxySQL Pod.
Value type | Example |
---|---|
:material-code-string: string | percona-xtradb-cluster-operator-workload |
Name of the Kubernetes Runtime Class :octicons-link-external-16: for the ProxySQL Pod.
Value type | Example |
---|---|
:material-code-string: string | image-rc |
Image for the custom sidecar container for the ProxySQL Pod.
Value type | Example |
---|---|
:material-code-string: string | busybox |
Command for the custom sidecar container for the ProxySQL Pod.
Value type | Example |
---|---|
:material-application-array-outline: array | ["/bin/sh"] |
Command arguments for the custom sidecar container for the ProxySQL Pod.
Value type | Example |
---|---|
:material-application-array-outline: array | ["-c", "while true; do trap 'exit 0' SIGINT SIGTERM SIGQUIT SIGKILL; done;"] |
Name of the custom sidecar container for the ProxySQL Pod.
Value type | Example |
---|---|
:material-code-string: string | my-sidecar-1 |
The Kubernetes memory requests :octicons-link-external-16: for the sidecar ProxySQL containers.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU requests :octicons-link-external-16: for the sidecar ProxySQL containers.
Value type | Example |
---|---|
:material-code-string: string | 500m |
Kubernetes memory limits :octicons-link-external-16: for the sidecar ProxySQL containers.
Value type | Example |
---|---|
:material-code-string: string | 2G |
Kubernetes CPU limits :octicons-link-external-16: for the sidecar ProxySQL containers.
Value type | Example |
---|---|
:material-code-string: string | 600m |
Command for the preStop lifecycle hook :octicons-link-external-16: for ProxySQL Pods.
Value type | Example |
---|---|
:material-application-array-outline: array | ["/bin/true"] |
Command for the postStart lifecycle hook :octicons-link-external-16: for ProxySQL Pods.
Value type | Example |
---|---|
:material-application-array-outline: array | ["/bin/true"] |
The logcollector
section in the deploy/cr.yaml :octicons-link-external-16:
file contains configuration options for Fluent Bit Log Collector :octicons-link-external-16:.
Enables or disables cluster-level logging with Fluent Bit.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | true |
Log Collector Docker image to use.
Value type | Example |
---|---|
:material-code-string: string | percona/percona-xtradb-cluster-operator:1.6.0-logcollector |
Additional configuration options (see Fluent Bit official documentation :octicons-link-external-16: for details).
Value type | Example |
---|---|
:material-text-long: subdoc |
The Kubernetes memory requests :octicons-link-external-16: for a Log Collector sidecar container in a Percona XtraDB Cluster Pod.
Value type | Example |
---|---|
:material-code-string: string | 100M |
Kubernetes CPU requests :octicons-link-external-16: for a Log collector sidecar container in a Percona XtraDB Cluster Pod.
Value type | Example |
---|---|
:material-code-string: string | 200m |
The users
section in the deploy/cr.yaml :octicons-link-external-16: file contains various configuration options to configure custom MySQL users via the Custom Resource.
The username of the MySQL user.
Value type | Example |
---|---|
:material-code-string: string | my-user |
Databases that the user authenticates against. If the specified database is not present, the Operator will create it. When no databases specified, it defaults to all databases (*). If the user sets administrative grants like SHUTDOWN, this field has to be omitted because administrative privileges are set on a global level.
Value type | Example |
---|---|
:material-application-array-outline: array | - db1 |
Hosts that the users are supposed to connect from (if not specified, defaults to '%' - similar to what is happening in MySQL).
Value type | Example |
---|---|
:material-application-array-outline: array | - localhost |
Name of the secret that contains the user's password. If not provided, the Operator will create the <cluster-name>-<custom-user-name>-secret
secret and generate password automatically.
Value type | Example |
---|---|
:material-code-string: string | my-user-password |
Key in the secret that corresponds to the value of the user's password (password
by default).
Value type | Example |
---|---|
:material-code-string: string | password |
Defines if the user has grant options.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
Privileges granted to the user.
Value type | Example |
---|---|
:material-application-array-outline: array | - SELECT |
The pmm
section in the deploy/cr.yaml :octicons-link-external-16: file contains configuration
options for Percona Monitoring and Management.
Enables or disables monitoring Percona XtraDB cluster with PMM :octicons-link-external-16:.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
PMM client Docker image to use.
Value type | Example |
---|---|
:material-code-string: string | percona/pmm-client:{{ pmm2recommended }} |
Address of the PMM Server to collect data from the cluster.
Value type | Example |
---|---|
:material-code-string: string | monitoring-service |
The PMM Server User. The PMM Server password should be configured using Secrets.
Value type | Example |
---|---|
:material-code-string: string | admin |
The Kubernetes memory requests :octicons-link-external-16: for a PMM container.
Value type | Example |
---|---|
:material-code-string: string | 150M |
Kubernetes CPU requests :octicons-link-external-16: for a PMM container.
Value type | Example |
---|---|
:material-code-string: string | 300m |
Additional parameters which will be passed to the pmm-admin add mysql :octicons-link-external-16: command for pxc
Pods.
Value type | Example |
---|---|
:material-code-string: string | --disable-tablestats-limit=2000 |
Additional parameters which will be passed to the pmm-admin add proxysql :octicons-link-external-16: command for proxysql
Pods.
Value type | Example |
---|---|
:material-code-string: string | --custom-labels=CUSTOM-LABELS |
A custom Kubernetes Security Context for a Container :octicons-link-external-16: to be used instead of the default one.
Value type | Example |
---|---|
:material-text-long: subdoc | privileged: false |
The backup
section in the deploy/cr.yaml :octicons-link-external-16:
file contains the following configuration options for the regular Percona XtraDB Cluster backups.
Enables or disables running backup jobs in parallel. By default, parallel backup jobs are enabled. A user can disable them to prevent the cluster overload.
Value type | Example |
---|---|
:material-code-string: string | true |
The Percona XtraDB cluster Docker image to use for the backup.
Value type | Example |
---|---|
:material-code-string: string | percona/percona-xtradb-cluster-operator:{{ release }}-backup |
The number of retries to make a backup (by default, 10 retries are made).
Value type | Example |
---|---|
:material-numeric-1-box: int | 6 |
The timeout value in seconds, after which backup job will automatically fail.
Value type | Example |
---|---|
:material-numeric-1-box: int | 3600 |
The Kubernetes imagePullSecrets :octicons-link-external-16: for the specified image.
Value type | Example |
---|---|
:material-code-string: string | private-registry-credentials |
The cloud storage type used for backups. Only s3
, azure
, and filesystem
types are supported.
Value type | Example |
---|---|
:material-code-string: string | s3 |
Enable or disable verification of the storage server TLS certificate. Disabling it may be useful e.g. to skip TLS verification for private S3-compatible storage with a self-issued certificate.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | true |
The Kubernetes secret :octicons-link-external-16: for backups. It should contain AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
keys.
Value type | Example |
---|---|
:material-code-string: string | my-cluster-name-backup-s3 |
The Amazon S3 bucket :octicons-link-external-16: name for backups.
Value type | Example |
---|---|
:material-code-string: string |
The AWS region :octicons-link-external-16: to use. Please note this option is mandatory for Amazon and all S3-compatible storages.
Value type | Example |
---|---|
:material-code-string: string | us-east-1 |
The endpoint URL of the S3-compatible storage to be used (not needed for the original Amazon S3 cloud).
Value type | Example |
---|---|
:material-code-string: string |
The persistent volume claim storage type.
Value type | Example |
---|---|
:material-code-string: string | filesystem |
Set the Kubernetes Storage Class :octicons-link-external-16: to use with the Percona XtraDB Cluster backups PersistentVolumeClaims :octicons-link-external-16: for the filesystem
storage type.
Value type | Example |
---|---|
:material-code-string: string | standard |
The Kubernetes PersistentVolume access modes :octicons-link-external-16:.
Value type | Example |
---|---|
:material-application-array-outline: array | [ReadWriteOne] |
Storage size for the PersistentVolume.
Value type | Example |
---|---|
:material-code-string: string | 6Gi |
The Kubernetes annotations :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | iam.amazonaws.com/role: role-arn |
Labels are key-value pairs attached to objects :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | rack: rack-22 |
The Kubernetes memory requests :octicons-link-external-16: for a Percona XtraBackup container.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU requests :octicons-link-external-16: for a Percona XtraBackup container.
Value type | Example |
---|---|
:material-code-string: string | 600m |
Kubernetes memory limits :octicons-link-external-16: for a Percona XtraBackup container.
Value type | Example |
---|---|
:material-code-string: string | 1.5G |
Kubernetes CPU limits :octicons-link-external-16: for a Percona XtraBackup container.
Value type | Example |
---|---|
:material-code-string: string | 700m |
Kubernetes nodeSelector :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | disktype: ssd |
The Label selector for the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-label-outline: label | app.kubernetes.io/name: percona-xtradb-cluster-operator |
The degree to which Pods may be unevenly distributed under the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-numeric-1-box: int | 1 |
The key of node labels for the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | kubernetes.io/hostname |
What to do with a Pod if it doesn't satisfy the Kubernetes Pod Topology Spread Constraints :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | DoNotSchedule |
The Operator node affinity :octicons-link-external-16: constraint.
Value type | Example |
---|---|
:material-text-long: subdoc |
Kubernetes Pod tolerations :octicons-link-external-16:.
Value type | Example |
---|---|
:material-text-long: subdoc | backupWorker |
The Kubernetes Pod priority class :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | high-priority |
The Kubernetes Scheduler :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | mycustom-scheduler |
A custom Kubernetes Security Context for a Container :octicons-link-external-16: to be used instead of the default one.
Value type | Example |
---|---|
:material-text-long: subdoc | privileged: true |
A custom Kubernetes Security Context for a Pod :octicons-link-external-16: to be used instead of the default one.
Value type | Example |
---|---|
:material-text-long: subdoc | fsGroup: 1001 |
The environment variables set as key-value pairs :octicons-link-external-16: for the backup container.
Value type | Example |
---|---|
:material-text-long: subdoc | - name: VERIFY_TLS |
Custom command line options :octicons-link-external-16: for the xtrabackup
Percona XtraBackup tool.
Value type | Example |
---|---|
:material-text-long: subdoc | - "--someflag=abc" |
Custom command line options :octicons-link-external-16: for the xbcloud
Percona XtraBackup tool.
Value type | Example |
---|---|
:material-text-long: subdoc | - "--someflag=abc" |
Custom command line options :octicons-link-external-16: for the xbstream
Percona XtraBackup tool.
Value type | Example |
---|---|
:material-text-long: subdoc | - "--someflag=abc" |
The backup name.
Value type | Example |
---|---|
:material-code-string: string | sat-night-backup |
Scheduled time to make a backup specified in the crontab format :octicons-link-external-16:.
Value type | Example |
---|---|
:material-code-string: string | 0 0 \* \* 6 |
The amount of most recent backups to store. Older backups are automatically deleted. Set keep
to zero or completely remove it to disable automatic deletion of backups.
Value type | Example |
---|---|
:material-numeric-1-box: int | 3 |
The name of the storage for the backups configured in the storages
or fs-pvc
subsection.
Value type | Example |
---|---|
:material-code-string: string | s3-us-west |
Enables or disables point-in-time-recovery functionality.
Value type | Example |
---|---|
:material-toggle-switch-outline: boolean | false |
The name of the storage for the backups configured in the storages
subsection, which will be reused to store binlog for point-in-time-recovery.
Value type | Example |
---|---|
:material-code-string: string | s3-us-west |
Seconds between running the binlog uploader.
Value type | Example |
---|---|
:material-numeric-1-box: int | 60 |
Timeout in seconds for the binlog to be uploaded; the binlog uploader container will be restarted after exceeding this timeout |
Value type | Example |
---|---|
:material-numeric-1-box: int | 60 |
The Kubernetes memory requests :octicons-link-external-16: for a binlog collector Pod.
Value type | Example |
---|---|
:material-code-string: string | 0.1G |
Kubernetes CPU requests :octicons-link-external-16: for a binlog collector Pod.
Value type | Example |
---|---|
:material-code-string: string | 100m |
Kubernetes memory limits :octicons-link-external-16: for a binlog collector Pod.
Value type | Example |
---|---|
:material-code-string: string | 1G |
Kubernetes CPU limits :octicons-link-external-16: for a binlog collector Pod.
Value type | Example |
---|---|
:material-code-string: string | 700m |
Percona XtraDB Cluster Restore options are managed by the Operator via the
PerconaXtraDBClusterRestore
Custom Resource :octicons-link-external-16: and can be configured via the
deploy/backup/restore.yaml :octicons-link-external-16:
configuration file. This Custom Resource contains the following options:
Key | Value type | Description | Required |
---|---|---|---|
metadata.name | string | The name of the restore | true |
spec.pxcCluster | string | Percona XtraDB Cluster name (the name of your running cluster) | true |
spec.backupName | string | The name of the backup which should be restored | false |
spec.resources | subdoc | Defines resources limits for the restore job | false |
spec.backupSource | subdoc | Defines configuration for different restore sources | false |
spec.pitr | subdoc | Defines configuration for PITR restore | false |
Key | Value type | Description | Required |
---|---|---|---|
requests.memory | string | The Kubernetes memory requests :octicons-link-external-16: for the restore job (the specified value is used if memory limits are not set) | false |
requests.cpu | string | Kubernetes CPU requests :octicons-link-external-16: for the restore job (the specified value is used if CPU limits are not set) | false |
limits.memory | string | The Kubernetes memory limits :octicons-link-external-16: for the restore job (if set, the value will be used for memory requests as well) | false |
limits.cpu | string | Kubernetes CPU limits :octicons-link-external-16: for the restore job (if set, the value will be used for CPU requests as well) | false |
Key | Value type | Description | Required |
---|---|---|---|
destination | string | Path to the backup | false |
storageName | string | The storage name from CR spec.backup.storages |
false |
verifyTLS | boolean | Enable or disable verification of the storage server TLS certificate. Disabling it may be useful e.g. to skip TLS verification for private S3-compatible storage with a self-issued certificate | true |
s3 | subdoc | Define configuration for S3 compatible storages | false |
azure | subdoc | Define configuration for azure blob storage | false |
Key | Value type | Description | Required |
---|---|---|---|
bucket | string | The bucket with a backup | true |
credentialsSecret | string | The Secret name for the backup | true |
endpointUrl | string | A valid endpoint URL | false |
region | string | The region corresponding to the S3 bucket | false |
Key | Value type | Description | Required |
---|---|---|---|
credentialsSecret | string | The Secret name for the azure blob storage | true |
container | string | The container name of the azure blob storage | true |
endpointUrl | string | A valid endpoint URL | false |
storageClass | string | The storage class name of the azure blob storage | false |
blockSize | integer | The size of a block of data to save and retrieve from the azure blob storage | |
concurrency | integer | The number of writers to the same blob |
Key | Value type | Description | Required |
---|---|---|---|
type | string | The type of PITR recover | true |
date | string | The exact date of recovery | true |
gtid | string | The exact GTID for PITR recover | true |
spec.backupSource | subdoc | Percona XtraDB Cluster backups section | true |
s3 | subdoc | Defines configuration for S3 compatible storages | false |
azure | subdoc | Defines configuration for azure blob storage | false |