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.
PgBouncerVersion
is a Kubernetes Custom Resource Definitions
(CRD). It provides a declarative configuration to specify the docker images to be used for PgBouncer server deployed with KubeDB in a Kubernetes native way.
When you install KubeDB, a PgBouncerVersion
custom resource will be created automatically for every supported PgBouncer release versions. You have to specify the name of PgBouncerVersion
crd in spec.version
field of PgBouncer crd. Then, KubeDB will use the docker images specified in the PgBouncerVersion
crd to create your expected PgBouncer instance.
Using a separate crd for specifying respective docker image names allow us to modify the images independent of KubeDB operator. This will also allow the users to use a custom PgBouncer image for their server. For more details about how to use custom image with PgBouncer in KubeDB, please visit here.
As with all other Kubernetes objects, a PgBouncerVersion needs apiVersion
, kind
, and metadata
fields. It also needs a .spec
section.
apiVersion: catalog.kubedb.com/v1alpha1
kind: PgBouncerVersion
metadata:
name: "1.17.0"
labels:
app: kubedb
spec:
deprecated: false
version: "1.17.0"
pgBouncer:
image: "${KUBEDB_CATALOG_REGISTRY}/pgbouncer:1.17.0"
exporter:
image: "${KUBEDB_CATALOG_REGISTRY}/pgbouncer_exporter:v0.1.1"
metadata.name
is a required field that specifies the name of the PgBouncerVersion
crd. You have to specify this name in spec.version
field of PgBouncer crd.
We follow this convention for naming PgBouncerVersion crd:
{Original pgbouncer image version}-{modification tag}
We plan to modify original PgBouncer docker images to support additional features. Re-tagging the image with v1, v2 etc. modification tag helps separating newer iterations from the older ones. An image with higher modification tag will have more features than the images with lower modification tag. Hence, it is recommended to use PgBouncerVersion crd with highest modification tag to take advantage of the latest features.
spec.version
is a required field that specifies the original version of PgBouncer that has been used to build the docker image specified in spec.server.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 server and other respective resources for this version.
spec.pgBouncer.image
is a required field that specifies the docker image which will be used to create Statefulset by KubeDB operator to create expected PgBouncer server.
spec.exporter.image
is a required field that specifies the image which will be used to export Prometheus metrics.