|
monitoring: |
|
description: The specification of monitoring tools that connect to |
|
PostgreSQL |
|
properties: |
|
pgmonitor: |
|
description: PGMonitorSpec defines the desired state of the pgMonitor |
|
tool suite |
|
properties: |
|
exporter: |
|
properties: |
|
configuration: |
|
description: 'Projected volumes containing custom PostgreSQL |
|
Exporter configuration. Currently supports the customization |
|
of PostgreSQL Exporter queries. If a "queries.yaml" |
|
file is detected in any volume projected using this |
|
field, it will be loaded using the "extend.query-path" |
|
flag: https://github.com/prometheus-community/postgres_exporter#flags |
|
Changing the values of field causes PostgreSQL and the |
|
exporter to restart.' |
|
items: |
|
description: Projection that may be projected along |
|
with other supported volume types |
|
properties: |
|
configMap: |
|
description: information about the configMap data |
|
to project |
|
properties: |
|
items: |
|
description: If unspecified, each key-value |
|
pair in the Data field of the referenced ConfigMap |
|
will be projected into the volume as a file |
|
whose name is the key and content is the value. |
|
If specified, the listed keys will be projected |
|
into the specified paths, and unlisted keys |
|
will not be present. If a key is specified |
|
which is not present in the ConfigMap, the |
|
volume setup will error unless it is marked |
|
optional. Paths must be relative and may not |
|
contain the '..' path or start with '..'. |
|
items: |
|
description: Maps a string key to a path within |
|
a volume. |
|
properties: |
|
key: |
|
description: The key to project. |
|
type: string |
|
mode: |
|
description: 'Optional: mode bits used |
|
to set permissions on this file. Must |
|
be an octal value between 0000 and 0777 |
|
or a decimal value between 0 and 511. |
|
YAML accepts both octal and decimal |
|
values, JSON requires decimal values |
|
for mode bits. If not specified, the |
|
volume defaultMode will be used. This |
|
might be in conflict with other options |
|
that affect the file mode, like fsGroup, |
|
and the result can be other mode bits |
|
set.' |
|
format: int32 |
|
type: integer |
|
path: |
|
description: The relative path of the |
|
file to map the key to. May not be an |
|
absolute path. May not contain the path |
|
element '..'. May not start with the |
|
string '..'. |
|
type: string |
|
required: |
|
- key |
|
- path |
|
type: object |
|
type: array |
|
name: |
|
description: 'Name of the referent. More info: |
|
https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
|
TODO: Add other useful fields. apiVersion, |
|
kind, uid?' |
|
type: string |
|
optional: |
|
description: Specify whether the ConfigMap or |
|
its keys must be defined |
|
type: boolean |
|
type: object |
|
downwardAPI: |
|
description: information about the downwardAPI data |
|
to project |
|
properties: |
|
items: |
|
description: Items is a list of DownwardAPIVolume |
|
file |
|
items: |
|
description: DownwardAPIVolumeFile represents |
|
information to create the file containing |
|
the pod field |
|
properties: |
|
fieldRef: |
|
description: 'Required: Selects a field |
|
of the pod: only annotations, labels, |
|
name and namespace are supported.' |
|
properties: |
|
apiVersion: |
|
description: Version of the schema |
|
the FieldPath is written in terms |
|
of, defaults to "v1". |
|
type: string |
|
fieldPath: |
|
description: Path of the field to |
|
select in the specified API version. |
|
type: string |
|
required: |
|
- fieldPath |
|
type: object |
|
mode: |
|
description: 'Optional: mode bits used |
|
to set permissions on this file, must |
|
be an octal value between 0000 and 0777 |
|
or a decimal value between 0 and 511. |
|
YAML accepts both octal and decimal |
|
values, JSON requires decimal values |
|
for mode bits. If not specified, the |
|
volume defaultMode will be used. This |
|
might be in conflict with other options |
|
that affect the file mode, like fsGroup, |
|
and the result can be other mode bits |
|
set.' |
|
format: int32 |
|
type: integer |
|
path: |
|
description: 'Required: Path is the relative |
|
path name of the file to be created. |
|
Must not be absolute or contain the |
|
''..'' path. Must be utf-8 encoded. |
|
The first item of the relative path |
|
must not start with ''..''' |
|
type: string |
|
resourceFieldRef: |
|
description: 'Selects a resource of the |
|
container: only resources limits and |
|
requests (limits.cpu, limits.memory, |
|
requests.cpu and requests.memory) are |
|
currently supported.' |
|
properties: |
|
containerName: |
|
description: 'Container name: required |
|
for volumes, optional for env vars' |
|
type: string |
|
divisor: |
|
anyOf: |
|
- type: integer |
|
- type: string |
|
description: Specifies the output |
|
format of the exposed resources, |
|
defaults to "1" |
|
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ |
|
x-kubernetes-int-or-string: true |
|
resource: |
|
description: 'Required: resource to |
|
select' |
|
type: string |
|
required: |
|
- resource |
|
type: object |
|
required: |
|
- path |
|
type: object |
|
type: array |
|
type: object |
|
secret: |
|
description: information about the secret data to |
|
project |
|
properties: |
|
items: |
|
description: If unspecified, each key-value |
|
pair in the Data field of the referenced Secret |
|
will be projected into the volume as a file |
|
whose name is the key and content is the value. |
|
If specified, the listed keys will be projected |
|
into the specified paths, and unlisted keys |
|
will not be present. If a key is specified |
|
which is not present in the Secret, the volume |
|
setup will error unless it is marked optional. |
|
Paths must be relative and may not contain |
|
the '..' path or start with '..'. |
|
items: |
|
description: Maps a string key to a path within |
|
a volume. |
|
properties: |
|
key: |
|
description: The key to project. |
|
type: string |
|
mode: |
|
description: 'Optional: mode bits used |
|
to set permissions on this file. Must |
|
be an octal value between 0000 and 0777 |
|
or a decimal value between 0 and 511. |
|
YAML accepts both octal and decimal |
|
values, JSON requires decimal values |
|
for mode bits. If not specified, the |
|
volume defaultMode will be used. This |
|
might be in conflict with other options |
|
that affect the file mode, like fsGroup, |
|
and the result can be other mode bits |
|
set.' |
|
format: int32 |
|
type: integer |
|
path: |
|
description: The relative path of the |
|
file to map the key to. May not be an |
|
absolute path. May not contain the path |
|
element '..'. May not start with the |
|
string '..'. |
|
type: string |
|
required: |
|
- key |
|
- path |
|
type: object |
|
type: array |
|
name: |
|
description: 'Name of the referent. More info: |
|
https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
|
TODO: Add other useful fields. apiVersion, |
|
kind, uid?' |
|
type: string |
|
optional: |
|
description: Specify whether the Secret or its |
|
key must be defined |
|
type: boolean |
|
type: object |
|
serviceAccountToken: |
|
description: information about the serviceAccountToken |
|
data to project |
|
properties: |
|
audience: |
|
description: Audience is the intended audience |
|
of the token. A recipient of a token must |
|
identify itself with an identifier specified |
|
in the audience of the token, and otherwise |
|
should reject the token. The audience defaults |
|
to the identifier of the apiserver. |
|
type: string |
|
expirationSeconds: |
|
description: ExpirationSeconds is the requested |
|
duration of validity of the service account |
|
token. As the token approaches expiration, |
|
the kubelet volume plugin will proactively |
|
rotate the service account token. The kubelet |
|
will start trying to rotate the token if the |
|
token is older than 80 percent of its time |
|
to live or if the token is older than 24 hours.Defaults |
|
to 1 hour and must be at least 10 minutes. |
|
format: int64 |
|
type: integer |
|
path: |
|
description: Path is the path relative to the |
|
mount point of the file to project the token |
|
into. |
|
type: string |
|
required: |
|
- path |
|
type: object |
|
type: object |
|
type: array |
|
image: |
|
description: The image name to use for crunchy-postgres-exporter |
|
containers. The image may also be set using the RELATED_IMAGE_PGEXPORTER |
|
environment variable. |
|
type: string |
|
resources: |
|
description: 'Changing this value causes PostgreSQL and |
|
the exporter to restart. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers' |
|
properties: |
|
limits: |
|
additionalProperties: |
|
anyOf: |
|
- type: integer |
|
- type: string |
|
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ |
|
x-kubernetes-int-or-string: true |
|
description: 'Limits describes the maximum amount |
|
of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' |
|
type: object |
|
requests: |
|
additionalProperties: |
|
anyOf: |
|
- type: integer |
|
- type: string |
|
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ |
|
x-kubernetes-int-or-string: true |
|
description: 'Requests describes the minimum amount |
|
of compute resources required. If Requests is omitted |
|
for a container, it defaults to Limits if that is |
|
explicitly specified, otherwise to an implementation-defined |
|
value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' |
|
type: object |
|
type: object |
|
type: object |
|
type: object |
|
type: object |