Стадия жизненного цикла модуля: Preview
У модуля есть требования для установки
Deckhouse Kubernetes Platform устанавливает CRD, но не удаляет их при отключении модуля. Если вам больше не нужны созданные CRD, удалите их.
Postgres
Scope: Namespaced
Version: v1alpha1
-
строкаapiVersionAPIVersion определяет версионную схему этого представления объекта. Серверы должны преобразовывать распознанные схемы в последнее внутреннее значение и могут отклонять нераспознанные значения. Подробнее: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
строкаkindKind — это строковое значение, представляющее REST-ресурс, который представляет этот объект. Серверы могут определить это из конечной точки, на которую клиент отправляет запросы. Не может быть обновлено. В CamelCase. Подробнее: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
объектmetadata
-
объектspecPostgresSpec определяет желаемое состояние Postgres
-
объектspec.clusterСтруктура, которая определяет настройки кластера, такие как топология и репликация
-
строкаspec.cluster.replication
Настройка репликации определяет количество и тип реплик Возможные значения:
- Availability: кластер с Master + 1 асинхронная реплика
- Consistency: кластер с Master + 1 синхронная реплика
- ConsistencyAndAvailability: кластер с Master + 1 синхронная реплика + 1 асинхронная реплика
По умолчанию:
ConsistencyAndAvailabilityДопустимые значения:
Availability,Consistency,ConsistencyAndAvailability -
строкаspec.cluster.topology
Настройка топологии определяет, как планировщику разворачивать кластер
- Zonal: кластер будет развернут в одну зону. Если возможно
- TransZonal: кластер будет развернут в разные зоны. Если возможно
- Ignored: кластер будет развернут с правилами планирования k8s по умолчанию, будет обеспечено только разделение узлов по нодам
Пример:
topology: Ignored
-
-
объектspec.configurationПараметры конфигурации Postgres
-
целочисленныйspec.configuration.maxConnections
Определяет максимальное количество одновременных подключений к серверу базы данных. Этот параметр можно установить только при запуске сервера.
PostgreSQL размеры определенных ресурсов основываются непосредственно на значении max_connections. Увеличение его значения приводит к более высокому выделению этих ресурсов, включая разделяемую память.
Пример:
maxConnections: 100 -
строка или число
Устанавливает количество памяти, которое сервер базы данных использует для буферов разделяемой памяти. Этот параметр должен быть не менее 128 килобайт. Однако значения значительно выше минимума обычно нужны для хорошей производительности. Этот параметр можно установить только при запуске сервера.
Если у вас есть выделенный сервер базы данных с 1 ГБ или более ОЗУ, разумное значение для shared_buffers составляет 25% от памяти в вашей системе. Есть некоторые рабочие нагрузки, где даже большие настройки для shared_buffers эффективны, но поскольку PostgreSQL также полагается на кэш операционной системы, маловероятно, что выделение более 25% ОЗУ для shared_buffers будет работать лучше, чем меньшее количество. Большие настройки для shared_buffers обычно требуют соответствующего увеличения max_wal_size, чтобы распределить процесс записи больших объемов новых или измененных данных на более длительный период времени.
В системах с менее чем 1 ГБ ОЗУ подходящий меньший процент ОЗУ, чтобы оставить достаточно места для операционной системы. Должно быть установлено с единицами k8s как Gi/Mi/Ki/M/G
Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
sharedBuffers: 250Mi -
строка или числоspec.configuration.walKeepSize
Указывает минимальный размер прошлых файлов WAL, хранящихся в каталоге pg_wal, на случай, если резервный сервер должен получить их для потоковой репликации. Если резервный сервер, подключенный к отправляющему серверу, отстает более чем на wal_keep_size мегабайт, отправляющий сервер может удалить сегмент WAL, который все еще нужен резервному, в этом случае соединение репликации будет прервано. Нисходящие соединения также в конечном итоге завершатся ошибкой в результате. (Однако резервный сервер может восстановиться, получив сегмент из архива, если используется архивирование WAL.)
Это устанавливает только минимальный размер сегментов, сохраняемых в pg_wal; системе может потребоваться сохранить больше сегментов для архивирования WAL или для восстановления из контрольной точки. Если wal_keep_size равно нулю (по умолчанию), система не сохраняет никаких дополнительных сегментов для целей резервного копирования, поэтому количество старых сегментов WAL, доступных резервным серверам, является функцией местоположения предыдущей контрольной точки и статуса архивирования WAL. Должно быть установлено с единицами k8s как Gi/Mi/Ki/M/G
Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
walKeepSize: 512Mi -
строка или числоspec.configuration.workMem
Устанавливает базовое максимальное количество памяти, которое должно использоваться операцией запроса (например, сортировка или хэш-таблица) перед записью во временные файлы на диске. Если это значение указано без единиц, оно принимается как килобайты. Значение по умолчанию — четыре мегабайта (4 МБ). Обратите внимание, что сложный запрос может выполнять несколько операций сортировки и хеширования одновременно, при этом каждая операция обычно может использовать столько памяти, сколько указывает это значение, прежде чем начнет записывать данные во временные файлы. Кроме того, несколько запущенных сессий могут выполнять такие операции одновременно. Поэтому общая используемая память может быть во много раз больше значения work_mem; необходимо помнить об этом факте при выборе значения. Операции сортировки используются для ORDER BY, DISTINCT и слияний соединений. Хэш-таблицы используются в хэш-соединениях, хэш-агрегации, узлах memoize и хэш-обработке подзапросов IN.
Хэш-операции обычно более чувствительны к доступности памяти, чем эквивалентные операции на основе сортировки. Лимит памяти для хэш-таблицы вычисляется путем умножения work_mem на hash_mem_multiplier. Это позволяет хэш-операциям использовать количество памяти, превышающее обычное базовое количество work_mem. Должно быть установлено с единицами k8s как Gi/Mi/Ki/M/G
Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
workMem: 4Mi
-
-
объектspec.dataSourceИсточник данных, используемый для инициализации Postgres из PostgresSnapshot или других источников данных
-
объектspec.dataSource.objectRef
Обязательный параметр
Ссылка на объект, содержащий исходные данные-
строкаspec.dataSource.objectRef.kind
Обязательный параметр
Тип ресурса (например, PostgresSnapshot) -
строкаspec.dataSource.objectRef.name
Обязательный параметр
Имя ресурса
-
-
-
массив объектовspec.databasesСписок логических баз данных PostgreSQL.
-
строкаspec.databases.nameИмя логической базы данных, которая будет создана.
Пример:
name: mydb
-
-
объектspec.instance
Обязательный параметр
Требования к ресурсам каждого сгенерированного Pod. Пожалуйста, пройдите по ссылке https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ для получения дополнительной информации.-
объектspec.instance.cpu
Обязательный параметр
-
целочисленныйspec.instance.cpu.coreFraction
Обязательный параметр
CoreFraction — множитель для requests от limits ядерПример:
coreFraction: 50 -
целочисленныйspec.instance.cpu.cores
Обязательный параметр
Количество ядер процессора
-
-
объектspec.instance.memory
Обязательный параметр
-
строка или числоspec.instance.memory.size
Обязательный параметр
Размер памятиШаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
size: 1Gi
-
-
объектspec.instance.persistentVolumeClaim
Обязательный параметр
-
строкаspec.instance.persistentVolumeClaim.size
Обязательный параметр
Размер хранилищаПо умолчанию:
1GiПример:
size: 1Gi -
строкаspec.instance.persistentVolumeClaim.storageClassNameИмя storage class, который будет использоваться как хранилище для postgres. Если пусто, будет использован storageClass, который используется по умолчанию в кластере k8s. Настройка устанавливается один раз и не может быть изменена во время обновления.
Пример:
storageClassName: local-path
-
-
-
строкаspec.postgresClassName
Обязательный параметр
Имя PostgresClass Kind, которое должно быть указано для валидации настроекПо умолчанию:
defaultПример:
postgresClassName: small -
объектspec.tlsНастройки TLS для сервера Postgres
-
объектspec.tls.certManagerНастройки CertManager для управления TLS сертификатами Доступны только при
mode=CertManager-
строкаspec.tls.certManager.clusterIssuerNameИмя ресурса ClusterIssuer для cert-manager Должно быть указано только одно поле: или
clusterIssuerNameилиissuerName -
строкаspec.tls.certManager.issuerNameИмя ресурса Issuer для cert-manager Должно быть указано только одно поле: или
clusterIssuerNameилиissuerName
-
-
объектspec.tls.customCertificateНастройки CustomCertificate для управления TLS сертификатами Доступны только при
mode=CustomCertificate-
строкаspec.tls.customCertificate.serverCASecret
Обязательный параметр
Имя секрета, содержащего CA сертификат для TLS сервера Postgres -
строкаspec.tls.customCertificate.serverTLSSecret
Обязательный параметр
Имя секрета, содержащего TLS сертификат для сервера Postgres
-
-
строкаspec.tls.mode
Режим работы с TLS сертификатами
- CertManager: использовать cert-manager для управления сертификатами (по-умолчанию)
- CustomCertificate: использовать собственные сертификаты из секретов
- K8s: использовать Kubernetes CA для выпуска сертификатов
По умолчанию:
CertManagerДопустимые значения:
CertManager,CustomCertificate,K8s
-
-
строкаspec.typeType указывает тип кластера
По умолчанию:
ClusterДопустимые значения:
Cluster,Standalone -
массив объектовspec.usersСписок внутренних пользователей PostgreSQL.
-
строкаspec.users.hashedPassword
Хешированный пароль для роли PostgreSQL.
Поддерживаемые форматы:
- MD5;
- SCRAM-SHA-256.
Если вы укажете здесь обычный пароль, он будет автоматически заменен на хеш в формате MD5 или SCRAM-SHA-256.
Пример:
hashedPassword: SCRAM-SHA-256$4096:9bdAkxfJ7tMWaVlcOSyKLc8uUbvVi+KBBYXWCE14maM=$g13sNwuKH0VsQnh43WqlQj8KPwS/2smQL1m0JzJkowI=:rImReuq6U7mD4KoJGIDelxsFVlXoB1stP8olJZr5Gl4= -
строкаspec.users.nameИмя пользователя, который будет создан в PostgreSQL.
Пример:
name: myuser -
строкаspec.users.password
Пароль для роли PostgreSQL в открытом виде.
При указании автоматически преобразуется в
hashedPassword, после чего удаляется из.spec.Если вы хотите хранить пароль в открытом виде в секрете Kubernetes, используйте параметр
storeCredsToSecret.Пример:
password: '123' -
строкаspec.users.role
Предопределённая роль, в которую будет добавлен созданный пользователь.
Поддерживаемые значения:
ro(только чтение);rw(чтение и запись);monitoring(для сбора метрик).
Допустимые значения:
ro,rw,monitoringПример:
role: rw -
строкаspec.users.storeCredsToSecret
Имя Kubernetes Secret, в который оператор сохранит пароль в открытом виде.
Секрет будет создан в том же пространстве имён, где расположен ресурс. Будут сформированы строки подключения ко всем созданным базам данных.
Пример:
storeCredsToSecret: myuser-secret
-
-
-
объектstatusPostgresStatus определяет наблюдаемое состояние PostgreSQL.
-
массив объектовstatus.conditionsConditions — структура показывающая состояние важных этапов работы сервиса
-
строкаstatus.conditions.lastTransitionTime
-
строкаstatus.conditions.messageA human readable message indicating details about the transition.
-
целочисленныйstatus.conditions.observedGenerationObserved generation
-
строкаstatus.conditions.reasonThe reason for the condition’s last transition.
-
строкаstatus.conditions.statusStatus of the condition, one of True, False, Unknown.
-
строкаstatus.conditions.typeType of condition.
-
-
строкаstatus.configVersionВерсия конфигурации, которая была провалидирована
-
объектstatus.lastValidConfigurationПоследняя валидная конфигурация
-
объектstatus.lastValidConfiguration.cluster
-
строкаstatus.lastValidConfiguration.cluster.replication
Настройка репликации определяет количество и тип реплик Возможные значения:
- Availability: кластер с Master + 1 асинхронная реплика
- Consistency: кластер с Master + 1 синхронная реплика
- ConsistencyAndAvailability: кластер с Master + 1 синхронная реплика + 1 асинхронная реплика
По умолчанию:
ConsistencyAndAvailabilityДопустимые значения:
Availability,Consistency,ConsistencyAndAvailability -
строкаstatus.lastValidConfiguration.cluster.topology
Настройка топологии определяет, как планировать кластер
- Zonal: кластер будет запланирован в одну зону. Если возможно
- TransZonal: кластер будет запланирован в разные зоны. Если возможно
- Ignored: кластер будет запланирован с правилами планирования k8s по умолчанию, будет обеспечено только разделение узлов
Пример:
topology: Ignored
-
-
объектstatus.lastValidConfiguration.configurationКонфигурация
-
объектstatus.lastValidConfiguration.instance
-
объектstatus.lastValidConfiguration.instance.cpu
Обязательный параметр
-
целочисленныйstatus.lastValidConfiguration.instance.cpu.coreFraction
Обязательный параметр
CoreFraction — множитель для requests от limits ядерПример:
coreFraction: 50 -
целочисленныйstatus.lastValidConfiguration.instance.cpu.cores
Обязательный параметр
Количество ядер процессора
-
-
объектstatus.lastValidConfiguration.instance.memory
Обязательный параметр
-
строка или числоstatus.lastValidConfiguration.instance.memory.size
Обязательный параметр
Размер памятиШаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
size: 1Gi
-
-
объектstatus.lastValidConfiguration.instance.persistentVolumeClaim
Обязательный параметр
-
строкаstatus.lastValidConfiguration.instance.persistentVolumeClaim.size
Обязательный параметр
Размер хранилищаПо умолчанию:
1GiПример:
size: 1Gi -
строкаstatus.lastValidConfiguration.instance.persistentVolumeClaim.storageClassNameИмя класса хранения, который будет использоваться как хранилище для postgres. Если пусто, будет использован storageClass, который используется по умолчанию в кластере k8s. Настройка устанавливается один раз и не может быть изменена во время обновления.
Пример:
storageClassName: local-path
-
-
-
объектstatus.lastValidConfiguration.schedulingoutput type
-
объектstatus.lastValidConfiguration.scheduling.affinityAffinity is a group of affinity scheduling rules.
-
объектstatus.lastValidConfiguration.scheduling.affinity.nodeAffinityDescribes node affinity scheduling rules for the pod.
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecutionThe scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding “weight” to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.
-
объектstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preferenceA node selector term, associated with the corresponding weight.
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressionsA list of node selector requirements by node’s labels.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressions.keyThe label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressions.operatorRepresents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressions.valuesAn array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
-
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFieldsA list of node selector requirements by node’s fields.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFields.keyThe label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFields.operatorRepresents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFields.valuesAn array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
-
-
-
целочисленныйstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.weightWeight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
-
-
объектstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecutionIf the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms
Обязательный параметр
Required. A list of node selector terms. The terms are ORed.-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressionsA list of node selector requirements by node’s labels.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressions.keyThe label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressions.operatorRepresents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressions.valuesAn array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
-
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFieldsA list of node selector requirements by node’s fields.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFields.keyThe label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFields.operatorRepresents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFields.valuesAn array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
-
-
-
-
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAffinityDescribes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecutionThe scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding “weight” to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTermRequired. A pod affinity term, associated with the corresponding weight.
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelectorA label query over a set of resources, in this case pods. If it’s null, this PodAffinityTerm matches with no Pods.
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressionsmatchExpressions is a list of label selector requirements. The requirements are ANDed.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.keykey is the label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.operatoroperator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.valuesvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchLabelsmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
-
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.matchLabelKeysMatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with
labelSelectoraskey in (value)to select the group of existing pods which pods will be taken into consideration for the incoming pod’s pod (anti) affinity. Keys that don’t exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn’t set. -
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.mismatchLabelKeysMismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with
labelSelectoraskey notin (value)to select the group of existing pods which pods will be taken into consideration for the incoming pod’s pod (anti) affinity. Keys that don’t exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn’t set. -
объектstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelectorA label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means “this pod’s namespace”. An empty selector ({}) matches all namespaces.
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressionsmatchExpressions is a list of label selector requirements. The requirements are ANDed.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.keykey is the label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.operatoroperator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.valuesvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchLabelsmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
-
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespacesnamespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means “this pod’s namespace”.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.topologyKey
Обязательный параметр
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
-
-
целочисленныйstatus.lastValidConfiguration.scheduling.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution.weightweight associated with matching the corresponding podAffinityTerm, in the range 1-100.
-
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecutionIf the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelectorA label query over a set of resources, in this case pods. If it’s null, this PodAffinityTerm matches with no Pods.
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressionsmatchExpressions is a list of label selector requirements. The requirements are ANDed.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.keykey is the label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.operatoroperator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.valuesvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchLabelsmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
-
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.matchLabelKeysMatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with
labelSelectoraskey in (value)to select the group of existing pods which pods will be taken into consideration for the incoming pod’s pod (anti) affinity. Keys that don’t exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn’t set. -
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.mismatchLabelKeysMismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with
labelSelectoraskey notin (value)to select the group of existing pods which pods will be taken into consideration for the incoming pod’s pod (anti) affinity. Keys that don’t exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn’t set. -
объектstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelectorA label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means “this pod’s namespace”. An empty selector ({}) matches all namespaces.
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressionsmatchExpressions is a list of label selector requirements. The requirements are ANDed.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.keykey is the label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.operatoroperator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.valuesvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchLabelsmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
-
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespacesnamespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means “this pod’s namespace”.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution.topologyKeyThis pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
-
-
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinityDescribes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecutionThe scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting “weight” from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTermRequired. A pod affinity term, associated with the corresponding weight.
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelectorA label query over a set of resources, in this case pods. If it’s null, this PodAffinityTerm matches with no Pods.
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressionsmatchExpressions is a list of label selector requirements. The requirements are ANDed.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.keykey is the label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.operatoroperator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchExpressions.valuesvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.labelSelector.matchLabelsmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
-
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.matchLabelKeysMatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with
labelSelectoraskey in (value)to select the group of existing pods which pods will be taken into consideration for the incoming pod’s pod (anti) affinity. Keys that don’t exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn’t set. -
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.mismatchLabelKeysMismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with
labelSelectoraskey notin (value)to select the group of existing pods which pods will be taken into consideration for the incoming pod’s pod (anti) affinity. Keys that don’t exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn’t set. -
объектstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelectorA label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means “this pod’s namespace”. An empty selector ({}) matches all namespaces.
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressionsmatchExpressions is a list of label selector requirements. The requirements are ANDed.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.keykey is the label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.operatoroperator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchExpressions.valuesvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespaceSelector.matchLabelsmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
-
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.namespacesnamespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means “this pod’s namespace”.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm.topologyKey
Обязательный параметр
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
-
-
целочисленныйstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution.weightweight associated with matching the corresponding podAffinityTerm, in the range 1-100.
-
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecutionIf the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelectorA label query over a set of resources, in this case pods. If it’s null, this PodAffinityTerm matches with no Pods.
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressionsmatchExpressions is a list of label selector requirements. The requirements are ANDed.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.keykey is the label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.operatoroperator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchExpressions.valuesvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.labelSelector.matchLabelsmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
-
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.matchLabelKeysMatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with
labelSelectoraskey in (value)to select the group of existing pods which pods will be taken into consideration for the incoming pod’s pod (anti) affinity. Keys that don’t exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn’t set. -
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.mismatchLabelKeysMismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with
labelSelectoraskey notin (value)to select the group of existing pods which pods will be taken into consideration for the incoming pod’s pod (anti) affinity. Keys that don’t exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn’t set. -
объектstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelectorA label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means “this pod’s namespace”. An empty selector ({}) matches all namespaces.
-
массив объектовstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressionsmatchExpressions is a list of label selector requirements. The requirements are ANDed.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.keykey is the label key that the selector applies to.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.operatoroperator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchExpressions.valuesvalues is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
-
объектstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespaceSelector.matchLabelsmatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
-
-
массив строкstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.namespacesnamespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means “this pod’s namespace”.
-
строкаstatus.lastValidConfiguration.scheduling.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution.topologyKeyThis pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
-
-
-
-
объектstatus.lastValidConfiguration.scheduling.nodeSelector
-
массив объектовstatus.lastValidConfiguration.scheduling.tolerations
-
строкаstatus.lastValidConfiguration.scheduling.tolerations.effectEffect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
-
строкаstatus.lastValidConfiguration.scheduling.tolerations.keyKey is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
-
строкаstatus.lastValidConfiguration.scheduling.tolerations.operatorOperator represents a key’s relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.
-
целочисленныйstatus.lastValidConfiguration.scheduling.tolerations.tolerationSecondsTolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
-
строкаstatus.lastValidConfiguration.scheduling.tolerations.valueValue is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
-
-
массив строкstatus.lastValidConfiguration.scheduling.warnings
-
-
строкаstatus.lastValidConfiguration.typeТип кластера
-
-
PostgresClass
Scope: Cluster
Version: v1alpha1
-
строкаapiVersionAPIVersion определяет версионную схему этого представления объекта. Серверы должны преобразовывать распознанные схемы в последнее внутреннее значение и могут отклонять нераспознанные значения. Подробнее: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
строкаkindKind — это строковое значение, представляющее REST-ресурс, который представляет этот объект. Серверы могут определить это из конечной точки, на которую клиент отправляет запросы. Не может быть обновлено. В CamelCase. Подробнее: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
объектmetadata
-
объектspecPostgresClassSpec определяет желаемое состояние PostgresClass Ресурс для администратора кластера, который может валидировать ресурсы Postgres параметрами allowedConfiguration, sizingPolicies, validationRules и т.д.
-
объектspec.configurationПараметры конфигурации PostgreSQL. Любые параметры, которые будут указаны здесь, будут использоваться как значения по умолчанию в связанных Postgres Custom Resources
-
целочисленныйspec.configuration.maxConnections
Определяет максимальное количество одновременных подключений к серверу базы данных. Этот параметр будет применен только при перезапуске сервера.
PostgreSQL размеры определенных ресурсов основываются непосредственно на значении max_connections. Увеличение его значения приводит к более высокому выделению этих ресурсов, включая разделяемую память.
Пример:
maxConnections: 100 -
строка или число
Устанавливает количество памяти, которое сервер базы данных использует для буферов разделяемой памяти. Этот параметр должен быть не менее 128 килобайт. Однако значения значительно выше минимума обычно нужны для хорошей производительности. Этот параметр будет применен только при перезапуске сервера.
Если у вас есть выделенный сервер базы данных с 1 ГБ или более ОЗУ, разумное значение для shared_buffers составляет 25% от памяти в вашей системе. Есть некоторые рабочие нагрузки, где даже большие настройки для shared_buffers эффективны, но поскольку PostgreSQL также полагается на кэш операционной системы, маловероятно, что выделение более 25% ОЗУ для shared_buffers будет работать лучше, чем меньшее количество. Большие настройки для shared_buffers обычно требуют соответствующего увеличения max_wal_size, чтобы распределить процесс записи больших объемов новых или измененных данных на более длительный период времени.
В системах с менее чем 1 ГБ ОЗУ подходящий меньший процент ОЗУ, чтобы оставить достаточно места для операционной системы. Должно быть установлено с единицами k8s как Gi/Mi/Ki/M/G
Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
sharedBuffers: 250Mi -
строка или числоspec.configuration.walKeepSize
Указывает минимальный размер прошлых файлов WAL, хранящихся в каталоге pg_wal, на случай, если резервный сервер должен получить их для потоковой репликации. Если резервный сервер, подключенный к отправляющему серверу, отстает более чем на wal_keep_size мегабайт, отправляющий сервер может удалить сегмент WAL, который все еще нужен резервному, в этом случае соединение репликации будет прервано. Нисходящие соединения также в конечном итоге завершатся ошибкой в результате. (Однако резервный сервер может восстановиться, получив сегмент из архива, если используется архивирование WAL.)
Это устанавливает только минимальный размер сегментов, сохраняемых в pg_wal; системе может потребоваться сохранить больше сегментов для архивирования WAL или для восстановления из контрольной точки. Если wal_keep_size равно нулю (по умолчанию), система не сохраняет никаких дополнительных сегментов для целей резервного копирования, поэтому количество старых сегментов WAL, доступных резервным серверам, является функцией местоположения предыдущей контрольной точки и статуса архивирования WAL. Должно быть установлено с единицами k8s как Gi/Mi/Ki/M/G
Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
walKeepSize: 512Mi -
строка или числоspec.configuration.workMem
Устанавливает базовое максимальное количество памяти, которое должно использоваться операцией запроса (например, сортировка или хэш-таблица) перед записью во временные файлы на диске. Если это значение указано без единиц, оно принимается как килобайты. Значение по умолчанию — четыре мегабайта (4 МБ). Обратите внимание, что сложный запрос может выполнять несколько операций сортировки и хеширования одновременно, при этом каждая операция обычно может использовать столько памяти, сколько указывает это значение, прежде чем начнет записывать данные во временные файлы. Кроме того, несколько запущенных сессий могут выполнять такие операции одновременно. Поэтому общая используемая память может быть во много раз больше значения work_mem; необходимо помнить об этом факте при выборе значения. Операции сортировки используются для ORDER BY, DISTINCT и слияний соединений. Хэш-таблицы используются в хэш-соединениях, хэш-агрегации, узлах memoize и хэш-обработке подзапросов IN.
Хэш-операции обычно более чувствительны к доступности памяти, чем эквивалентные операции на основе сортировки. Лимит памяти для хэш-таблицы вычисляется путем умножения work_mem на hash_mem_multiplier. Это позволяет хэш-операциям использовать количество памяти, превышающее обычное базовое количество work_mem. Должно быть установлено с единицами k8s как Gi/Mi/Ki/M/G
Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
workMem: 4Mi
-
-
объектspec.nodeAffinityNode affinity концептуально похожа на nodeSelector, позволяя ограничить узлы, на которые может быть развернут ваш Pod, на основе labels.
-
массив объектовspec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecutionПланировщик предпочтет разворачивать поды на узлы, которые удовлетворяют выражениям affinity, указанным этим полем, но он может выбрать узел, который нарушает одно или несколько выражений. Наиболее предпочтительный узел — это тот, у которого наибольшая сумма весов, т.е. для каждого узла, который соответствует всем требованиям планирования (запрос ресурсов, выражения affinity requiredDuringScheduling и т.д.), вычислить сумму, перебирая элементы этого поля и добавляя “weight” к сумме, если узел соответствует соответствующим matchExpressions; узел(ы) с наибольшей суммой являются наиболее предпочтительными.
-
объектspec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preferenceУсловие селектора узла, связанное с соответствующим весом (weight).
-
массив объектовspec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressionsСписок требований селектора узла по лейблам узла.
-
строкаspec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressions.keyКлюч лейбла, к которому применяется селектор.
-
строкаspec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressions.operator
Представляет отношение ключа к набору значений.
Поддерживаемые операторы:
In;NotIn;Exists;DoesNotExist;Gt;Lt.
-
массив строкspec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchExpressions.values
Массив строковых значений, который заполняется в зависимости от оператора:
- при операторе
InилиNotInмассив значений НЕ должен быть пустым; - при операторе
ExistsилиDoesNotExist, массив значений должен быть пустым; - при операторе
GtилиLtмассив значений должен иметь один элемент, который будет интерпретирован как целое число.
Этот массив заменяется при применении strategic merge patch.
- при операторе
-
-
массив объектовspec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFieldsСписок требований селектора узла по полям узла.
-
строкаspec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFields.keyКлюч лейбла, к которому применяется селектор.
-
строкаspec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFields.operator
Представляет отношение ключа к набору значений.
Поддерживаемые операторы:
In;NotIn;Exists;DoesNotExist;Gt;Lt.
-
массив строкspec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.preference.matchFields.values
Массив строковых значений, который заполняется в зависимости от оператора:
- при операторе
InилиNotInмассив значений НЕ должен быть пустым; - при операторе
ExistsилиDoesNotExist, массив значений должен быть пустым; - при операторе
GtилиLtмассив значений должен иметь один элемент, который будет интерпретирован как целое число.
Этот массив заменяется при применении strategic merge patch.
- при операторе
-
-
-
целочисленныйspec.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution.weightВес, определяющий приоритет сопоставления соответствующему
nodeSelectorTerm, в диапазоне 1-100.
-
-
объектspec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecutionЕсли требования affinity, указанные этим полем, не выполняются во время планирования, под не будет запланирован на узел. Если требования affinity, указанные этим полем, перестают выполняться в какой-то момент во время выполнения пода (например, из-за обновления), система может или не может попытаться в конечном итоге выселить под с его узла.
-
массив объектовspec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms
Обязательный параметр
Список условий селектора узла. Термины объединяются по логикеИЛИ.-
массив объектовspec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressionsСписок требований селектора узла по лейблам узла.
-
строкаspec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressions.keyКлюч лейбла, к которому применяется селектор.
-
строкаspec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressions.operator
Представляет отношение ключа к набору значений.
Поддерживаемые операторы:
In;NotIn;Exists;DoesNotExist;Gt;Lt.
-
массив строкspec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchExpressions.values
Массив строковых значений, который заполняется в зависимости от оператора:
- при операторе
InилиNotInмассив значений НЕ должен быть пустым; - при операторе
ExistsилиDoesNotExist, массив значений должен быть пустым; - при операторе
GtилиLtмассив значений должен иметь один элемент, который будет интерпретирован как целое число.
Этот массив заменяется при применении strategic merge patch.
- при операторе
-
-
массив объектовspec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFieldsСписок требований селектора узла по полям узла.
-
строкаspec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFields.keyКлюч лейбла, к которому применяется селектор.
-
строкаspec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFields.operator
Представляет отношение ключа к набору значений.
Поддерживаемые операторы:
In;NotIn;Exists;DoesNotExist;Gt;Lt.
-
массив строкspec.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms.matchFields.values
Массив строковых значений, который заполняется в зависимости от оператора:
- при операторе
InилиNotInмассив значений НЕ должен быть пустым; - при операторе
ExistsилиDoesNotExist, массив значений должен быть пустым; - при операторе
GtилиLtмассив значений должен иметь один элемент, который будет интерпретирован как целое число.
Этот массив заменяется при применении strategic merge patch.
- при операторе
-
-
-
-
-
объектspec.nodeSelectorПозволяет назначать поды кластера PG указанным узлам. То же самое, что и в параметре
spec.nodeSelectorдля Kubernetes Pods. -
массив строкspec.overridableConfigurationМассив конфигураций PostgreSQL, которые разрешено изменять пользователю Параметры, которые укажет пользователь, переопределят все существующие поля в Configuration
-
массив объектовspec.sizingPolicies
Обязательный параметр
SizingPolicy — это массив, который определяет политику выделения вычислительных ресурсов экземплярам Postgres. Диапазоныcores.min–cores.maxдля разных элементов списка не должны перекрываться.-
массив целых чиселspec.sizingPolicies.coreFractionsМножитель для настройки
requestsна основе заданныхlimitsв ядрах.Пример:
coreFractions: - 10 - 30 - 50 - 100 -
объектspec.sizingPolicies.coresОпределяет допустимый диапазон количества ядер CPU.
-
целочисленныйspec.sizingPolicies.cores.max
Обязательный параметр
Верхняя граница допустимого количества ядер CPU.Пример:
max: 6 -
целочисленныйspec.sizingPolicies.cores.min
Обязательный параметр
Нижняя граница допустимого количества ядер CPU.Пример:
min: 1
-
-
объектspec.sizingPolicies.memoryПозволяет задать диапазон и шаг допустимых значений памяти.
-
строка или числоspec.sizingPolicies.memory.max
Обязательный параметр
Верхняя граница допустимого объема памяти.Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
max: 5Gi -
строка или числоspec.sizingPolicies.memory.min
Обязательный параметр
Нижняя граница допустимого объема памяти.Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
min: 128Mi -
строка или числоspec.sizingPolicies.memory.step
Обязательный параметр
Делитель (шаг) для допустимого значения памяти. Указанный объем должен делиться без остатка.Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
step: 100Mi
-
-
-
массив объектовspec.tolerationsTolerations подов Postgres.
-
строкаspec.tolerations.effect
Эффект taint для соответствия.
Допустимые значения:
NoSchedule;PreferNoSchedule;NoExecute.
Пустое значение означает соответствие любому эффекту taint.
-
строкаspec.tolerations.key
Ключ taint, к которому применяется toleration. Пустое значение означает соответствие любому ключу.
Если ключ пустой,
operatorдолжен бытьExists. Эта комбинация означает соответствие всем значениям и всем ключам. -
строкаspec.tolerations.operator
Отношение ключа (
key) к значению (value). Допустимые операторы:Exists;Equal(по умолчанию).
Existsэквивалентен подстановочному знаку для значения, поэтому к поду могут применяться все taints определенной категории. -
целочисленныйspec.tolerations.tolerationSecondsПериод времени, в течение которого toleration с эффектом
NoExecuteдопускает taint. По умолчанию не установлено, что предписывает допускать taint бессрочно (не вытеснять под). Нулевые и отрицательные значения интерпретируются системой как0(немедленное вытеснение пода). -
строкаspec.tolerations.valueЗначение taint, которому соответствует toleration. При
operator: Existsзначение должно быть пустым. В другом случае должна быть указана обычная строка.
-
-
объектspec.topology
Обязательный параметр
Описание разрешенной топологии PostgreSQL.-
массив строкspec.topology.allowedTopologies
Обязательный параметр
AllowedTopologies — массив типов топологии, которые разрешено использовать
- Zonal: кластер будет развернут в одну зону. Если возможно
- TransZonal: кластер будет развернут в разные зоны. Если возможно
- Ignored: кластер будет развернут с правилами планирования k8s по умолчанию, будет обеспечено только разделение узлов
-
строкаspec.topology.allowedTopologies.Элемент массива
Допустимые значения:
Ignored,Zonal,TransZonal
-
массив строкspec.topology.allowedZonesAllowedZones — массив зон, которые разрешено использовать
По умолчанию:
[] -
строкаspec.topology.defaultTopology
Обязательный параметр
DefaultTopology, которая будет использоваться всеми связанными сервисами PostgreSQL.
-
-
массив объектовspec.validationsФормулы валидации, которые позволяют проверить все настроенные конфигурации. Поддерживается только язык CEL.
-
строкаspec.validations.messageСообщение, которое будет выводиться при неудачном выполнении правила (
rule).Пример:
message: '''maxConnections should be greater than 100''\' -
строкаspec.validations.rule
Правило для проверки конфигурации PostgreSQL.
Доступные предопределенные переменные:
configuration.maxConnections;configuration.workMem;configuration.sharedBuffers;configuration.walKeepSize;instance.memory.size;instance.cpu.cores.
Пример:
rule: configuration.maxConnections > 100
-
-
PostgresSnapshot
Scope: Namespaced
Version: v1alpha1
-
строкаapiVersionAPIVersion определяет версионную схему этого представления объекта. Серверы должны преобразовывать распознанные схемы в последнее внутреннее значение и могут отклонять нераспознанные значения. Подробнее: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
-
строкаkindKind — это строковое значение, представляющее REST-ресурс, который представляет этот объект. Серверы могут вывести это из конечной точки, на которую клиент отправляет запросы. Не может быть обновлен. В CamelCase. Подробнее: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
объектmetadata
-
объектspecPostgresSnapshotSpec определяет желаемое состояние PostgresSnapshot
-
строкаspec.postgresName
Обязательный параметр
Имя управляемого сервиса Postgres
-
-
объектstatusPostgresSnapshotStatus определяет наблюдаемое состояние PostgresSnapshot
-
строкаstatus.completedAtВремя завершения резервного копирования.
-
строкаstatus.errorОбнаруженная ошибка
-
строкаstatus.phaseФаза текущего снимка
-
объектstatus.postgresКонфигурация Postgres
-
объектstatus.postgres.clusterСтруктура, которая определяет настройки кластера, такие как топология и репликация
-
строкаstatus.postgres.cluster.replication
Настройка репликации указывает количество и тип реплик Возможные значения:
- Availability: кластер с Master + 1 асинхронной репликой
- Consistency: кластер с Master + 1 синхронной репликой
- ConsistencyAndAvailability: кластер с Master + 1 синхронной репликой + 1 асинхронной репликой
По умолчанию:
ConsistencyAndAvailabilityДопустимые значения:
Availability,Consistency,ConsistencyAndAvailability -
строкаstatus.postgres.cluster.topology
Настройка топологии определяет, как планировать кластер
- Zonal: кластер будет запланирован в одной зоне, если возможно
- TransZonal: кластер будет запланирован в разных зонах, если возможно
- Ignored: кластер будет запланирован с использованием правил планирования k8s по умолчанию, будет обеспечено только разделение узлов
Пример:
topology: Ignored
-
-
объектstatus.postgres.configurationПараметры конфигурации Postgres
-
целочисленныйstatus.postgres.configuration.maxConnections
Определяет максимальное количество одновременных подключений к серверу базы данных. Этот параметр может быть установлен только при запуске сервера.
PostgreSQL выделяет определенные ресурсы непосредственно на основе значения max_connections. Увеличение его значения приводит к более высокому выделению этих ресурсов, включая разделяемую память.
Пример:
maxConnections: 100 -
строка или число
Устанавливает объем памяти, который сервер базы данных использует для буферов разделяемой памяти. Эта настройка должна быть не менее 128 килобайт. Однако для хорошей производительности обычно требуются значительно более высокие значения, чем минимум. Этот параметр может быть установлен только при запуске сервера.
Если у вас есть выделенный сервер базы данных с 1 ГБ или более оперативной памяти, разумное значение для shared_buffers составляет 25% от памяти в вашей системе. Существуют некоторые рабочие нагрузки, при которых даже более высокие настройки для shared_buffers эффективны, но поскольку PostgreSQL также использует кэш операционной системы, маловероятно, что выделение более 25% оперативной памяти для shared_buffers будет работать лучше, чем меньшее количество. Более высокие настройки для shared_buffers обычно требуют соответствующего увеличения max_wal_size, чтобы распределить процесс записи больших объемов новых или измененных данных на более длительный период времени.
В системах с менее чем 1 ГБ оперативной памяти подходит меньший процент оперативной памяти, чтобы оставить достаточно места для операционной системы. Должно быть установлено с использованием единиц k8s, таких как Gi/Mi/Ki/M/G
Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
sharedBuffers: 250Mi -
строка или числоstatus.postgres.configuration.walKeepSize
Указывает минимальный размер прошлых WAL-файлов, хранящихся в каталоге pg_wal, на случай, если резервному серверу нужно извлечь их для потоковой репликации. Если резервный сервер, подключенный к отправляющему серверу, отстает более чем на wal_keep_size мегабайт, отправляющий сервер может удалить WAL-сегмент, все еще необходимый резервному серверу, в этом случае соединение репликации будет прервано. В результате также в конечном итоге произойдет сбой нижестоящих соединений. (Однако резервный сервер может восстановиться, извлекая сегмент из архива, если используется архивирование WAL.)
Это устанавливает только минимальный размер сегментов, сохраненных в pg_wal; система может потребоваться сохранить больше сегментов для архивирования WAL или для восстановления после контрольной точки. Если wal_keep_size равен нулю (по умолчанию), система не сохраняет никаких дополнительных сегментов для целей резервного копирования, поэтому количество старых WAL-сегментов, доступных резервным серверам, зависит от местоположения предыдущей контрольной точки и статуса архивирования WAL. Должно быть установлено с использованием единиц k8s, таких как Gi/Mi/Ki/M/G
Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
walKeepSize: 512Mi -
строка или числоstatus.postgres.configuration.workMem
Устанавливает базовый максимальный объем памяти, который будет использоваться операцией запроса (например, сортировкой или хеш-таблицей) перед записью во временные дисковые файлы. Если это значение указано без единиц, оно принимается в килобайтах. Значение по умолчанию — четыре мегабайта (4 МБ). Обратите внимание, что сложный запрос может одновременно выполнять несколько операций сортировки и хеширования, каждая из которых обычно может использовать столько памяти, сколько указывает это значение, прежде чем начнет записывать данные во временные файлы. Кроме того, несколько работающих сеансов могут одновременно выполнять такие операции. Таким образом, общая используемая память может быть во много раз больше значения work_mem; необходимо помнить об этом факте при выборе значения. Операции сортировки используются для ORDER BY, DISTINCT и слияний слияния. Хеш-таблицы используются в хеш-соединениях, хеш-агрегации, узлах memoize и хеш-обработке подзапросов IN.
Операции на основе хеширования обычно более чувствительны к доступности памяти, чем эквивалентные операции на основе сортировки. Предел памяти для хеш-таблицы вычисляется путем умножения work_mem на hash_mem_multiplier. Это позволяет операциям на основе хеширования использовать объем памяти, превышающий обычную базовую сумму work_mem. Должно быть установлено с использованием единиц k8s, таких как Gi/Mi/Ki/M/G
Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
workMem: 4Mi
-
-
объектstatus.postgres.dataSourceSource of data uses for init Postgres from PostgresSnapshots or other sources of data
-
объектstatus.postgres.dataSource.objectRef
Обязательный параметр
-
строкаstatus.postgres.dataSource.objectRef.kind
Обязательный параметр
-
строкаstatus.postgres.dataSource.objectRef.name
Обязательный параметр
-
-
-
массив объектовstatus.postgres.databasesСписок логических баз данных Postgres
-
строкаstatus.postgres.databases.nameИмя логической базы данных, которая будет создана
Пример:
name: mydb
-
-
объектstatus.postgres.instance
Обязательный параметр
Требования к ресурсам каждого сгенерированного Pod. Для получения дополнительной информации обратитесь к https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/-
объектstatus.postgres.instance.cpu
Обязательный параметр
-
целочисленныйstatus.postgres.instance.cpu.coreFraction
Обязательный параметр
CoreFraction — это множитель для запросов лимитов ядерПример:
coreFraction: 50 -
целочисленныйstatus.postgres.instance.cpu.cores
Обязательный параметр
-
-
объектstatus.postgres.instance.memory
Обязательный параметр
-
строка или числоstatus.postgres.instance.memory.size
Обязательный параметр
Шаблон:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$Пример:
size: 1Gi
-
-
объектstatus.postgres.instance.persistentVolumeClaim
Обязательный параметр
-
строкаstatus.postgres.instance.persistentVolumeClaim.size
Обязательный параметр
По умолчанию:
1GiПример:
size: 1Gi -
строкаstatus.postgres.instance.persistentVolumeClaim.storageClassNameИмя класса хранения, который будет использоваться в качестве хранилища для экземпляров. Если пусто, будет использован storageClass, помеченный как defaulted в кластере k8s. Настройка устанавливается один раз и не может быть изменена во время обновления.
Пример:
storageClassName: local-path
-
-
-
строкаstatus.postgres.postgresClassName
Обязательный параметр
Имя PostgresClass Kind, которое должно быть указано для проверки настроекПо умолчанию:
defaultПример:
postgresClassName: small -
объектstatus.postgres.tlsTLS configuration for Postgres server
-
объектstatus.postgres.tls.certManagerCertManager configuration for TLS certificate management Available only when mode is CertManager
-
строкаstatus.postgres.tls.certManager.clusterIssuerNameName of the ClusterIssuer resource for cert-manager Only one of clusterIssuerName or issuerName can be specified
-
строкаstatus.postgres.tls.certManager.issuerNameName of the Issuer resource for cert-manager Only one of clusterIssuerName or issuerName can be specified
-
-
объектstatus.postgres.tls.customCertificateCustomCertificate configuration for TLS certificate management Available only when mode is CustomCertificate
-
строкаstatus.postgres.tls.customCertificate.serverCASecret
Обязательный параметр
Name of the secret containing the CA certificate for the TLS server certificate -
строкаstatus.postgres.tls.customCertificate.serverTLSSecret
Обязательный параметр
Name of the secret containing the TLS server certificate for Postgres
-
-
строкаstatus.postgres.tls.mode
Mode specifies the TLS certificate management mode
- CertManager: use cert-manager for certificate management
- CustomCertificate: use custom certificates from secrets
- K8s: use Kubernetes CA for issuing certificates
По умолчанию:
CertManagerДопустимые значения:
CertManager,CustomCertificate,K8s
-
-
строкаstatus.postgres.typeType указывает тип кластера
По умолчанию:
ClusterДопустимые значения:
Cluster,Standalone -
массив объектовstatus.postgres.usersСписок внутренних пользователей Postgres
-
строкаstatus.postgres.users.hashedPasswordHashedPassword роли postgresql Вы можете указать здесь пароль в формате хеша MD5/SCRAM-SHA-256, если хотите сделать его более безопасным. Вы можете указать пароль вместо этого, но мы все равно заменим его на MD5/SCRAM-SHA-256.
Пример:
hashedPassword: SCRAM-SHA-256$4096:9bdAkxfJ7tMWaVlcOSyKLc8uUbvVi+KBBYXWCE14maM=$g13sNwuKH0VsQnh43WqlQj8KPwS/2smQL1m0JzJkowI=:rImReuq6U7mD4KoJGIDelxsFVlXoB1stP8olJZr5Gl4= -
строкаstatus.postgres.users.nameИмя пользователя, который будет создан в Postgres
Пример:
name: myuser -
строкаstatus.postgres.users.passwordПароль в виде простого текста роли postgresql Обратите внимание, что мы преобразуем его в hashedPassword и удалим из Spec Если вы хотите хранить пароль в виде простого текста в секрете, укажите storeCredsToSecret.
Пример:
password: '123' -
строкаstatus.postgres.users.roleНазначить пользователя одной из существующих ролей, к которой этот пользователь будет немедленно добавлен в качестве нового участника. Возможные значения:
ro,rw,monitoring.Допустимые значения:
ro,rw,monitoringПример:
role: rw -
строкаstatus.postgres.users.storeCredsToSecretStoreCredsToSecret — это параметр, который позволяет вам сохранять пароль в виде простого текста в секрете Укажите имя секрета, который будет создан оператором Секрет будет создан в пространстве имен с паролем в виде простого текста, и для каждой созданной базы данных будут добавлены строки подключения.
Пример:
storeCredsToSecret: myuser-secret
-
-
-
строкаstatus.startedAtКогда резервное копирование было начато
-
строкаstatus.volumeSnapshotNameИмя связанного снимка тома
-