Spec schema
PgBouncer Spec defines the selected state of PgBouncer.
PgBouncer:
metadata:
name: string
spec:
accessMode: string
allowSuperUserAccess: boolean
dbclusterRef: string
serverTLS:
certSecret:
name: string
Field TypeRequired or optional |
Description |
|---|---|
name
| |
stringRequired | Name of the PgBouncer resource. |
accessMode
| |
stringOptional |
Defines rw (read-write) or ro (read-only) access modes for PgBouncer connections. The default value is rw.
|
allowSuperUserAccess
| |
booleanOptional | AllowSuperUserAccess can be set to true or false. |
dbclusterRef
| |
stringRequired | DBClusterRef is the DBCluster name that PgBouncer pools the connections for. You must create the PgBouncer object in the same namespace as the DBCluster that it references. This field is required for PgBouncer connection pooling. |
serverTLS
| |
objectOptional | ServerTLSSpec defines the certificate secret for encrypted communication used by PgBouncer to connect to the database cluster to fetch authentication credentials. |
serverTLS.certSecret
| |
objectOptional |
CertSecret references the certificate secret within the same namespace. The secret must contain entries ca.crt (CA certificate), tls.key (private key), and tls.crt (leaf certificate). The values within this secret are used to populate the server_tls_ca_file, server_tls_cert_file, and server_tls_key_file configs in pgbouncer.ini file. The CA certificate must match the CA that signed the database cluster's leaf certificate. The leaf certificate must contain the CommonName "alloydbpgbouncer".
|
serverTLS.certSecret.name
| |
stringOptional | Name of the referent. |
Status schema
PgBouncer Status defines the observed state of PgBouncer.
endpoints: string
phase: string
Field TypeRequired or optional |
Description |
|---|---|
endpoints
| |
objectOptional |
endpoints contains all the endpoints through which you can access this instance.
|
endpoints.name
| |
stringRequired |
Name is the name of the endpoint—for example, Read-Write.
|
endpoints.value
| |
stringRequired | Value contains the endpoint information to connect and access the instance. |
phase
| |
stringRequired |
phase describes the state of PgBouncer Deployment. Values like WaitingForDeploymentReady, Acquiring IP, and Ready appear here.
|