API Reference
Package v1 contains API Schema definitions for the postgresql v1 API group
Resource Types
- Backup
- Cluster
- ClusterImageCatalog
- Database
- FailoverQuorum
- ImageCatalog
- Pooler
- Publication
- ScheduledBackup
- Subscription
Backup
A Backup resource is a request for a PostgreSQL backup by the user.
| Field | Description |
|---|---|
apiVersion [Required]string | postgresql.cnpg.io/v1 |
kind [Required]string | Backup |
metadata [Required]meta/v1.ObjectMeta |
No description provided.Refer to the Kubernetes API documentation for the fields of the metadata field. |
spec [Required]BackupSpec |
Specification of the desired behavior of the backup. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
statusBackupStatus |
Most recently observed status of the backup. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
Cluster
Cluster is the Schema for the PostgreSQL API
| Field | Description |
|---|---|
apiVersion [Required]string | postgresql.cnpg.io/v1 |
kind [Required]string | Cluster |
metadata [Required]meta/v1.ObjectMeta |
No description provided.Refer to the Kubernetes API documentation for the fields of the metadata field. |
spec [Required]ClusterSpec |
Specification of the desired behavior of the cluster. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
statusClusterStatus |
Most recently observed status of the cluster. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
ClusterImageCatalog
ClusterImageCatalog is the Schema for the clusterimagecatalogs API
| Field | Description |
|---|---|
apiVersion [Required]string | postgresql.cnpg.io/v1 |
kind [Required]string | ClusterImageCatalog |
metadata [Required]meta/v1.ObjectMeta |
No description provided.Refer to the Kubernetes API documentation for the fields of the metadata field. |
spec [Required]ImageCatalogSpec |
Specification of the desired behavior of the ClusterImageCatalog. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
Database
Database is the Schema for the databases API
| Field | Description |
|---|---|
apiVersion [Required]string | postgresql.cnpg.io/v1 |
kind [Required]string | Database |
metadata [Required]meta/v1.ObjectMeta |
No description provided.Refer to the Kubernetes API documentation for the fields of the metadata field. |
spec [Required]DatabaseSpec |
Specification of the desired Database. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
statusDatabaseStatus |
Most recently observed status of the Database. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
FailoverQuorum
Appears in:
FailoverQuorum contains the information about the current failover quorum status of a PG cluster. It is updated by the instance manager of the primary node and reset to zero by the operator to trigger an update.
| Field | Description |
|---|---|
apiVersion [Required]string | postgresql.cnpg.io/v1 |
kind [Required]string | FailoverQuorum |
metadata [Required]meta/v1.ObjectMeta |
No description provided.Refer to the Kubernetes API documentation for the fields of the metadata field. |
statusFailoverQuorumStatus |
Most recently observed status of the failover quorum. |
ImageCatalog
ImageCatalog is the Schema for the imagecatalogs API
| Field | Description |
|---|---|
apiVersion [Required]string | postgresql.cnpg.io/v1 |
kind [Required]string | ImageCatalog |
metadata [Required]meta/v1.ObjectMeta |
No description provided.Refer to the Kubernetes API documentation for the fields of the metadata field. |
spec [Required]ImageCatalogSpec |
Specification of the desired behavior of the ImageCatalog. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
Pooler
Pooler is the Schema for the poolers API
| Field | Description |
|---|---|
apiVersion [Required]string | postgresql.cnpg.io/v1 |
kind [Required]string | Pooler |
metadata [Required]meta/v1.ObjectMeta |
No description provided.Refer to the Kubernetes API documentation for the fields of the metadata field. |
spec [Required]PoolerSpec |
Specification of the desired behavior of the Pooler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
statusPoolerStatus |
Most recently observed status of the Pooler. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
Publication
Publication is the Schema for the publications API
| Field | Description |
|---|---|
apiVersion [Required]string | postgresql.cnpg.io/v1 |
kind [Required]string | Publication |
metadata [Required]meta/v1.ObjectMeta |
No description provided.Refer to the Kubernetes API documentation for the fields of the metadata field. |
spec [Required]PublicationSpec |
No description provided. |
status [Required]PublicationStatus |
No description provided. |
ScheduledBackup
ScheduledBackup is the Schema for the scheduledbackups API
| Field | Description |
|---|---|
apiVersion [Required]string | postgresql.cnpg.io/v1 |
kind [Required]string | ScheduledBackup |
metadata [Required]meta/v1.ObjectMeta |
No description provided.Refer to the Kubernetes API documentation for the fields of the metadata field. |
spec [Required]ScheduledBackupSpec |
Specification of the desired behavior of the ScheduledBackup. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
statusScheduledBackupStatus |
Most recently observed status of the ScheduledBackup. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
Subscription
Subscription is the Schema for the subscriptions API
| Field | Description |
|---|---|
apiVersion [Required]string | postgresql.cnpg.io/v1 |
kind [Required]string | Subscription |
metadata [Required]meta/v1.ObjectMeta |
No description provided.Refer to the Kubernetes API documentation for the fields of the metadata field. |
spec [Required]SubscriptionSpec |
No description provided. |
status [Required]SubscriptionStatus |
No description provided. |
AffinityConfiguration
Appears in:
AffinityConfiguration contains the info we need to create the affinity rules for Pods
| Field | Description |
|---|---|
enablePodAntiAffinitybool |
Activates anti-affinity for the pods. The operator will define pods anti-affinity unless this field is explicitly set to false |
topologyKeystring |
TopologyKey to use for anti-affinity configuration. See k8s documentation for more info on that |
nodeSelectormap[string]string |
NodeSelector is map of key-value pairs used to define the nodes on which the pods can run. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ |
nodeAffinitycore/v1.NodeAffinity |
NodeAffinity describes node affinity scheduling rules for the pod. More info: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity |
tolerations[]core/v1.Toleration |
Tolerations is a list of Tolerations that should be set for all the pods, in order to allow them to run on tainted nodes. More info: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ |
podAntiAffinityTypestring |
PodAntiAffinityType allows the user to decide whether pod anti-affinity between cluster instance has to be considered a strong requirement during scheduling or not. Allowed values are: "preferred" (default if empty) or "required". Setting it to "required", could lead to instances remaining pending until new kubernetes nodes are added if all the existing nodes don't match the required pod anti-affinity rule. More info: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity |
additionalPodAntiAffinitycore/v1.PodAntiAffinity |
AdditionalPodAntiAffinity allows to specify pod anti-affinity terms to be added to the ones generated by the operator if EnablePodAntiAffinity is set to true (default) or to be used exclusively if set to false. |
additionalPodAffinitycore/v1.PodAffinity |
AdditionalPodAffinity allows to specify pod affinity terms to be passed to all the cluster's pods. |
AvailableArchitecture
Appears in:
AvailableArchitecture represents the state of a cluster's architecture
| Field | Description |
|---|---|
goArch [Required]string |
GoArch is the name of the executable architecture |
hash [Required]string |
Hash is the hash of the executable |
BackupConfiguration
Appears in:
BackupConfiguration defines how the backup of the cluster are taken. The supported backup methods are BarmanObjectStore and VolumeSnapshot. For details and examples refer to the Backup and Recovery section of the documentation
| Field | Description |
|---|---|
volumeSnapshotVolumeSnapshotConfiguration |
VolumeSnapshot provides the configuration for the execution of volume snapshot backups. |
barmanObjectStoregithub.com/cloudnative-pg/barman-cloud/pkg/api.BarmanObjectStoreConfiguration |
The configuration for the barman-cloud tool suite |
retentionPolicystring |
RetentionPolicy is the retention policy to be used for backups
and WALs (i.e. '60d'). The retention policy is expressed in the form
of |
targetBackupTarget |
The policy to decide which instance should perform backups. Available
options are empty string, which will default to |
BackupMethod
(Alias of string)
Appears in:
BackupMethod defines the way of executing the physical base backups of the selected PostgreSQL instance
BackupPhase
(Alias of string)
Appears in:
BackupPhase is the phase of the backup
BackupPluginConfiguration
Appears in:
BackupPluginConfiguration contains the backup configuration used by the backup plugin
| Field | Description |
|---|---|
name [Required]string |
Name is the name of the plugin managing this backup |
parametersmap[string]string |
Parameters are the configuration parameters passed to the backup plugin for this backup |
BackupSnapshotElementStatus
Appears in:
BackupSnapshotElementStatus is a volume snapshot that is part of a volume snapshot method backup
| Field | Description |
|---|---|
name [Required]string |
Name is the snapshot resource name |
type [Required]string |
Type is tho role of the snapshot in the cluster, such as PG_DATA, PG_WAL and PG_TABLESPACE |
tablespaceNamestring |
TablespaceName is the name of the snapshotted tablespace. Only set when type is PG_TABLESPACE |
BackupSnapshotStatus
Appears in:
BackupSnapshotStatus the fields exclusive to the volumeSnapshot method backup
| Field | Description |
|---|---|
elements[]BackupSnapshotElementStatus |
The elements list, populated with the gathered volume snapshots |
BackupSource
Appears in:
BackupSource contains the backup we need to restore from, plus some information that could be needed to correctly restore it.
| Field | Description |
|---|---|
LocalObjectReferencegithub.com/cloudnative-pg/machinery/pkg/api.LocalObjectReference |
(Members of LocalObjectReference are embedded into this type.)
No description provided. |
endpointCAgithub.com/cloudnative-pg/machinery/pkg/api.SecretKeySelector |
EndpointCA store the CA bundle of the barman endpoint. Useful when using self-signed certificates to avoid errors with certificate issuer and barman-cloud-wal-archive. |
BackupSpec
Appears in:
BackupSpec defines the desired state of Backup
| Field | Description |
|---|---|
cluster [Required]github.com/cloudnative-pg/machinery/pkg/api.LocalObjectReference |
The cluster to backup |
targetBackupTarget |
The policy to decide which instance should perform this backup. If empty,
it defaults to |
methodBackupMethod |
The backup method to be used, possible options are |
pluginConfigurationBackupPluginConfiguration |
Configuration parameters passed to the plugin managing this backup |
onlinebool |
Whether the default type of backup with volume snapshots is
online/hot ( |
onlineConfigurationOnlineConfiguration |
Configuration parameters to control the online/hot backup with volume snapshots Overrides the default settings specified in the cluster '.backup.volumeSnapshot.onlineConfiguration' stanza |
BackupStatus
Appears in:
BackupStatus defines the observed state of Backup
| Field | Description |
|---|---|
BarmanCredentialsgithub.com/cloudnative-pg/barman-cloud/pkg/api.BarmanCredentials |
(Members of BarmanCredentials are embedded into this type.)
The potential credentials for each cloud provider |
endpointCAgithub.com/cloudnative-pg/machinery/pkg/api.SecretKeySelector |
EndpointCA store the CA bundle of the barman endpoint. Useful when using self-signed certificates to avoid errors with certificate issuer and barman-cloud-wal-archive. |
endpointURLstring |
Endpoint to be used to upload data to the cloud, overriding the automatic endpoint discovery |
destinationPathstring |
The path where to store the backup (i.e. s3://bucket/path/to/folder) this path, with different destination folders, will be used for WALs and for data. This may not be populated in case of errors. |
serverNamestring |
The server name on S3, the cluster name is used if this parameter is omitted |
encryptionstring |
Encryption method required to S3 API |
backupIdstring |
The ID of the Barman backup |
backupNamestring |
The Name of the Barman backup |
phaseBackupPhase |
The last backup status |
startedAtmeta/v1.Time |
When the backup was started |
stoppedAtmeta/v1.Time |
When the backup was terminated |
beginWalstring |
The starting WAL |
endWalstring |
The ending WAL |
beginLSNstring |
The starting xlog |
endLSNstring |
The ending xlog |
errorstring |
The detected error |
commandOutputstring |
Unused. Retained for compatibility with old versions. |
commandErrorstring |
The backup command output in case of error |
backupLabelFile[]byte |
Backup label file content as returned by Postgres in case of online (hot) backups |
tablespaceMapFile[]byte |
Tablespace map file content as returned by Postgres in case of online (hot) backups |
instanceIDInstanceID |
Information to identify the instance where the backup has been taken from |
snapshotBackupStatusBackupSnapshotStatus |
Status of the volumeSnapshot backup |
methodBackupMethod |
The backup method being used |
onlinebool |
Whether the backup was online/hot ( |
pluginMetadatamap[string]string |
A map containing the plugin metadata |
BackupTarget
(Alias of string)
Appears in:
BackupTarget describes the preferred targets for a backup
BootstrapConfiguration
Appears in:
BootstrapConfiguration contains information about how to create the PostgreSQL
cluster. Only a single bootstrap method can be defined among the supported
ones. initdb will be used as the bootstrap method if left
unspecified. Refer to the Bootstrap page of the documentation for more
information.
| Field | Description |
|---|---|
initdbBootstrapInitDB |
Bootstrap the cluster via initdb |
recoveryBootstrapRecovery |
Bootstrap the cluster from a backup |
pg_basebackupBootstrapPgBaseBackup |
Bootstrap the cluster taking a physical backup of another compatible PostgreSQL instance |
BootstrapInitDB
Appears in:
BootstrapInitDB is the configuration of the bootstrap process when initdb is used Refer to the Bootstrap page of the documentation for more information.
| Field | Description |
|---|---|
databasestring |
Name of the database used by the application. Default: |
ownerstring |
Name of the owner of the database in the instance to be used
by applications. Defaults to the value of the |
secretgithub.com/cloudnative-pg/machinery/pkg/api.LocalObjectReference |
Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch |
options[]string |
The list of options that must be passed to initdb when creating the cluster. Deprecated: This could lead to inconsistent configurations, please use the explicit provided parameters instead. If defined, explicit values will be ignored. |
dataChecksumsbool |
Whether the |
encodingstring |
The value to be passed as option |
localeCollatestring |
The value to be passed as option |
localeCTypestring |
The value to be passed as option |
localestring |
Sets the default collation order and character classification in the new database. |
localeProviderstring |
This option sets the locale provider for databases created in the new cluster. Available from PostgreSQL 16. |
icuLocalestring |
Specifies the ICU locale when the ICU provider is used.
This option requires |
icuRulesstring |
Specifies additional collation rules to customize the behavior of the default collation.
This option requires |
builtinLocalestring |
Specifies the locale name when the builtin provider is used.
This option requires |
walSegmentSizeint |
The value in megabytes (1 to 1024) to be passed to the |
postInitSQL[]string |
List of SQL queries to be executed as a superuser in the |
postInitApplicationSQL[]string |
List of SQL queries to be executed as a superuser in the application database right after the cluster has been created - to be used with extreme care (by default empty) |
postInitTemplateSQL[]string |
List of SQL queries to be executed as a superuser in the |
importImport |
Bootstraps the new cluster by importing data from an existing PostgreSQL
instance using logical backup ( |
postInitApplicationSQLRefsSQLRefs |
List of references to ConfigMaps or Secrets containing SQL files to be executed as a superuser in the application database right after the cluster has been created. The references are processed in a specific order: first, all Secrets are processed, followed by all ConfigMaps. Within each group, the processing order follows the sequence specified in their respective arrays. (by default empty) |
postInitTemplateSQLRefsSQLRefs |
List of references to ConfigMaps or Secrets containing SQL files
to be executed as a superuser in the |
postInitSQLRefsSQLRefs |
List of references to ConfigMaps or Secrets containing SQL files
to be executed as a superuser in the |
BootstrapPgBaseBackup
Appears in:
BootstrapPgBaseBackup contains the configuration required to take a physical backup of an existing PostgreSQL cluster
| Field | Description |
|---|---|
source [Required]string |
The name of the server of which we need to take a physical backup |
databasestring |
Name of the database used by the application. Default: |
ownerstring |
Name of the owner of the database in the instance to be used
by applications. Defaults to the value of the |
secretgithub.com/cloudnative-pg/machinery/pkg/api.LocalObjectReference |
Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch |
BootstrapRecovery
Appears in:
BootstrapRecovery contains the configuration required to restore
from an existing cluster using 3 methodologies: external cluster,
volume snapshots or backup objects. Full recovery and Point-In-Time
Recovery are supported.
The method can be also be used to create clusters in continuous recovery
(replica clusters), also supporting cascading replication when instances >
- Once the cluster exits recovery, the password for the superuser will be changed through the provided secret. Refer to the Bootstrap page of the documentation for more information.
| Field | Description |
|---|---|
backupBackupSource |
The backup object containing the physical base backup from which to
initiate the recovery procedure.
Mutually exclusive with |
sourcestring |
The external cluster whose backup we will restore. This is also
used as the name of the folder under which the backup is stored,
so it must be set to the name of the source cluster
Mutually exclusive with |
volumeSnapshotsDataSource |
The static PVC data source(s) from which to initiate the
recovery procedure. Currently supporting |
recoveryTargetRecoveryTarget |
By default, the recovery process applies all the available
WAL files in the archive (full recovery). However, you can also
end the recovery as soon as a consistent state is reached or
recover to a point-in-time (PITR) by specifying a |
databasestring |
Name of the database used by the application. Default: |
ownerstring |
Name of the owner of the database in the instance to be used
by applications. Defaults to the value of the |
secretgithub.com/cloudnative-pg/machinery/pkg/api.LocalObjectReference |
Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch |
CatalogImage
Appears in:
CatalogImage defines the image and major version
| Field | Description |
|---|---|
image [Required]string |
The image reference |
major [Required]int |
The PostgreSQL major version of the image. Must be unique within the catalog. |
CertificatesConfiguration
Appears in:
CertificatesConfiguration contains the needed configurations to handle server certificates.
| Field | Description |
|---|---|
serverCASecretstring |
The secret containing the Server CA certificate. If not defined, a new secret will be created with a self-signed CA and will be used to generate the TLS certificate ServerTLSSecret. Contains:
|
serverTLSSecretstring |
The secret of type kubernetes.io/tls containing the server TLS certificate and key that will be set as
|
replicationTLSSecretstring |
The secret of type kubernetes.io/tls containing the client certificate to authenticate as
the |
clientCASecretstring |
The secret containing the Client CA certificate. If not defined, a new secret will be created with a self-signed CA and will be used to generate all the client certificates. Contains:
|
serverAltDNSNames[]string |
The list of the server alternative DNS names to be added to the generated server TLS certificates, when required. |
CertificatesStatus
Appears in:
CertificatesStatus contains configuration certificates and related expiration dates.
| Field | Description |
|---|---|
CertificatesConfigurationCertificatesConfiguration |
(Members of CertificatesConfiguration are embedded into this type.)
Needed configurations to handle server certificates, initialized with default values, if needed. |
expirationsmap[string]string |
Expiration dates for all certificates. |
ClusterMonitoringTLSConfiguration
Appears in:
ClusterMonitoringTLSConfiguration is the type containing the TLS configuration for the cluster's monitoring
| Field | Description |
|---|---|
enabledbool |
Enable TLS for the monitoring endpoint. Changing this option will force a rollout of all instances. |
ClusterSpec
Appears in:
ClusterSpec defines the desired state of Cluster
| Field | Description |
|---|---|
descriptionstring |
Description of this PostgreSQL cluster |
inheritedMetadataEmbeddedObjectMetadata |
Metadata that will be inherited by all objects related to the Cluster |
imageNamestring |
Name of the container image, supporting both tags ( |
imageCatalogRefImageCatalogRef |
Defines the major PostgreSQL version we want to use within an ImageCatalog |
imagePullPolicycore/v1.PullPolicy |
Image pull policy.
One of |
schedulerNamestring |
If specified, the pod will be dispatched by specified Kubernetes scheduler. If not specified, the pod will be dispatched by the default scheduler. More info: https://kubernetes.io/docs/concepts/scheduling-eviction/kube-scheduler/ |
postgresUIDint64 |
The UID of the |
postgresGIDint64 |
The GID of the |
instances [Required]int |
Number of instances required in the cluster |
minSyncReplicasint |
Minimum number of instances required in synchronous replication with the primary. Undefined or 0 allow writes to complete when no standby is available. |
maxSyncReplicasint |
The target value for the synchronous replication quorum, that can be decreased if the number of ready standbys is lower than this. Undefined or 0 disable synchronous replication. |
postgresqlPostgresConfiguration |
Configuration of the PostgreSQL server |
replicationSlotsReplicationSlotsConfiguration |
Replication slots management configuration |
bootstrapBootstrapConfiguration |
Instructions to bootstrap this cluster |
replicaReplicaClusterConfiguration |
Replica cluster configuration |
superuserSecretgithub.com/cloudnative-pg/machinery/pkg/api.LocalObjectReference |
The secret containing the superuser password. If not defined a new secret will be created with a randomly generated password |
enableSuperuserAccessbool |
When this option is enabled, the operator will use the |
certificatesCertificatesConfiguration |
The configuration for the CA and related certificates |
imagePullSecrets[]github.com/cloudnative-pg/machinery/pkg/api.LocalObjectReference |
The list of pull secrets to be used to pull the images |
storageStorageConfiguration |
Configuration of the storage of the instances |
serviceAccountTemplateServiceAccountTemplate |
Configure the generation of the service account |
walStorageStorageConfiguration |
Configuration of the storage for PostgreSQL WAL (Write-Ahead Log) |
ephemeralVolumeSourcecore/v1.EphemeralVolumeSource |
EphemeralVolumeSource allows the user to configure the source of ephemeral volumes. |
startDelayint32 |
The time in seconds that is allowed for a PostgreSQL instance to successfully start up (default 3600). The startup probe failure threshold is derived from this value using the formula: ceiling(startDelay / 10). |
stopDelayint32 |
The time in seconds that is allowed for a PostgreSQL instance to gracefully shutdown (default 1800) |
smartShutdownTimeoutint32 |
The time in seconds that controls the window of time reserved for the smart shutdown of Postgres to complete.
Make sure you reserve enough time for the operator to request a fast shutdown of Postgres
(that is: |
switchoverDelayint32 |
The time in seconds that is allowed for a primary PostgreSQL instance to gracefully shutdown during a switchover. Default value is 3600 seconds (1 hour). |
failoverDelayint32 |
The amount of time (in seconds) to wait before triggering a failover after the primary PostgreSQL instance in the cluster was detected to be unhealthy |
livenessProbeTimeoutint32 |
LivenessProbeTimeout is the time (in seconds) that is allowed for a PostgreSQL instance to successfully respond to the liveness probe (default 30). The Liveness probe failure threshold is derived from this value using the formula: ceiling(livenessProbe / 10). |
affinityAffinityConfiguration |
Affinity/Anti-affinity rules for Pods |
topologySpreadConstraints[]core/v1.TopologySpreadConstraint |
TopologySpreadConstraints specifies how to spread matching pods among the given topology. More info: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/ |
resourcescore/v1.ResourceRequirements |
Resources requirements of every generated Pod. Please refer to https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ for more information. |
ephemeralVolumesSizeLimitEphemeralVolumesSizeLimitConfiguration |
EphemeralVolumesSizeLimit allows the user to set the limits for the ephemeral volumes |
priorityClassNamestring |
Name of the priority class which will be used in every generated Pod, if the PriorityClass specified does not exist, the pod will not be able to schedule. Please refer to https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass for more information |
primaryUpdateStrategyPrimaryUpdateStrategy |
Deployment strategy to follow to upgrade the primary server during a rolling
update procedure, after all replicas have been successfully updated:
it can be automated ( |
primaryUpdateMethodPrimaryUpdateMethod |
Method to follow to upgrade the primary server during a rolling
update procedure, after all replicas have been successfully updated:
it can be with a switchover ( |
backupBackupConfiguration |
The configuration to be used for backups |
nodeMaintenanceWindowNodeMaintenanceWindow |
Define a maintenance window for the Kubernetes nodes |
monitoringMonitoringConfiguration |
The configuration of the monitoring infrastructure of this cluster |
externalClusters[]ExternalCluster |
The list of external clusters which are used in the configuration |
logLevelstring |
The instances' log level, one of the following values: error, warning, info (default), debug, trace |
projectedVolumeTemplatecore/v1.ProjectedVolumeSource |
Template to be used to define projected volumes, projected volumes will be mounted
under |
env[]core/v1.EnvVar |
Env follows the Env format to pass environment variables to the pods created in the cluster |
envFrom[]core/v1.EnvFromSource |
EnvFrom follows the EnvFrom format to pass environment variables sources to the pods to be used by Env |
managedManagedConfiguration |
The configuration that is used by the portions of PostgreSQL that are managed by the instance manager |
seccompProfilecore/v1.SeccompProfile |
The SeccompProfile applied to every Pod and Container.
Defaults to: |
tablespaces[]TablespaceConfiguration |
The tablespaces configuration |
enablePDBbool |
Manage the |
plugins[]PluginConfiguration |
The plugins configuration, containing any plugin to be loaded with the corresponding configuration |
probesProbesConfiguration |
The configuration of the probes to be injected in the PostgreSQL Pods. |
ClusterStatus
Appears in:
ClusterStatus defines the observed state of Cluster
| Field | Description |
|---|---|
instancesint |
The total number of PVC Groups detected in the cluster. It may differ from the number of existing instance pods. |
readyInstancesint |
The total number of ready instances in the cluster. It is equal to the number of ready instance pods. |
instancesStatusmap[PodStatus][]string |
InstancesStatus indicates in which status the instances are |
instancesReportedStatemap[PodName]InstanceReportedState |
The reported state of the instances during the last reconciliation loop |
managedRolesStatusManagedRoles |
ManagedRolesStatus reports the state of the managed roles in the cluster |
tablespacesStatus[]TablespaceState |
TablespacesStatus reports the state of the declarative tablespaces in the cluster |
timelineIDint |
The timeline of the Postgres cluster |
topologyTopology |
Instances topology. |
latestGeneratedNodeint |
ID of the latest generated node (used to avoid node name clashing) |
currentPrimarystring |
Current primary instance |
targetPrimarystring |
Target primary instance, this is different from the previous one during a switchover or a failover |
lastPromotionTokenstring |
LastPromotionToken is the last verified promotion token that was used to promote a replica cluster |
pvcCountint32 |
How many PVCs have been created by this cluster |
jobCountint32 |
How many Jobs have been created by this cluster |
danglingPVC[]string |
List of all the PVCs created by this cluster and still available which are not attached to a Pod |
resizingPVC[]string |
List of all the PVCs that have ResizingPVC condition. |
initializingPVC[]string |
List of all the PVCs that are being initialized by this cluster |
healthyPVC[]string |
List of all the PVCs not dangling nor initializing |
unusablePVC[]string |
List of all the PVCs that are unusable because another PVC is missing |
writeServicestring |
Current write pod |
readServicestring |
Current list of read pods |
phasestring |
Current phase of the cluster |
phaseReasonstring |
Reason for the current phase |
secretsResourceVersionSecretsResourceVersion |
The list of resource versions of the secrets managed by the operator. Every change here is done in the interest of the instance manager, which will refresh the secret data |
configMapResourceVersionConfigMapResourceVersion |
The list of resource versions of the configmaps, managed by the operator. Every change here is done in the interest of the instance manager, which will refresh the configmap data |
certificatesCertificatesStatus |
The configuration for the CA and related certificates, initialized with defaults. |
firstRecoverabilityPointstring |
The first recoverability point, stored as a date in RFC3339 format. This field is calculated from the content of FirstRecoverabilityPointByMethod. Deprecated: the field is not set for backup plugins. |
firstRecoverabilityPointByMethodmap[BackupMethod]meta/v1.Time |
The first recoverability point, stored as a date in RFC3339 format, per backup method type. Deprecated: the field is not set for backup plugins. |
lastSuccessfulBackupstring |
Last successful backup, stored as a date in RFC3339 format. This field is calculated from the content of LastSuccessfulBackupByMethod. Deprecated: the field is not set for backup plugins. |
lastSuccessfulBackupByMethodmap[BackupMethod]meta/v1.Time |
Last successful backup, stored as a date in RFC3339 format, per backup method type. Deprecated: the field is not set for backup plugins. |
lastFailedBackupstring |
Last failed backup, stored as a date in RFC3339 format. Deprecated: the field is not set for backup plugins. |
cloudNativePGCommitHashstring |
The commit hash number of which this operator running |
currentPrimaryTimestampstring |
The timestamp when the last actual promotion to primary has occurred |
currentPrimaryFailingSinceTimestampstring |
The timestamp when the primary was detected to be unhealthy
This field is reported when |
targetPrimaryTimestampstring |
The timestamp when the last request for a new primary has occurred |
poolerIntegrationsPoolerIntegrations |
The integration needed by poolers referencing the cluster |
cloudNativePGOperatorHashstring |
The hash of the binary of the operator |
availableArchitectures[]AvailableArchitecture |
AvailableArchitectures reports the available architectures of a cluster |
conditions[]meta/v1.Condition |
Conditions for cluster object |
instanceNames[]string |
List of instance names in the cluster |
onlineUpdateEnabledbool |
OnlineUpdateEnabled shows if the online upgrade is enabled inside the cluster |
imagestring |
Image contains the image name used by the pods |
pgDataImageInfoImageInfo |
PGDataImageInfo contains the details of the latest image that has run on the current data directory. |
pluginStatus[]PluginStatus |
PluginStatus is the status of the loaded plugins |
switchReplicaClusterStatusSwitchReplicaClusterStatus |
SwitchReplicaClusterStatus is the status of the switch to replica cluster |
demotionTokenstring |
DemotionToken is a JSON token containing the information from pg_controldata such as Database system identifier, Latest checkpoint's TimeLineID, Latest checkpoint's REDO location, Latest checkpoint's REDO WAL file, and Time of latest checkpoint |
systemIDstring |
SystemID is the latest detected PostgreSQL SystemID |
ConfigMapResourceVersion
Appears in:
ConfigMapResourceVersion is the resource versions of the secrets managed by the operator
| Field | Description |
|---|---|
metricsmap[string]string |
A map with the versions of all the config maps used to pass metrics. Map keys are the config map names, map values are the versions |
DataDurabilityLevel
(Alias of string)
Appears in:
DataDurabilityLevel specifies how strictly to enforce synchronous replication
when cluster instances are unavailable. Options are required or preferred.
DataSource
Appears in:
DataSource contains the configuration required to bootstrap a PostgreSQL cluster from an existing storage
| Field | Description |
|---|---|
storage [Required]core/v1.TypedLocalObjectReference |
Configuration of the storage of the instances |
walStoragecore/v1.TypedLocalObjectReference |
Configuration of the storage for PostgreSQL WAL (Write-Ahead Log) |
tablespaceStoragemap[string]core/v1.TypedLocalObjectReference |
Configuration of the storage for PostgreSQL tablespaces |
DatabaseObjectSpec
Appears in:
DatabaseObjectSpec contains the fields which are common to every database object
| Field | Description |
|---|---|
name [Required]string |
Name of the extension/schema |
ensureEnsureOption |
Specifies whether an extension/schema should be present or absent in
the database. If set to |
DatabaseObjectStatus
Appears in:
DatabaseObjectStatus is the status of the managed database objects
| Field | Description |
|---|---|
name [Required]string |
The name of the object |
applied [Required]bool |
True of the object has been installed successfully in the database |
messagestring |
Message is the object reconciliation message |
DatabaseReclaimPolicy
(Alias of string)
Appears in:
DatabaseReclaimPolicy describes a policy for end-of-life maintenance of databases.
DatabaseRoleRef
Appears in:
DatabaseRoleRef is a reference an a role available inside PostgreSQL
| Field | Description |
|---|---|
namestring |
No description provided. |
DatabaseSpec
Appears in:
DatabaseSpec is the specification of a Postgresql Database, built around the
CREATE DATABASE, ALTER DATABASE, and DROP DATABASE SQL commands of
PostgreSQL.
| Field | Description |
|---|---|
cluster [Required]core/v1.LocalObjectReference |
The name of the PostgreSQL cluster hosting the database. |
ensureEnsureOption |
Ensure the PostgreSQL database is |
name [Required]string |
The name of the database to create inside PostgreSQL. This setting cannot be changed. |
owner [Required]string |
Maps to the |
templatestring |
Maps to the |
encodingstring |
Maps to the |
localestring |
Maps to the |
localeProviderstring |
Maps to the |
localeCollatestring |
Maps to the |
localeCTypestring |
Maps to the |
icuLocalestring |
Maps to the |
icuRulesstring |
Maps to the |
builtinLocalestring |
Maps to the |
collationVersionstring |
Maps to the |
isTemplatebool |
Maps to the |
allowConnectionsbool |
Maps to the |
connectionLimitint |
Maps to the |
tablespacestring |
Maps to the |
databaseReclaimPolicyDatabaseReclaimPolicy |
The policy for end-of-life maintenance of this database. |
schemas[]SchemaSpec |
The list of schemas to be managed in the database |
extensions[]ExtensionSpec |
The list of extensions to be managed in the database |
DatabaseStatus
Appears in:
DatabaseStatus defines the observed state of Database
| Field | Description |
|---|---|
observedGenerationint64 |
A sequence number representing the latest desired state that was synchronized |
appliedbool |
Applied is true if the database was reconciled correctly |
messagestring |
Message is the reconciliation output message |
schemas[]DatabaseObjectStatus |
Schemas is the status of the managed schemas |
extensions[]DatabaseObjectStatus |
Extensions is the status of the managed extensions |
EmbeddedObjectMetadata
Appears in:
EmbeddedObjectMetadata contains metadata to be inherited by all resources related to a Cluster
| Field | Description |
|---|---|
labelsmap[string]string |
No description provided. |
annotationsmap[string]string |
No description provided. |
EnsureOption
(Alias of string)
Appears in:
EnsureOption represents whether we should enforce the presence or absence of a Role in a PostgreSQL instance
EphemeralVolumesSizeLimitConfiguration
Appears in:
EphemeralVolumesSizeLimitConfiguration contains the configuration of the ephemeral storage
| Field | Description |
|---|---|
shmk8s.io/apimachinery/pkg/api/resource.Quantity |
Shm is the size limit of the shared memory volume |
temporaryDatak8s.io/apimachinery/pkg/api/resource.Quantity |
TemporaryData is the size limit of the temporary data volume |
ExtensionConfiguration
Appears in:
ExtensionConfiguration is the configuration used to add PostgreSQL extensions to the Cluster.
| Field | Description |
|---|---|
name [Required]string |
The name of the extension, required |
image [Required]core/v1.ImageVolumeSource |
The image containing the extension, required |
extension_control_path[]string |
The list of directories inside the image which should be added to extension_control_path. If not defined, defaults to "/share". |
dynamic_library_path[]string |
The list of directories inside the image which should be added to dynamic_library_path. If not defined, defaults to "/lib". |
ld_library_path[]string |
The list of directories inside the image which should be added to ld_library_path. |
ExtensionSpec
Appears in:
ExtensionSpec configures an extension in a database
| Field | Description |
|---|---|
DatabaseObjectSpecDatabaseObjectSpec |
(Members of DatabaseObjectSpec are embedded into this type.)
Common fields |
version [Required]string |
The version of the extension to install. If empty, the operator will install the default version (whatever is specified in the extension's control file) |
schema [Required]string |
The name of the schema in which to install the extension's objects, in case the extension allows its contents to be relocated. If not specified (default), and the extension's control file does not specify a schema either, the current default object creation schema is used. |
ExternalCluster
Appears in:
ExternalCluster represents the connection parameters to an external cluster which is used in the other sections of the configuration
| Field | Description |
|---|---|
name [Required]string |
The server name, required |
connectionParametersmap[string]string |
The list of connection parameters, such as dbname, host, username, etc |
sslCertcore/v1.SecretKeySelector |
The reference to an SSL certificate to be used to connect to this instance |
sslKeycore/v1.SecretKeySelector |
The reference to an SSL private key to be used to connect to this instance |
sslRootCertcore/v1.SecretKeySelector |
The reference to an SSL CA public key to be used to connect to this instance |
passwordcore/v1.SecretKeySelector |
The reference to the password to be used to connect to the server.
If a password is provided, CloudNativePG creates a PostgreSQL
passfile at |
barmanObjectStoregithub.com/cloudnative-pg/barman-cloud/pkg/api.BarmanObjectStoreConfiguration |
The configuration for the barman-cloud tool suite |
plugin [Required]PluginConfiguration |
The configuration of the plugin that is taking care of WAL archiving and backups for this external cluster |
FailoverQuorumStatus
Appears in:
FailoverQuorumStatus is the latest observed status of the failover quorum of the PG cluster.
| Field | Description |
|---|---|
methodstring |
Contains the latest reported Method value. |
standbyNames[]string |
StandbyNames is the list of potentially synchronous instance names. |
standbyNumberint |
StandbyNumber is the number of synchronous standbys that transactions need to wait for replies from. |
primarystring |
Primary is the name of the primary instance that updated this object the latest time. |
ImageCatalogRef
Appears in:
ImageCatalogRef defines the reference to a major version in an ImageCatalog
| Field | Description |
|---|---|
TypedLocalObjectReferencecore/v1.TypedLocalObjectReference |
(Members of TypedLocalObjectReference are embedded into this type.)
No description provided. |
major [Required]int |
The major version of PostgreSQL we want to use from the ImageCatalog |
ImageCatalogSpec
Appears in:
ImageCatalogSpec defines the desired ImageCatalog
| Field | Description |
|---|---|
images [Required][]CatalogImage |
List of CatalogImages available in the catalog |
ImageInfo
Appears in:
ImageInfo contains the information about a PostgreSQL image
| Field | Description |
|---|---|
image [Required]string |
Image is the image name |
majorVersion [Required]int |
MajorVersion is the major version of the image |
Import
Appears in:
Import contains the configuration to init a database from a logic snapshot of an externalCluster
| Field | Description |
|---|---|
source [Required]ImportSource |
The source of the import |
type [Required]SnapshotType |
The import type. Can be |
databases [Required][]string |
The databases to import |
roles[]string |
The roles to import |
postImportApplicationSQL[]string |
List of SQL queries to be executed as a superuser in the application database right after is imported - to be used with extreme care (by default empty). Only available in microservice type. |
schemaOnlybool |
When set to true, only the |
pgDumpExtraOptions[]string |
List of custom options to pass to the |
pgRestoreExtraOptions[]string |
List of custom options to pass to the |
ImportSource
Appears in:
ImportSource describes the source for the logical snapshot
| Field | Description |
|---|---|
externalCluster [Required]string |
The name of the externalCluster used for import |
InstanceID
Appears in:
InstanceID contains the information to identify an instance
| Field | Description |
|---|---|
podNamestring |
The pod name |
ContainerIDstring |
The container ID |
InstanceReportedState
Appears in:
InstanceReportedState describes the last reported state of an instance during a reconciliation loop
| Field | Description |
|---|---|
isPrimary [Required]bool |
indicates if an instance is the primary one |
timeLineIDint |
indicates on which TimelineId the instance is |
ip [Required]string |
IP address of the instance |
IsolationCheckConfiguration
Appears in:
IsolationCheckConfiguration contains the configuration for the isolation check functionality in the liveness probe
| Field | Description |
|---|---|
enabledbool |
Whether primary isolation checking is enabled for the liveness probe |
requestTimeoutint |
Timeout in milliseconds for requests during the primary isolation check |
connectionTimeoutint |
Timeout in milliseconds for connections during the primary isolation check |
LDAPBindAsAuth
Appears in:
LDAPBindAsAuth provides the required fields to use the bind authentication for LDAP
| Field | Description |
|---|---|
prefixstring |
Prefix for the bind authentication option |
suffixstring |
Suffix for the bind authentication option |
LDAPBindSearchAuth
Appears in:
LDAPBindSearchAuth provides the required fields to use the bind+search LDAP authentication process
| Field | Description |
|---|---|
baseDNstring |
Root DN to begin the user search |
bindDNstring |
DN of the user to bind to the directory |
bindPasswordcore/v1.SecretKeySelector |
Secret with the password for the user to bind to the directory |
searchAttributestring |
Attribute to match against the username |
searchFilterstring |
Search filter to use when doing the search+bind authentication |
LDAPConfig
Appears in:
LDAPConfig contains the parameters needed for LDAP authentication
| Field | Description |
|---|---|
serverstring |
LDAP hostname or IP address |
portint |
LDAP server port |
schemeLDAPScheme |
LDAP schema to be used, possible options are |
bindAsAuthLDAPBindAsAuth |
Bind as authentication configuration |
bindSearchAuthLDAPBindSearchAuth |
Bind+Search authentication configuration |
tlsbool |
Set to 'true' to enable LDAP over TLS. 'false' is default |
LDAPScheme
(Alias of string)
Appears in:
LDAPScheme defines the possible schemes for LDAP
LivenessProbe
Appears in:
LivenessProbe is the configuration of the liveness probe
| Field | Description |
|---|---|
ProbeProbe |
(Members of Probe are embedded into this type.)
Probe is the standard probe configuration |
isolationCheckIsolationCheckConfiguration |
Configure the feature that extends the liveness probe for a primary instance. In addition to the basic checks, this verifies whether the primary is isolated from the Kubernetes API server and from its replicas, ensuring that it can be safely shut down if network partition or API unavailability is detected. Enabled by default. |
ManagedConfiguration
Appears in:
ManagedConfiguration represents the portions of PostgreSQL that are managed by the instance manager
| Field | Description |
|---|---|
roles[]RoleConfiguration |
Database roles managed by the |
servicesManagedServices |
Services roles managed by the |
ManagedRoles
Appears in:
ManagedRoles tracks the status of a cluster's managed roles
| Field | Description |
|---|---|
byStatusmap[RoleStatus][]string |
ByStatus gives the list of roles in each state |
cannotReconcilemap[string][]string |
CannotReconcile lists roles that cannot be reconciled in PostgreSQL, with an explanation of the cause |
passwordStatusmap[string]PasswordState |
PasswordStatus gives the last transaction id and password secret version for each managed role |
ManagedService
Appears in:
ManagedService represents a specific service managed by the cluster. It includes the type of service and its associated template specification.
| Field | Description |
|---|---|
selectorType [Required]ServiceSelectorType |
SelectorType specifies the type of selectors that the service will have. Valid values are "rw", "r", and "ro", representing read-write, read, and read-only services. |
updateStrategyServiceUpdateStrategy |
UpdateStrategy describes how the service differences should be reconciled |
serviceTemplate [Required]ServiceTemplateSpec |
ServiceTemplate is the template specification for the service. |
ManagedServices
Appears in:
ManagedServices represents the services managed by the cluster.
| Field | Description |
|---|---|
disabledDefaultServices[]ServiceSelectorType |
DisabledDefaultServices is a list of service types that are disabled by default. Valid values are "r", and "ro", representing read, and read-only services. |
additional[]ManagedService |
Additional is a list of additional managed services specified by the user. |
Metadata
Appears in:
Metadata is a structure similar to the metav1.ObjectMeta, but still parseable by controller-gen to create a suitable CRD for the user. The comment of PodTemplateSpec has an explanation of why we are not using the core data types.
| Field | Description |
|---|---|
namestring |
The name of the resource. Only supported for certain types |
labelsmap[string]string |
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels |
annotationsmap[string]string |
Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations |
MonitoringConfiguration
Appears in:
MonitoringConfiguration is the type containing all the monitoring configuration for a certain cluster
| Field | Description |
|---|---|
disableDefaultQueriesbool |
Whether the default queries should be injected.
Set it to |
customQueriesConfigMap[]github.com/cloudnative-pg/machinery/pkg/api.ConfigMapKeySelector |
The list of config maps containing the custom queries |
customQueriesSecret[]github.com/cloudnative-pg/machinery/pkg/api.SecretKeySelector |
The list of secrets containing the custom queries |
enablePodMonitorbool |
Enable or disable the |
tlsClusterMonitoringTLSConfiguration |
Configure TLS communication for the metrics endpoint. Changing tls.enabled option will force a rollout of all instances. |
podMonitorMetricRelabelings[]github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1.RelabelConfig |
The list of metric relabelings for the |
podMonitorRelabelings[]github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1.RelabelConfig |
The list of relabelings for the |
NodeMaintenanceWindow
Appears in:
NodeMaintenanceWindow contains information that the operator will use while upgrading the underlying node.
This option is only useful when the chosen storage prevents the Pods from being freely moved across nodes.
| Field | Description |
|---|---|
reusePVCbool |
Reuse the existing PVC (wait for the node to come
up again) or not (recreate it elsewhere - when |
inProgressbool |
Is there a node maintenance activity in progress? |
OnlineConfiguration
Appears in:
OnlineConfiguration contains the configuration parameters for the online volume snapshot
| Field | Description |
|---|---|
waitForArchivebool |
If false, the function will return immediately after the backup is completed, without waiting for WAL to be archived. This behavior is only useful with backup software that independently monitors WAL archiving. Otherwise, WAL required to make the backup consistent might be missing and make the backup useless. By default, or when this parameter is true, pg_backup_stop will wait for WAL to be archived when archiving is enabled. On a standby, this means that it will wait only when archive_mode = always. If write activity on the primary is low, it may be useful to run pg_switch_wal on the primary in order to trigger an immediate segment switch. |
immediateCheckpointbool |
Control whether the I/O workload for the backup initial checkpoint will
be limited, according to the |
PasswordState
Appears in:
PasswordState represents the state of the password of a managed RoleConfiguration
| Field | Description |
|---|---|
transactionIDint64 |
the last transaction ID to affect the role definition in PostgreSQL |
resourceVersionstring |
the resource version of the password secret |
PgBouncerIntegrationStatus
Appears in:
PgBouncerIntegrationStatus encapsulates the needed integration for the pgbouncer poolers referencing the cluster
| Field | Description |
|---|---|
secrets[]string |
No description provided. |
PgBouncerPoolMode
(Alias of string)
Appears in:
PgBouncerPoolMode is the mode of PgBouncer
PgBouncerSecrets
Appears in:
PgBouncerSecrets contains the versions of the secrets used by pgbouncer
| Field | Description |
|---|---|
authQuerySecretVersion |
The auth query secret version |
PgBouncerSpec
Appears in:
PgBouncerSpec defines how to configure PgBouncer
| Field | Description |
|---|---|
poolModePgBouncerPoolMode |
The pool mode. Default: |
authQuerySecretgithub.com/cloudnative-pg/machinery/pkg/api.LocalObjectReference |
The credentials of the user that need to be used for the authentication query. In case it is specified, also an AuthQuery (e.g. "SELECT usename, passwd FROM pg_catalog.pg_shadow WHERE usename=$1") has to be specified and no automatic CNPG Cluster integration will be triggered. |
authQuerystring |
The query that will be used to download the hash of the password of a certain user. Default: "SELECT usename, passwd FROM public.user_search($1)". In case it is specified, also an AuthQuerySecret has to be specified and no automatic CNPG Cluster integration will be triggered. |
parametersmap[string]string |
Additional parameters to be passed to PgBouncer - please check the CNPG documentation for a list of options you can configure |
pg_hba[]string |
PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file) |
pausedbool |
When set to |
PluginConfiguration
Appears in:
PluginConfiguration specifies a plugin that need to be loaded for this cluster to be reconciled
| Field | Description |
|---|---|
name [Required]string |
Name is the plugin name |
enabledbool |
Enabled is true if this plugin will be used |
isWALArchiverbool |
Only one plugin can be declared as WALArchiver. Cannot be active if ".spec.backup.barmanObjectStore" configuration is present. |
parametersmap[string]string |
Parameters is the configuration of the plugin |
PluginStatus
Appears in:
PluginStatus is the status of a loaded plugin
| Field | Description |
|---|---|
name [Required]string |
Name is the name of the plugin |
version [Required]string |
Version is the version of the plugin loaded by the latest reconciliation loop |
capabilities[]string |
Capabilities are the list of capabilities of the plugin |
operatorCapabilities[]string |
OperatorCapabilities are the list of capabilities of the plugin regarding the reconciler |
walCapabilities[]string |
WALCapabilities are the list of capabilities of the plugin regarding the WAL management |
backupCapabilities[]string |
BackupCapabilities are the list of capabilities of the plugin regarding the Backup management |
restoreJobHookCapabilities[]string |
RestoreJobHookCapabilities are the list of capabilities of the plugin regarding the RestoreJobHook management |
statusstring |
Status contain the status reported by the plugin through the SetStatusInCluster interface |
PodTemplateSpec
Appears in:
PodTemplateSpec is a structure allowing the user to set a template for Pod generation.
Unfortunately we can't use the corev1.PodTemplateSpec type because the generated CRD won't have the field for the metadata section.
References: https://github.com/kubernetes-sigs/controller-tools/issues/385 https://github.com/kubernetes-sigs/controller-tools/issues/448 https://github.com/prometheus-operator/prometheus-operator/issues/3041
| Field | Description |
|---|---|
metadataMetadata |
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata |
speccore/v1.PodSpec |
Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
PodTopologyLabels
(Alias of map[string]string)
Appears in:
PodTopologyLabels represent the topology of a Pod. map[labelName]labelValue
PoolerIntegrations
Appears in:
PoolerIntegrations encapsulates the needed integration for the poolers referencing the cluster
| Field | Description |
|---|---|
pgBouncerIntegrationPgBouncerIntegrationStatus |
No description provided. |
PoolerMonitoringConfiguration
Appears in:
PoolerMonitoringConfiguration is the type containing all the monitoring configuration for a certain Pooler.
Mirrors the Cluster's MonitoringConfiguration but without the custom queries part for now.
| Field | Description |
|---|---|
enablePodMonitorbool |
Enable or disable the |
podMonitorMetricRelabelings[]github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1.RelabelConfig |
The list of metric relabelings for the |
podMonitorRelabelings[]github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1.RelabelConfig |
The list of relabelings for the |
PoolerSecrets
Appears in:
PoolerSecrets contains the versions of all the secrets used
| Field | Description |
|---|---|
serverTLSSecretVersion |
The server TLS secret version |
serverCASecretVersion |
The server CA secret version |
clientCASecretVersion |
The client CA secret version |
pgBouncerSecretsPgBouncerSecrets |
The version of the secrets used by PgBouncer |
PoolerSpec
Appears in:
PoolerSpec defines the desired state of Pooler
| Field | Description |
|---|---|
cluster [Required]github.com/cloudnative-pg/machinery/pkg/api.LocalObjectReference |
This is the cluster reference on which the Pooler will work. Pooler name should never match with any cluster name within the same namespace. |
typePoolerType |
Type of service to forward traffic to. Default: |
instancesint32 |
The number of replicas we want. Default: 1. |
templatePodTemplateSpec |
The template of the Pod to be created |
pgbouncer [Required]PgBouncerSpec |
The PgBouncer configuration |
deploymentStrategyapps/v1.DeploymentStrategy |
The deployment strategy to use for pgbouncer to replace existing pods with new ones |
monitoringPoolerMonitoringConfiguration |
The configuration of the monitoring infrastructure of this pooler. |
serviceTemplateServiceTemplateSpec |
Template for the Service to be created |
PoolerStatus
Appears in:
PoolerStatus defines the observed state of Pooler
| Field | Description |
|---|---|
secretsPoolerSecrets |
The resource version of the config object |
instancesint32 |
The number of pods trying to be scheduled |
PoolerType
(Alias of string)
Appears in:
PoolerType is the type of the connection pool, meaning the service
we are targeting. Allowed values are rw and ro.
PostgresConfiguration
Appears in:
PostgresConfiguration defines the PostgreSQL configuration
| Field | Description |
|---|---|
parametersmap[string]string |
PostgreSQL configuration options (postgresql.conf) |
synchronousSynchronousReplicaConfiguration |
Configuration of the PostgreSQL synchronous replication feature |
pg_hba[]string |
PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file) |
pg_ident[]string |
PostgreSQL User Name Maps rules (lines to be appended to the pg_ident.conf file) |
syncReplicaElectionConstraintSyncReplicaElectionConstraints |
Requirements to be met by sync replicas. This will affect how the "synchronous_standby_names" parameter will be set up. |
shared_preload_libraries[]string |
Lists of shared preload libraries to add to the default ones |
ldapLDAPConfig |
Options to specify LDAP configuration |
promotionTimeoutint32 |
Specifies the maximum number of seconds to wait when promoting an instance to primary. Default value is 40000000, greater than one year in seconds, big enough to simulate an infinite timeout |
enableAlterSystembool |
If this parameter is true, the user will be able to invoke |
extensions[]ExtensionConfiguration |
The configuration of the extensions to be added |
PrimaryUpdateMethod
(Alias of string)
Appears in:
PrimaryUpdateMethod contains the method to use when upgrading the primary server of the cluster as part of rolling updates
PrimaryUpdateStrategy
(Alias of string)
Appears in:
PrimaryUpdateStrategy contains the strategy to follow when upgrading the primary server of the cluster as part of rolling updates
Probe
Appears in:
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
| Field | Description |
|---|---|
initialDelaySecondsint32 |
Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
timeoutSecondsint32 |
Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
periodSecondsint32 |
How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. |
successThresholdint32 |
Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. |
failureThresholdint32 |
Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. |
terminationGracePeriodSecondsint64 |
Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. |
ProbeStrategyType
(Alias of string)
Appears in:
ProbeStrategyType is the type of the strategy used to declare a PostgreSQL instance ready
ProbeWithStrategy
Appears in:
ProbeWithStrategy is the configuration of the startup probe
| Field | Description |
|---|---|
ProbeProbe |
(Members of Probe are embedded into this type.)
Probe is the standard probe configuration |
typeProbeStrategyType |
The probe strategy |
maximumLagk8s.io/apimachinery/pkg/api/resource.Quantity |
Lag limit. Used only for |
ProbesConfiguration
Appears in:
ProbesConfiguration represent the configuration for the probes to be injected in the PostgreSQL Pods
| Field | Description |
|---|---|
startup [Required]ProbeWithStrategy |
The startup probe configuration |
liveness [Required]LivenessProbe |
The liveness probe configuration |
readiness [Required]ProbeWithStrategy |
The readiness probe configuration |
PublicationReclaimPolicy
(Alias of string)
Appears in:
PublicationReclaimPolicy defines a policy for end-of-life maintenance of Publications.
PublicationSpec
Appears in:
PublicationSpec defines the desired state of Publication
| Field | Description |
|---|---|
cluster [Required]core/v1.LocalObjectReference |
The name of the PostgreSQL cluster that identifies the "publisher" |
name [Required]string |
The name of the publication inside PostgreSQL |
dbname [Required]string |
The name of the database where the publication will be installed in the "publisher" cluster |
parametersmap[string]string |
Publication parameters part of the |
target [Required]PublicationTarget |
Target of the publication as expected by PostgreSQL |
publicationReclaimPolicyPublicationReclaimPolicy |
The policy for end-of-life maintenance of this publication |
PublicationStatus
Appears in:
PublicationStatus defines the observed state of Publication
| Field | Description |
|---|---|
observedGenerationint64 |
A sequence number representing the latest desired state that was synchronized |
appliedbool |
Applied is true if the publication was reconciled correctly |
messagestring |
Message is the reconciliation output message |
PublicationTarget
Appears in:
PublicationTarget is what this publication should publish
| Field | Description |
|---|---|
allTablesbool |
Marks the publication as one that replicates changes for all tables
in the database, including tables created in the future.
Corresponding to |
objects[]PublicationTargetObject |
Just the following schema objects |
PublicationTargetObject
Appears in:
PublicationTargetObject is an object to publish
| Field | Description |
|---|---|
tablesInSchemastring |
Marks the publication as one that replicates changes for all tables
in the specified list of schemas, including tables created in the
future. Corresponding to |
tablePublicationTargetTable |
Specifies a list of tables to add to the publication. Corresponding
to |
PublicationTargetTable
Appears in:
PublicationTargetTable is a table to publish
| Field | Description |
|---|---|
onlybool |
Whether to limit to the table only or include all its descendants |
name [Required]string |
The table name |
schemastring |
The schema name |
columns[]string |
The columns to publish |
RecoveryTarget
Appears in:
RecoveryTarget allows to configure the moment where the recovery process will stop. All the target options except TargetTLI are mutually exclusive.
| Field | Description |
|---|---|
backupIDstring |
The ID of the backup from which to start the recovery process. If empty (default) the operator will automatically detect the backup based on targetTime or targetLSN if specified. Otherwise use the latest available backup in chronological order. |
targetTLIstring |
The target timeline ("latest" or a positive integer) |
targetXIDstring |
The target transaction ID |
targetNamestring |
The target name (to be previously created
with |
targetLSNstring |
The target LSN (Log Sequence Number) |
targetTimestring |
The target time as a timestamp in the RFC3339 standard |
targetImmediatebool |
End recovery as soon as a consistent state is reached |
exclusivebool |
Set the target to be exclusive. If omitted, defaults to false, so that
in Postgres, |
ReplicaClusterConfiguration
Appears in:
ReplicaClusterConfiguration encapsulates the configuration of a replica cluster
| Field | Description |
|---|---|
selfstring |
Self defines the name of this cluster. It is used to determine if this is a primary
or a replica cluster, comparing it with |
primarystring |
Primary defines which Cluster is defined to be the primary in the distributed PostgreSQL cluster, based on the topology specified in externalClusters |
source [Required]string |
The name of the external cluster which is the replication origin |
enabledbool |
If replica mode is enabled, this cluster will be a replica of an existing cluster. Replica cluster can be created from a recovery object store or via streaming through pg_basebackup. Refer to the Replica clusters page of the documentation for more information. |
promotionTokenstring |
A demotion token generated by an external cluster used to check if the promotion requirements are met. |
minApplyDelaymeta/v1.Duration |
When replica mode is enabled, this parameter allows you to replay transactions only when the system time is at least the configured time past the commit time. This provides an opportunity to correct data loss errors. Note that when this parameter is set, a promotion token cannot be used. |
ReplicationSlotsConfiguration
Appears in:
ReplicationSlotsConfiguration encapsulates the configuration of replication slots
| Field | Description |
|---|---|
highAvailabilityReplicationSlotsHAConfiguration |
Replication slots for high availability configuration |
updateIntervalint |
Standby will update the status of the local replication slots
every |
synchronizeReplicasSynchronizeReplicasConfiguration |
Configures the synchronization of the user defined physical replication slots |
ReplicationSlotsHAConfiguration
Appears in:
ReplicationSlotsHAConfiguration encapsulates the configuration of the replication slots that are automatically managed by the operator to control the streaming replication connections with the standby instances for high availability (HA) purposes. Replication slots are a PostgreSQL feature that makes sure that PostgreSQL automatically keeps WAL files in the primary when a streaming client (in this specific case a replica that is part of the HA cluster) gets disconnected.
| Field | Description |
|---|---|
enabledbool |
If enabled (default), the operator will automatically manage replication slots on the primary instance and use them in streaming replication connections with all the standby instances that are part of the HA cluster. If disabled, the operator will not take advantage of replication slots in streaming connections with the replicas. This feature also controls replication slots in replica cluster, from the designated primary to its cascading replicas. |
slotPrefixstring |
Prefix for replication slots managed by the operator for HA.
It may only contain lower case letters, numbers, and the underscore character.
This can only be set at creation time. By default set to |
synchronizeLogicalDecodingbool |
When enabled, the operator automatically manages synchronization of logical decoding (replication) slots across high-availability clusters. Requires one of the following conditions:
|
RoleConfiguration
Appears in:
RoleConfiguration is the representation, in Kubernetes, of a PostgreSQL role with the additional field Ensure specifying whether to ensure the presence or absence of the role in the database
The defaults of the CREATE ROLE command are applied Reference: https://www.postgresql.org/docs/current/sql-createrole.html
| Field | Description |
|---|---|
name [Required]string |
Name of the role |
commentstring |
Description of the role |
ensureEnsureOption |
Ensure the role is |
passwordSecretgithub.com/cloudnative-pg/machinery/pkg/api.LocalObjectReference |
Secret containing the password of the role (if present) If null, the password will be ignored unless DisablePassword is set |
connectionLimitint64 |
If the role can log in, this specifies how many concurrent
connections the role can make. |
validUntilmeta/v1.Time |
Date and time after which the role's password is no longer valid. When omitted, the password will never expire (default). |
inRoles[]string |
List of one or more existing roles to which this role will be immediately added as a new member. Default empty. |
inheritbool |
Whether a role "inherits" the privileges of roles it is a member of.
Defaults is |
disablePasswordbool |
DisablePassword indicates that a role's password should be set to NULL in Postgres |
superuserbool |
Whether the role is a |
createdbbool |
When set to |
createrolebool |
Whether the role will be permitted to create, alter, drop, comment
on, change the security label for, and grant or revoke membership in
other roles. Default is |
loginbool |
Whether the role is allowed to log in. A role having the |
replicationbool |
Whether a role is a replication role. A role must have this
attribute (or be a superuser) in order to be able to connect to the
server in replication mode (physical or logical replication) and in
order to be able to create or drop replication slots. A role having
the |
bypassrlsbool |
Whether a role bypasses every row-level security (RLS) policy.
Default is |
SQLRefs
Appears in:
SQLRefs holds references to ConfigMaps or Secrets containing SQL files. The references are processed in a specific order: first, all Secrets are processed, followed by all ConfigMaps. Within each group, the processing order follows the sequence specified in their respective arrays.
| Field | Description |
|---|---|
secretRefs[]github.com/cloudnative-pg/machinery/pkg/api.SecretKeySelector |
SecretRefs holds a list of references to Secrets |
configMapRefs[]github.com/cloudnative-pg/machinery/pkg/api.ConfigMapKeySelector |
ConfigMapRefs holds a list of references to ConfigMaps |
ScheduledBackupSpec
Appears in:
ScheduledBackupSpec defines the desired state of ScheduledBackup
| Field | Description |
|---|---|
suspendbool |
If this backup is suspended or not |
immediatebool |
If the first backup has to be immediately start after creation or not |
schedule [Required]string |
The schedule does not follow the same format used in Kubernetes CronJobs as it includes an additional seconds specifier, see https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format |
cluster [Required]github.com/cloudnative-pg/machinery/pkg/api.LocalObjectReference |
The cluster to backup |
backupOwnerReferencestring |
Indicates which ownerReference should be put inside the created backup resources.
|
targetBackupTarget |
The policy to decide which instance should perform this backup. If empty,
it defaults to |
methodBackupMethod |
The backup method to be used, possible options are |
pluginConfigurationBackupPluginConfiguration |
Configuration parameters passed to the plugin managing this backup |
onlinebool |
Whether the default type of backup with volume snapshots is
online/hot ( |
onlineConfigurationOnlineConfiguration |
Configuration parameters to control the online/hot backup with volume snapshots Overrides the default settings specified in the cluster '.backup.volumeSnapshot.onlineConfiguration' stanza |
ScheduledBackupStatus
Appears in:
ScheduledBackupStatus defines the observed state of ScheduledBackup
| Field | Description |
|---|---|
lastCheckTimemeta/v1.Time |
The latest time the schedule |
lastScheduleTimemeta/v1.Time |
Information when was the last time that backup was successfully scheduled. |
nextScheduleTimemeta/v1.Time |
Next time we will run a backup |
SchemaSpec
Appears in:
SchemaSpec configures a schema in a database
| Field | Description |
|---|---|
DatabaseObjectSpecDatabaseObjectSpec |
(Members of DatabaseObjectSpec are embedded into this type.)
Common fields |
owner [Required]string |
The role name of the user who owns the schema inside PostgreSQL.
It maps to the |
SecretVersion
Appears in:
SecretVersion contains a secret name and its ResourceVersion
| Field | Description |
|---|---|
namestring |
The name of the secret |
versionstring |
The ResourceVersion of the secret |
SecretsResourceVersion
Appears in:
SecretsResourceVersion is the resource versions of the secrets managed by the operator
| Field | Description |
|---|---|
superuserSecretVersionstring |
The resource version of the "postgres" user secret |
replicationSecretVersionstring |
The resource version of the "streaming_replica" user secret |
applicationSecretVersionstring |
The resource version of the "app" user secret |
managedRoleSecretVersionmap[string]string |
The resource versions of the managed roles secrets |
caSecretVersionstring |
Unused. Retained for compatibility with old versions. |
clientCaSecretVersionstring |
The resource version of the PostgreSQL client-side CA secret version |
serverCaSecretVersionstring |
The resource version of the PostgreSQL server-side CA secret version |
serverSecretVersionstring |
The resource version of the PostgreSQL server-side secret version |
barmanEndpointCAstring |
The resource version of the Barman Endpoint CA if provided |
externalClusterSecretVersionmap[string]string |
The resource versions of the external cluster secrets |
metricsmap[string]string |
A map with the versions of all the secrets used to pass metrics. Map keys are the secret names, map values are the versions |
ServiceAccountTemplate
Appears in:
ServiceAccountTemplate contains the template needed to generate the service accounts
| Field | Description |
|---|---|
metadata [Required]Metadata |
Metadata are the metadata to be used for the generated service account |
ServiceSelectorType
(Alias of string)
Appears in:
ServiceSelectorType describes a valid value for generating the service selectors. It indicates which type of service the selector applies to, such as read-write, read, or read-only
ServiceTemplateSpec
Appears in:
ServiceTemplateSpec is a structure allowing the user to set a template for Service generation.
| Field | Description |
|---|---|
metadataMetadata |
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata |
speccore/v1.ServiceSpec |
Specification of the desired behavior of the service. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status |
ServiceUpdateStrategy
(Alias of string)
Appears in:
ServiceUpdateStrategy describes how the changes to the managed service should be handled
SnapshotOwnerReference
(Alias of string)
Appears in:
SnapshotOwnerReference defines the reference type for the owner of the snapshot. This specifies which owner the processed resources should relate to.
SnapshotType
(Alias of string)
Appears in:
SnapshotType is a type of allowed import
StorageConfiguration
Appears in:
StorageConfiguration is the configuration used to create and reconcile PVCs, usable for WAL volumes, PGDATA volumes, or tablespaces
| Field | Description |
|---|---|
storageClassstring |
StorageClass to use for PVCs. Applied after evaluating the PVC template, if available. If not specified, the generated PVCs will use the default storage class |
sizestring |
Size of the storage. Required if not already specified in the PVC template. Changes to this field are automatically reapplied to the created PVCs. Size cannot be decreased. |
resizeInUseVolumesbool |
Resize existent PVCs, defaults to true |
pvcTemplatecore/v1.PersistentVolumeClaimSpec |
Template to be used to generate the Persistent Volume Claim |
SubscriptionReclaimPolicy
(Alias of string)
Appears in:
SubscriptionReclaimPolicy describes a policy for end-of-life maintenance of Subscriptions.
SubscriptionSpec
Appears in:
SubscriptionSpec defines the desired state of Subscription
| Field | Description |
|---|---|
cluster [Required]core/v1.LocalObjectReference |
The name of the PostgreSQL cluster that identifies the "subscriber" |
name [Required]string |
The name of the subscription inside PostgreSQL |
dbname [Required]string |
The name of the database where the publication will be installed in the "subscriber" cluster |
parametersmap[string]string |
Subscription parameters included in the |
publicationName [Required]string |
The name of the publication inside the PostgreSQL database in the "publisher" |
publicationDBNamestring |
The name of the database containing the publication on the external cluster. Defaults to the one in the external cluster definition. |
externalClusterName [Required]string |
The name of the external cluster with the publication ("publisher") |
subscriptionReclaimPolicySubscriptionReclaimPolicy |
The policy for end-of-life maintenance of this subscription |
SubscriptionStatus
Appears in:
SubscriptionStatus defines the observed state of Subscription
| Field | Description |
|---|---|
observedGenerationint64 |
A sequence number representing the latest desired state that was synchronized |
appliedbool |
Applied is true if the subscription was reconciled correctly |
messagestring |
Message is the reconciliation output message |
SwitchReplicaClusterStatus
Appears in:
SwitchReplicaClusterStatus contains all the statuses regarding the switch of a cluster to a replica cluster
| Field | Description |
|---|---|
inProgressbool |
InProgress indicates if there is an ongoing procedure of switching a cluster to a replica cluster. |
SyncReplicaElectionConstraints
Appears in:
SyncReplicaElectionConstraints contains the constraints for sync replicas election.
For anti-affinity parameters two instances are considered in the same location if all the labels values match.
In future synchronous replica election restriction by name will be supported.
| Field | Description |
|---|---|
nodeLabelsAntiAffinity[]string |
A list of node labels values to extract and compare to evaluate if the pods reside in the same topology or not |
enabled [Required]bool |
This flag enables the constraints for sync replicas |
SynchronizeReplicasConfiguration
Appears in:
SynchronizeReplicasConfiguration contains the configuration for the synchronization of user defined physical replication slots
| Field | Description |
|---|---|
enabled [Required]bool |
When set to true, every replication slot that is on the primary is synchronized on each standby |
excludePatterns[]string |
List of regular expression patterns to match the names of replication slots to be excluded (by default empty) |
SynchronousReplicaConfiguration
Appears in:
SynchronousReplicaConfiguration contains the configuration of the
PostgreSQL synchronous replication feature.
Important: at this moment, also .spec.minSyncReplicas and .spec.maxSyncReplicas
need to be considered.
| Field | Description |
|---|---|
method [Required]SynchronousReplicaConfigurationMethod |
Method to select synchronous replication standbys from the listed servers, accepting 'any' (quorum-based synchronous replication) or 'first' (priority-based synchronous replication) as values. |
number [Required]int |
Specifies the number of synchronous standby servers that transactions must wait for responses from. |
maxStandbyNamesFromClusterint |
Specifies the maximum number of local cluster pods that can be
automatically included in the |
standbyNamesPre[]string |
A user-defined list of application names to be added to
|
standbyNamesPost[]string |
A user-defined list of application names to be added to
|
dataDurabilityDataDurabilityLevel |
If set to "required", data durability is strictly enforced. Write operations
with synchronous commit settings ( |
SynchronousReplicaConfigurationMethod
(Alias of string)
Appears in:
SynchronousReplicaConfigurationMethod configures whether to use quorum based replication or a priority list
TablespaceConfiguration
Appears in:
TablespaceConfiguration is the configuration of a tablespace, and includes the storage specification for the tablespace
| Field | Description |
|---|---|
name [Required]string |
The name of the tablespace |
storage [Required]StorageConfiguration |
The storage configuration for the tablespace |
ownerDatabaseRoleRef |
Owner is the PostgreSQL user owning the tablespace |
temporarybool |
When set to true, the tablespace will be added as a |
TablespaceState
Appears in:
TablespaceState represents the state of a tablespace in a cluster
| Field | Description |
|---|---|
name [Required]string |
Name is the name of the tablespace |
ownerstring |
Owner is the PostgreSQL user owning the tablespace |
state [Required]TablespaceStatus |
State is the latest reconciliation state |
errorstring |
Error is the reconciliation error, if any |
TablespaceStatus
(Alias of string)
Appears in:
TablespaceStatus represents the status of a tablespace in the cluster
Topology
Appears in:
Topology contains the cluster topology
| Field | Description |
|---|---|
instancesmap[PodName]PodTopologyLabels |
Instances contains the pod topology of the instances |
nodesUsedint32 |
NodesUsed represents the count of distinct nodes accommodating the instances. A value of '1' suggests that all instances are hosted on a single node, implying the absence of High Availability (HA). Ideally, this value should be the same as the number of instances in the Postgres HA cluster, implying shared nothing architecture on the compute side. |
successfullyExtractedbool |
SuccessfullyExtracted indicates if the topology data was extract. It is useful to enact fallback behaviors in synchronous replica election in case of failures |
VolumeSnapshotConfiguration
Appears in:
VolumeSnapshotConfiguration represents the configuration for the execution of snapshot backups.
| Field | Description |
|---|---|
labelsmap[string]string |
Labels are key-value pairs that will be added to .metadata.labels snapshot resources. |
annotationsmap[string]string |
Annotations key-value pairs that will be added to .metadata.annotations snapshot resources. |
classNamestring |
ClassName specifies the Snapshot Class to be used for PG_DATA PersistentVolumeClaim. It is the default class for the other types if no specific class is present |
walClassNamestring |
WalClassName specifies the Snapshot Class to be used for the PG_WAL PersistentVolumeClaim. |
tablespaceClassNamemap[string]string |
TablespaceClassName specifies the Snapshot Class to be used for the tablespaces. defaults to the PGDATA Snapshot Class, if set |
snapshotOwnerReferenceSnapshotOwnerReference |
SnapshotOwnerReference indicates the type of owner reference the snapshot should have |
onlinebool |
Whether the default type of backup with volume snapshots is
online/hot ( |
onlineConfigurationOnlineConfiguration |
Configuration parameters to control the online/hot backup with volume snapshots |