Postgres

Scope: Namespaced
Version: v1alpha1

Postgres is the Schema for the postgres API
  • apiVersion
    строка
    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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  • kind
    строка
    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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  • metadata
    объект
  • spec
    объект
    PostgresSpec defines the desired state of Postgres
    • spec.configuration
      объект
      Configuration parameters of PostgreSql
    • spec.instance
      объект
      Требуемые ресурсы для каждого созданного Пода. Пожалуйста, обратитесь к https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ для дополниельной информации.
      • spec.instance.cpu
        объект
        • spec.instance.cpu.coreFraction
          целочисленный
          CoreFraction это множитель для вычисления 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.storageClassName
          строка
          Name of storage class that uses in Kubernetes

          Пример:

          storageClassName: local-path
          
    • spec.instances
      целочисленный
      Количество инстансов для работы кластера

      По умолчанию: 1

    • spec.postgresClassName
      строка
      Имя PostgresClass объекта, для валидации параметров при установке

      По умолчанию: default

      Пример:

      postgresClassName: minimal
      
    • spec.postgresVersion
      объект
      Postgres 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
        
      • 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.version
        строка
        Specifies the version of PostgreSQL to be used. Available versions: 16.8, 17.3

        Пример:

        version: "17.3"
        

PostgresClass

Scope: Cluster
Version: v1alpha1

PostgresClass is the Schema for the postgresclasses API
  • apiVersion
    строка
    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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  • kind
    строка
    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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  • metadata
    объект
  • spec
    объект
    PostgresClassSpec defines the desired state of PostgresClass
    • spec.configuration
      объект
      Не имплеменировано
    • spec.sizingPolicies
      объект
      Политики размера инстансов
      • spec.sizingPolicies.coreFraction
        целочисленный
        CoreFraction это множитель для вычисления requests от limits для настройки cores

        Допустимые значения: 1 <= X <= 100

      • spec.sizingPolicies.cores
        объект
        Cores cтруктура
        • spec.sizingPolicies.cores.max
          целочисленный
          Верхняя граница настройки

          Пример:

          max: 6
          
        • spec.sizingPolicies.cores.min
          целочисленный
          Нижняя граница настройки

          Пример:

          min: 1
          
      • spec.sizingPolicies.memory
        объект
        Memory 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

PostgresDatabase is the Schema for the postgresdatabases API

PostgresUser

Scope: Namespaced
Version: v1alpha1

PostgresUser is the Schema for the postgresusers API
  • apiVersion
    строка
    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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  • kind
    строка
    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 info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  • metadata
    объект
  • spec
    объект
    PostgresUserSpec defines the desired state of PostgresUser
    • spec.cluster
      объект
      The 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.comment
      строка
      Comment string that will be provided into database as a description

      Пример:

      comment: user of the application
      
    • spec.groups
      массив строк
      List 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.login
      булевый
      Enable or disable login option for the user

      По умолчанию: true

      Пример:

      login: true
      
    • spec.name
      строка
      Name of the postgresql role Secret will be created in namespace with password and connection string

      Пример:

      name: myuser