ConnectionPool
Usage example¶
apiVersion: aiven.io/v1alpha1
kind: ConnectionPool
metadata:
name: my-connection-pool
spec:
authSecretRef:
name: aiven-token
key: token
connInfoSecretTarget:
name: connection-pool-secret
prefix: MY_SECRET_PREFIX_
annotations:
foo: bar
labels:
baz: egg
project: aiven-project-name
serviceName: my-service
databaseName: my-db
username: my-user
poolMode: transaction
poolSize: 25
ConnectionPool¶
ConnectionPool is the Schema for the connectionpools API.
Required
apiVersion
(string). Valueaiven.io/v1alpha1
.kind
(string). ValueConnectionPool
.metadata
(object). Data that identifies the object, including aname
string and optionalnamespace
.spec
(object). ConnectionPoolSpec defines the desired state of ConnectionPool. See below for nested schema.
spec¶
Appears on ConnectionPool
.
ConnectionPoolSpec defines the desired state of ConnectionPool.
Required
databaseName
(string, MaxLength: 40). Name of the database the pool connects to.project
(string, Immutable, MaxLength: 63, Format:^[a-zA-Z0-9_-]+$
). Identifies the project this resource belongs to.serviceName
(string, Immutable, MaxLength: 63, Format:^[a-z][-a-z0-9]+$
). Specifies the name of the service that this resource belongs to.username
(string, MaxLength: 64). Name of the service user used to connect to the database.
Optional
authSecretRef
(object). Authentication reference to Aiven token in a secret. See below for nested schema.connInfoSecretTarget
(object). Information regarding secret creation. Exposed keys:CONNECTIONPOOL_NAME
,CONNECTIONPOOL_HOST
,CONNECTIONPOOL_PORT
,CONNECTIONPOOL_DATABASE
,CONNECTIONPOOL_USER
,CONNECTIONPOOL_PASSWORD
,CONNECTIONPOOL_SSLMODE
,CONNECTIONPOOL_DATABASE_URI
,CONNECTIONPOOL_CA_CERT
. See below for nested schema.connInfoSecretTargetDisabled
(boolean, Immutable). When true, the secret containing connection information will not be created, defaults to false. This field cannot be changed after resource creation.poolMode
(string, Enum:session
,transaction
,statement
). Mode the pool operates in (session, transaction, statement).poolSize
(integer). Number of connections the pool may create towards the backend server.
authSecretRef¶
Appears on spec
.
Authentication reference to Aiven token in a secret.
Required
connInfoSecretTarget¶
Appears on spec
.
Information regarding secret creation. Exposed keys: CONNECTIONPOOL_NAME
, CONNECTIONPOOL_HOST
, CONNECTIONPOOL_PORT
, CONNECTIONPOOL_DATABASE
, CONNECTIONPOOL_USER
, CONNECTIONPOOL_PASSWORD
, CONNECTIONPOOL_SSLMODE
, CONNECTIONPOOL_DATABASE_URI
, CONNECTIONPOOL_CA_CERT
.
Required
name
(string). Name of the secret resource to be created. By default, it is equal to the resource name.
Optional
annotations
(object, AdditionalProperties: string). Annotations added to the secret.labels
(object, AdditionalProperties: string). Labels added to the secret.prefix
(string). Prefix for the secret's keys. Added "as is" without any transformations. By default, is equal to the kind name in uppercase + underscore, e.g.KAFKA_
,REDIS_
, etc.