Cennso PostgreSQL Schema Custom Resource Definition
You can use the Cennso PostgreSQL Schema Custom Resource (CR) to create logical databases. The Cennso PostgreSQL Schema 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 Schema, see the Cennso PostgreSQL Schema document and Create a PostgreSQL database operation guide.
Configuration parameters
These are all parameters that you can use to configure the Cennso PostgreSQL Schema CR:
- PostgreSQLSchemaKind
- db.contrib.cennso.comGroup
- v1alpha1Version
- apiVersion:
- db.contrib.cennso.com/v1alpha1
- kind:
- PostgreSQLSchema
- plural:
- postgresqlschemas
- 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"PostgreSQLSchema"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.specobjectrequireddbInstanceNamestringrequiredThe
metadata.nameof the targetPostgreSQLInstancefor which you want to provision a database. The schema-provisioning Job connects to the<dbInstanceName>-pgbouncer.<namespace>.svc:5432Kubernetes Service and uses the credentials from the<dbInstanceName>-pguser-<dbInstanceName>Kubernetes secret.namespacestringrequiredA Kubernetes Namespace on the Core Cluster where the target Cennso Database Instance is deployedschemaNamestringrequired<= 63 charactersName of the logical database to create inside the target Cennso PostgreSQL Instance. Must be a valid, unquoted PostgreSQL identifier (a letter or underscore followed by letters, digits, or underscores, up to 63 bytes - PostgreSQL's
NAMEDATALENlimit).activeDeadlineSecondsinteger>= 1Wall-clock deadline in seconds, measured from the Job start time, after which the schema-provisioning Kubernetes Job is terminated and marked as failed. For more information, see the official documentationOpens in a new tab.
backoffLimitinteger>= 0Number of retries for the schema-provisioning Kubernetes Job before it is marked as failed. For more information, see the official documentationOpens in a new tab.
connectionSecretRefobjectA 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 image used by the schema-provisioning JobimagePullSecretRefobjectA reference to the Kubernetes secret that contains credentials to pull the image for the schema-provisioning JobrestartPolicystringRestart policy for the schema-provisioning Job pod. For more information, see the official documentationOpens in a new tab.
Allowed values:"OnFailure""Never"ttlSecondsAfterFinishedinteger>= 0Time-to-live in seconds for the schema-provisioning Kubernetes Job after it finishes (either
CompleteorFailed). When the TTL expires, the Job and its Pods can be cleaned up automatically. If omitted, the Job is not deleted automatically. For more information, see the official documentationOpens in a new tab.
statusobjectconditionsobject[]Conditions of the resource.x-kubernetes-list-map-keysx-kubernetes-list-type