Postgres
Scope: Namespaced
Version: v1alpha1
-
apiVersionAPIVersion 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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
kindKind 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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
metadata
-
specPostgresSpec defines the desired state of Postgres
-
spec.configurationConfiguration parameters of PostgreSql
-
spec.instanceТребуемые ресурсы для каждого созданного Пода. Пожалуйста, обратитесь к https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ для дополниельной информации.
-
spec.instance.cpu
-
spec.instance.cpu.coreFractionCoreFraction это множитель для вычисления requests от limits для настройки cores
По умолчанию:
10
Пример:
coreFraction: 50
-
spec.instance.cpu.cores
По умолчанию:
1
-
-
spec.instance.memory
-
spec.instance.memory.size
По умолчанию:
256Mi
Пример:
size: 1Gi
-
-
spec.instance.persistentVolumeClaim
-
spec.instance.persistentVolumeClaim.size
По умолчанию:
1Gi
Пример:
size: 1Gi
-
spec.instance.persistentVolumeClaim.storageClassNameName of storage class that uses in Kubernetes
Пример:
storageClassName: local-path
-
-
-
spec.instancesКоличество инстансов для работы кластера
По умолчанию:
1
-
spec.postgresClassNameИмя PostgresClass объекта, для валидации параметров при установке
По умолчанию:
default
Пример:
postgresClassName: minimal
-
spec.postgresVersionPostgres version specification
-
spec.postgresVersion.imageOSCodename
Determines the code name of the operating system used in the Docker image for PostgreSQL. The possible values are:
- bookworm: Image is based on the Debian 12 (
bookworm
) release.
По умолчанию:
bookworm
Пример:
imageOSCodename: bookworm
- bookworm: Image is based on the Debian 12 (
-
spec.postgresVersion.imageType
Defines the type of Docker image for PostgreSQL. The possible values are:
- minimal: A lighter version of the image.
- standard: A standard image version, which included some PG extensions: pgaudit, pgvector, pg-failover-slots.
The default value is
standard
.
По умолчанию:
standard
Пример:
imageType: standard
-
spec.postgresVersion.versionSpecifies the version of PostgreSQL to be used. Available versions: 16.8, 17.3
Пример:
version: "17.3"
-
-
PostgresClass
Scope: Cluster
Version: v1alpha1
-
apiVersionAPIVersion 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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
kindKind 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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
metadata
-
specPostgresClassSpec defines the desired state of PostgresClass
-
spec.configurationНе имплеменировано
-
spec.sizingPoliciesПолитики размера инстансов
-
spec.sizingPolicies.coreFractionCoreFraction это множитель для вычисления requests от limits для настройки cores
Допустимые значения:
1 <= X <= 100
-
spec.sizingPolicies.coresCores cтруктура
-
spec.sizingPolicies.cores.maxВерхняя граница настройки
Пример:
max: 6
-
spec.sizingPolicies.cores.minНижняя граница настройки
Пример:
min: 1
-
-
spec.sizingPolicies.memoryMemory cтруктура
-
spec.sizingPolicies.memory.maxВерхняя граница настройки
Пример:
max: 5Gi
-
spec.sizingPolicies.memory.minНижняя граница настройки
Пример:
min: 128Mi
-
spec.sizingPolicies.memory.stepВозможный шаг, для настройки лимитов оперативной памяти
Пример:
step: 100Mi
-
-
-
spec.unsafeConfigurationНе имплеменировано
-
spec.userAllowedConfigurationНе имплеменировано
-
PostgresDatabase
Scope: Namespaced
Version: v1alpha1
-
apiVersionAPIVersion 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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
kindKind 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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
metadata
-
specPostgresDatabaseSpec defines the desired state of PostgresDatabase
-
spec.clusterThe name of the PostgreSQL cluster hosting the user. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Пример:
name: small
-
spec.cluster.name
-
-
spec.nameThe name of the database to create inside PostgreSQL. This setting cannot be changed.
Пример:
name: foo
-
spec.ownerMaps to the
OWNER
parameter ofCREATE DATABASE
. The role name of the user who owns the database inside PostgreSQL.Пример:
owner: foo
-
PostgresUser
Scope: Namespaced
Version: v1alpha1
-
apiVersionAPIVersion 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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
kindKind 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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
metadata
-
specPostgresUserSpec defines the desired state of PostgresUser
-
spec.clusterThe name of the PostgreSQL cluster hosting the user. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Пример:
name: small
-
spec.cluster.name
-
-
spec.commentComment string that will be provided into database as a description
Пример:
comment: user of the application
-
spec.groupsList of one or more existing roles to which this role will be immediately added as a new member.
Пример:
groups: - pg_monitor - pg_signal_backend
-
spec.loginEnable or disable login option for the user
По умолчанию:
true
Пример:
login: true
-
spec.nameName of the postgresql role Secret will be created in namespace with password and connection string
Пример:
name: myuser
-