You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
We use cookies and other similar technology to collect data to improve your experience on our site, as described in our Privacy Policy.
Run Production-Grade Databases on Kubernetes
Backup and Recovery Solution for Kubernetes
Run Production-Grade Vault on Kubernetes
Secure HAProxy Ingress Controller for Kubernetes
Kubernetes Configuration Syncer
Kubernetes Authentication WebHook Server
KubeDB simplifies Provision, Upgrade, Scaling, Volume Expansion, Monitor, Backup, Restore for various Databases in Kubernetes on any Public & Private Cloud
A complete Kubernetes native disaster recovery solution for backup and restore your volumes and databases in Kubernetes on any public and private clouds.
KubeVault is a Git-Ops ready, production-grade solution for deploying and configuring Hashicorp's Vault on Kubernetes.
Secure HAProxy Ingress Controller for Kubernetes
Kubernetes Configuration Syncer
Kubernetes Authentication WebHook Server
New to KubeDB? Please start here.
PerconaXtraDBVersion
is a Kubernetes Custom Resource Definitions
(CRD). It provides a declarative configuration to specify the docker images to be used for PerconaXtraDB deployed with KubeDB in a Kubernetes native way.
When you install KubeDB, a PerconaXtraDBVersion
custom resource will be created automatically for every supported PerconaXtraDB versions. You have to specify the name of PerconaXtraDBVersion
object in .spec.version
field of PerconaXtraDB object. Then, KubeDB will use the docker images specified in the PerconaXtraDBVersion
crd to create your expected PerconaXtraDBVersion instance.
Using a separate object for specifying respective docker images, and pod security policy names allow us to modify the images, and policies independent of KubeDB operator. This will also allow the users to use a custom image for the database.
As with all other Kubernetes objects, a PerconaXtraDBVersion needs apiVersion
, kind
, and metadata
fields. It also needs a .spec
section.
apiVersion: catalog.kubedb.com/v1alpha1
kind: PerconaXtraDBVersion
metadata:
name: 5.7-cluster
spec:
db:
image: kubedb/percona-xtradb-cluster:5.7
exporter:
image: kubedb/mysqld-exporter:v0.11.0
initContainer:
image: kubedb/busybox
podSecurityPolicies:
databasePolicyName: percona-xtradb-db
stash:
addon:
backupTask:
name: perconaxtradb-backup-5.7.0
restoreTask:
name: perconaxtradb-restore-5.7.0
version: "5.7"
.metadata.name
is a required field that specifies the name of the PerconaXtraDBVersion
object. You have to specify this name in .spec.version
field of PerconaXtraDB object.
We follow this convention for naming PerconaXtraDBVersion object:
{Original PerconaXtraDB image version}-{modification tag}
We modify original PerconaXtraDB docker image to support additional features. An image with higher modification tag will have more features than the images with lower modification tag. Hence, it is recommended to use PerconaXtraDBVersion object with highest modification tag to take advantage of the latest features.
.spec.version
is a required field that specifies the original version of PerconaXtraDB database that has been used to build the docker image specified in .spec.db.image
field.
.spec.deprecated
is an optional field that specifies whether the docker images specified here is supported by the current KubeDB operator.
The default value of this field is false
. If .spec.deprecated
is set true
, KubeDB operator will not create the database and other respective resources for this version.
.spec.db.image
is a required field that specifies the docker image which will be used to create Statefulset by KubeDB operator to create expected PerconaXtraDB database.
.spec.exporter.image
is a required field that specifies the image which will be used to export Prometheus metrics.
.spec.podSecurityPolicies.databasePolicyName
is a required field that specifies the name of the pod security policy required to get the database server Pod(s) running.