Cennso PostgreSQL Instance Custom Resource Definition
You can use the Cennso PostgreSQL Instance Custom Resource (CR) to create and manage PostgreSQL clusters. The Cennso PostgreSQL Instance CR is defined by a Custom Resource Definition (CRD)Opens in a new tab. This document covers all configuration parameters defined in the CRD.
For more information on how to deploy Cennso PostgreSQL Instance, see the Cennso PostgreSQL Instance document and Deploy Cennso PostgreSQL deployment guide.
Configuration parameters
These are all parameters that you can use to configure the Cennso PostgreSQL Instance CR:
- PostgreSQLInstanceKind
- db.contrib.cennso.comGroup
- v1alpha1Version
- apiVersion:
- db.contrib.cennso.com/v1alpha1
- kind:
- PostgreSQLInstance
- plural:
- postgresqlinstances
- categories:
- [composite]
apiVersionstringrequiredConstant"db.contrib.cennso.com/v1alpha1"APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More information: Kubernetes API conventionsOpens in a new tab.kindstringrequiredConstant"PostgreSQLInstance"Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More information: Kubernetes API conventionsOpens in a new tab.metadataobjectrequiredStandard object metadata. More information: ObjectMetaOpens in a new tab.specobjectrequiredx-kubernetes-validationsinstancesobject[]requirednon-emptyConfiguration options for PostgreSQL instances.namespacestringrequiredA Kubernetes namespace where the Cennso Database Instance is deployedconnectionSecretRefobjectA reference to the Kubernetes secret that contains a valid kubeconfig to the target Core Cluster. When not set, the Cennso PostgreSQL Operator is deployed on the Management Cluster.crossplaneobjectConfigures how Crossplane will reconcile this composite resourceimageobjectConfiguration of the container image used for the PostgreSQL server.imagePullSecretRefobjectA reference to the Kubernetes secret that contains credentials for pulling images for the Cennso PostgreSQL InstanceinitContainerobjectConfiguration of the init container that copies the operator's helper binaries into the PostgreSQL pods.metricsExporterobjectSettings for the PostgreSQL metrics exporterOpens in a new tab that publishes PostgreSQL metrics to Prometheus. One exporter is deployed per PostgreSQL pod and runs on the same node as that pod.
patroniobjectConfiguration of Patroni, the high availability manager that runs the PostgreSQL servers and performs the failover.x-kubernetes-validationspostgresqlobjectConfiguration of the PostgreSQL servers of the instance.proxyobjectThe specification of the proxy that connects to PostgreSQLreplicationTLSSecretNamestringName of the secret with your own client certificate used by the replication user. The certificate must be issued by the same CA as spec.tlsSecretName.
tlsobjectValidity of the certificates that the operator issues through cert-manager. If these options are set, spec.tlsSecretName and spec.replicationTLSSecretName must be empty.
x-kubernetes-validationstlsSecretNamestringName of the secret with your own TLS certificate, used by PostgreSQL and PgBouncer. If empty, the operator issues and renews the certificates by itself (for more information, see spec.tls). If set, the spec.replicationTLSSecretName must be set as well.
upgradeobjectConfiguration for in-place PostgreSQL major-version upgrades, performed automatically when spec.image.tag is changed to a higher PostgreSQL major version on an existing
PostgreSQLInstance. See the Cennso PostgreSQL Instance concept document and the Upgrade Cennso PostgreSQL operation guide for the upgrade procedure.
statusobjectconditionsobject[]Conditions of the resource.x-kubernetes-list-map-keysx-kubernetes-list-type