- API Reference
- Examples
PostgreSQLDatabase
Tiers
This feature is available for the following tiers: Standard, Premium.
Packages:
database.entigo.com/v1alpha1
Resource Types:
PostgreSQLDatabase
↩ Parent| Name | Type | Description | Required |
|---|---|---|---|
| apiVersion | string | database.entigo.com/v1alpha1 | true |
| kind | string | PostgreSQLDatabase | true |
| metadata | object | Refer to the Kubernetes API documentation for the fields of the metadata field. | true |
| spec | object | false |
PostgreSQLDatabase.spec
↩ Parent| Name | Type | Description | Required |
|---|---|---|---|
| instanceRef | object | true | |
| owner | string | Owner role name | true |
| extensions | []enum | List of PostgreSQL extensions to enable Enum: postgis | false |
PostgreSQLDatabase.spec.instanceRef
↩ Parent| Name | Type | Description | Required |
|---|---|---|---|
| name | string | Name of the database instance the db should be created in | true |
Basic Database
A minimal PostgreSQL Database definition showing the required fields only.
apiVersion: database.entigo.com/v1alpha1
kind: PostgreSQLDatabase
metadata:
name: basic-database
spec:
owner: owner
instanceRef:
name: basic-instance
Prerequisites
The PostgreSQL Database requires the following resources applied:
PostgreSQLInstance
apiVersion: database.entigo.com/v1alpha1
kind: PostgreSQLInstance
metadata:
name: basic-instance
spec:
storageGB: 20
version: "17.2"
PostgreSQLUser (Owner Role)
apiVersion: database.entigo.com/v1alpha1
kind: PostgreSQLUser
metadata:
name: owner
spec:
instanceRef:
name: basic-instance
createDb: true
createRole: true