×
Description

AlertmanagerConfig 配置 Prometheus Alertmanager,指定如何分组、抑制警报以及如何通知外部系统。

Type

object

Required
  • spec

规范

Property Type Description

apiVersion

string

APIVersion 定义此对象表示的版本化模式。服务器应将已识别的模式转换为最新的内部值,并可能拒绝无法识别的值。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kind

string

Kind 是一个字符串值,表示此对象表示的 REST 资源。服务器可以从客户端提交请求的端点推断出这一点。无法更新。使用驼峰式命名。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadata

ObjectMeta

标准对象的元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

spec

object

AlertmanagerConfigSpec 是 Alertmanager 配置所需行为的规范。根据定义,Alertmanager 配置仅适用于 `namespace` 标签等于 AlertmanagerConfig 资源命名空间的警报。

.spec

Description

AlertmanagerConfigSpec 是 Alertmanager 配置所需行为的规范。根据定义,Alertmanager 配置仅适用于 `namespace` 标签等于 AlertmanagerConfig 资源命名空间的警报。

Type

object

Property Type Description

inhibitRules

array

抑制规则列表。这些规则仅适用于与资源命名空间匹配的警报。

inhibitRules[]

object

InhibitRule 定义一个抑制规则,允许在其他警报已触发时使警报静音。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#inhibit_rule

receivers

array

接收器列表。

receivers[]

object

Receiver 定义一个或多个通知集成。

route

object

与资源命名空间匹配的警报的 Alertmanager 路由定义。如果存在,它将作为第一级路由添加到生成的 Alertmanager 配置中。

timeIntervals

array

指定路由何时应静音或处于活动状态的 TimeInterval 列表。

timeIntervals[]

object

TimeInterval 指定通知将静音或处于活动状态的时间段。

.spec.inhibitRules

Description

抑制规则列表。这些规则仅适用于与资源命名空间匹配的警报。

Type

array

.spec.inhibitRules[]

Description

InhibitRule 定义一个抑制规则,允许在其他警报已触发时使警报静音。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#inhibit_rule

Type

object

Property Type Description

equal

array (string)

源警报和目标警报中必须具有相等值的标签,抑制才能生效。

sourceMatch

array

必须存在一个或多个警报才能使抑制生效的匹配器。操作员强制警报与资源的命名空间匹配。

sourceMatch[]

object

Matcher 定义如何在警报标签上进行匹配。

targetMatch

array

必须在要静音的警报中满足的匹配器。操作员强制警报与资源的命名空间匹配。

targetMatch[]

object

Matcher 定义如何在警报标签上进行匹配。

.spec.inhibitRules[].sourceMatch

Description

必须存在一个或多个警报才能使抑制生效的匹配器。操作员强制警报与资源的命名空间匹配。

Type

array

.spec.inhibitRules[].sourceMatch[]

Description

Matcher 定义如何在警报标签上进行匹配。

Type

object

Required
  • name

Property Type Description

matchType

string

匹配运算符,取值可以是 `=` (等于)、`!=` (不等于)、`=~` (正则表达式匹配)或 `!~` (非正则表达式匹配)之一。否定运算符(`!=` 和 `!~`)需要 Alertmanager >= v0.22.0。

name

string

要匹配的标签。

value

string

要匹配的标签值。

.spec.inhibitRules[].targetMatch

Description

必须在要静音的警报中满足的匹配器。操作员强制警报与资源的命名空间匹配。

Type

array

.spec.inhibitRules[].targetMatch[]

Description

Matcher 定义如何在警报标签上进行匹配。

Type

object

Required
  • name

Property Type Description

matchType

string

匹配运算符,取值可以是 `=` (等于)、`!=` (不等于)、`=~` (正则表达式匹配)或 `!~` (非正则表达式匹配)之一。否定运算符(`!=` 和 `!~`)需要 Alertmanager >= v0.22.0。

name

string

要匹配的标签。

value

string

要匹配的标签值。

.spec.receivers

Description

接收器列表。

Type

array

.spec.receivers[]

Description

Receiver 定义一个或多个通知集成。

Type

object

Required
  • name

Property Type Description

discordConfigs

array

Slack 配置列表。

discordConfigs[]

object

DiscordConfig 配置通过 Discord 发送通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#discord_config

emailConfigs

array

电子邮件配置列表。

emailConfigs[]

object

EmailConfig 配置通过电子邮件发送通知。

msteamsConfigs

array

MSTeams 配置列表。它需要 Alertmanager >= 0.26.0。

msteamsConfigs[]

object

MSTeamsConfig 配置通过 Microsoft Teams 发送通知。它需要 Alertmanager >= 0.26.0。

name

string

接收器的名称。必须在列表中的所有项中唯一。

opsgenieConfigs

array

OpsGenie 配置列表。

opsgenieConfigs[]

object

OpsGenieConfig 配置通过 OpsGenie 发送通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#opsgenie_config

pagerdutyConfigs

array

PagerDuty 配置列表。

pagerdutyConfigs[]

object

PagerDutyConfig 通过 PagerDuty 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#pagerduty_config

pushoverConfigs

array

Pushover 配置列表。

pushoverConfigs[]

object

PushoverConfig 通过 Pushover 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#pushover_config

slackConfigs

array

Slack 配置列表。

slackConfigs[]

object

SlackConfig 通过 Slack 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#slack_config

snsConfigs

array

SNS 配置列表

snsConfigs[]

object

SNSConfig 通过 AWS SNS 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#sns_configs

telegramConfigs

array

Telegram 配置列表。

telegramConfigs[]

object

TelegramConfig 通过 Telegram 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#telegram_config

victoropsConfigs

array

VictorOps 配置列表。

victoropsConfigs[]

object

VictorOpsConfig 通过 VictorOps 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#victorops_config

webexConfigs

array

Webex 配置列表。

webexConfigs[]

object

WebexConfig 通过 Cisco Webex 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#webex_config

webhookConfigs

array

Webhook 配置列表。

webhookConfigs[]

object

WebhookConfig 通过支持 webhook 有效负载的通用接收器配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#webhook_config

wechatConfigs

array

WeChat 配置列表。

wechatConfigs[]

object

WeChatConfig 通过微信配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#wechat_config

.spec.receivers[].discordConfigs

Description

Slack 配置列表。

Type

array

.spec.receivers[].discordConfigs[]

Description

DiscordConfig 配置通过 Discord 发送通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#discord_config

Type

object

Property Type Description

apiURL

object

包含 Discord webhook URL 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

httpConfig

object

HTTP 客户端配置。

message

string

消息正文的模板。

sendResolved

布尔值

是否通知已解决的警报。

title

string

消息标题的模板。

.spec.receivers[].discordConfigs[].apiURL

Description

包含 Discord webhook URL 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].discordConfigs[].httpConfig

Description

HTTP 客户端配置。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].discordConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].discordConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].discordConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].discordConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].discordConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].discordConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].discordConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].discordConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].discordConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].discordConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].discordConfigs[].httpConfig.oauth2.clientSecret

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].discordConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].discordConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].discordConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].discordConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].discordConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].discordConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].discordConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].discordConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].emailConfigs

Description

电子邮件配置列表。

Type

array

.spec.receivers[].emailConfigs[]

Description

EmailConfig 配置通过电子邮件发送通知。

Type

object

Property Type Description

authIdentity

string

用于身份验证的身份。

authPassword

object

包含用于身份验证的密码的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

authSecret

object

包含 CRAM-MD5 密钥的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

authUsername

string

用于身份验证的用户名。

from

string

发件人地址。

headers

array

进一步的标头电子邮件标头键/值对。覆盖之前由通知实现设置的任何标头。

headers[]

object

KeyValue 定义一个 (键, 值) 元组。

hello

string

要识别 SMTP 服务器的主机名。

html

string

电子邮件通知的 HTML 正文。

requireTLS

布尔值

SMTP TLS 要求。请注意,Go 不支持与远程 SMTP 端点的未加密连接。

sendResolved

布尔值

是否通知已解决的警报。

smarthost

string

发送电子邮件的 SMTP 主机和端口。例如 example.com:25

text

string

电子邮件通知的文本正文。

tlsConfig

object

TLS 配置

to

string

要将通知发送到的电子邮件地址。

.spec.receivers[].emailConfigs[].authPassword

Description

包含用于身份验证的密码的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].emailConfigs[].authSecret

Description

包含 CRAM-MD5 密钥的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].emailConfigs[].headers

Description

进一步的标头电子邮件标头键/值对。覆盖之前由通知实现设置的任何标头。

Type

array

.spec.receivers[].emailConfigs[].headers[]

Description

KeyValue 定义一个 (键, 值) 元组。

Type

object

Required
  • key

  • value

Property Type Description

key

string

元组的键。

value

string

元组的值。

.spec.receivers[].emailConfigs[].tlsConfig

Description

TLS 配置

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].emailConfigs[].tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].emailConfigs[].tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].emailConfigs[].tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].emailConfigs[].tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].emailConfigs[].tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].emailConfigs[].tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].emailConfigs[].tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].msteamsConfigs

Description

MSTeams 配置列表。它需要 Alertmanager >= 0.26.0。

Type

array

.spec.receivers[].msteamsConfigs[]

Description

MSTeamsConfig 配置通过 Microsoft Teams 发送通知。它需要 Alertmanager >= 0.26.0。

Type

object

Required
  • webhookUrl

Property Type Description

httpConfig

object

HTTP 客户端配置。

sendResolved

布尔值

是否通知已解决的警报。

summary

string

消息摘要模板。它需要 Alertmanager >= 0.27.0。

text

string

消息正文模板。

title

string

消息标题模板。

webhookUrl

object

MSTeams webhook URL。

.spec.receivers[].msteamsConfigs[].httpConfig

Description

HTTP 客户端配置。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].msteamsConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].msteamsConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].msteamsConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].msteamsConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].msteamsConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].msteamsConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].msteamsConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].msteamsConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].msteamsConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].msteamsConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].msteamsConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].msteamsConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].msteamsConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].msteamsConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].msteamsConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].msteamsConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].msteamsConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].msteamsConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].msteamsConfigs[].webhookUrl

Description

MSTeams webhook URL。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].opsgenieConfigs

Description

OpsGenie 配置列表。

Type

array

.spec.receivers[].opsgenieConfigs[]

Description

OpsGenieConfig 配置通过 OpsGenie 发送通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#opsgenie_config

Type

object

Property Type Description

操作

string

逗号分隔的可用告警操作列表。

apiKey

object

包含 OpsGenie API 密钥的 secret 的键。该 secret 需要与 AlertmanagerConfig 对象位于同一命名空间中,并且 Prometheus Operator 可以访问。

apiURL

string

用于发送 OpsGenie API 请求的 URL。

描述

string

事件的描述。

详细信息

array

提供有关事件的更多详细信息的一组任意键/值对。

详细信息[]

object

KeyValue 定义一个 (键, 值) 元组。

实体

string

可选字段,可用于指定告警与哪个域相关。

httpConfig

object

HTTP 客户端配置。

message

string

告警文本限制为 130 个字符。

备注

string

额外的告警备注。

优先级

string

告警的优先级级别。可能的值为 P1、P2、P3、P4 和 P5。

响应者

array

负责通知的响应者列表。

响应者[]

object

OpsGenieConfigResponder 定义事件的响应者。必须定义 idnameusername 中的一个。

sendResolved

布尔值

是否通知已解决的警报。

来源

string

指向通知发送者的反向链接。

标签

string

附加到通知的逗号分隔的标签列表。

.spec.receivers[].opsgenieConfigs[].apiKey

Description

包含 OpsGenie API 密钥的 secret 的键。该 secret 需要与 AlertmanagerConfig 对象位于同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].opsgenieConfigs[].details

Description

提供有关事件的更多详细信息的一组任意键/值对。

Type

array

.spec.receivers[].opsgenieConfigs[].details[]

Description

KeyValue 定义一个 (键, 值) 元组。

Type

object

Required
  • key

  • value

Property Type Description

key

string

元组的键。

value

string

元组的值。

.spec.receivers[].opsgenieConfigs[].httpConfig

Description

HTTP 客户端配置。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].opsgenieConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].opsgenieConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].opsgenieConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].opsgenieConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].opsgenieConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].opsgenieConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].opsgenieConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].opsgenieConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].opsgenieConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].opsgenieConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].opsgenieConfigs[].httpConfig.oauth2.clientSecret

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].opsgenieConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].opsgenieConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].opsgenieConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].opsgenieConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].opsgenieConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].opsgenieConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].opsgenieConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].opsgenieConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].opsgenieConfigs[].responders

Description

负责通知的响应者列表。

Type

array

.spec.receivers[].opsgenieConfigs[].responders[]

Description

OpsGenieConfigResponder 定义事件的响应者。必须定义 idnameusername 中的一个。

Type

object

Required
  • type

Property Type Description

ID

string

响应者的 ID。

name

string

响应者的名称。

type

string

响应者的类型。

username

string

响应者的用户名。

.spec.receivers[].pagerdutyConfigs

Description

PagerDuty 配置列表。

Type

array

.spec.receivers[].pagerdutyConfigs[]

Description

PagerDutyConfig 通过 PagerDuty 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#pagerduty_config

Type

object

Property Type Description

类别

string

事件的类别/类型。

客户端

string

客户端标识。

clientURL

string

指向通知发送者的反向链接。

组件

string

受影响的系统中损坏的部分或组件。

描述

string

事件的描述。

详细信息

array

提供有关事件的更多详细信息的任意键/值对。

详细信息[]

object

KeyValue 定义一个 (键, 值) 元组。

string

源的集群或分组。

httpConfig

object

HTTP 客户端配置。

pagerDutyImageConfigs

array

用于附加的图像详细信息列表,以提供有关事件的更多详细信息。

pagerDutyImageConfigs[]

object

PagerDutyImageConfig 将图像附加到事件

pagerDutyLinkConfigs

array

用于附加的链接详细信息列表,以提供有关事件的更多详细信息。

pagerDutyLinkConfigs[]

object

PagerDutyLinkConfig 将文本链接附加到事件

路由键

object

包含 PagerDuty 集成密钥(使用 Events API v2 时)的 secret 的键。必须定义此字段或 serviceKey。该 secret 需要与 AlertmanagerConfig 对象位于同一命名空间中,并且 Prometheus Operator 可以访问。

sendResolved

布尔值

是否通知已解决的警报。

服务密钥

object

包含 PagerDuty 服务密钥(使用集成类型 "Prometheus" 时)的 secret 的键。必须定义此字段或 routingKey。该 secret 需要与 AlertmanagerConfig 对象位于同一命名空间中,并且 Prometheus Operator 可以访问。

严重性

string

事件的严重性。

来源

string

受影响系统的唯一位置。

url

string

用于发送请求的 URL。

.spec.receivers[].pagerdutyConfigs[].details

Description

提供有关事件的更多详细信息的任意键/值对。

Type

array

.spec.receivers[].pagerdutyConfigs[].details[]

Description

KeyValue 定义一个 (键, 值) 元组。

Type

object

Required
  • key

  • value

Property Type Description

key

string

元组的键。

value

string

元组的值。

.spec.receivers[].pagerdutyConfigs[].httpConfig

Description

HTTP 客户端配置。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].pagerdutyConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].pagerdutyConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pagerdutyConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].pagerdutyConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pagerdutyConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pagerdutyConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].pagerdutyConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].pagerdutyConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].pagerdutyConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].pagerdutyConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pagerdutyConfigs[].httpConfig.oauth2.clientSecret

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pagerdutyConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].pagerdutyConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].pagerdutyConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].pagerdutyConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pagerdutyConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].pagerdutyConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].pagerdutyConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pagerdutyConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pagerdutyConfigs[].pagerDutyImageConfigs

Description

用于附加的图像详细信息列表,以提供有关事件的更多详细信息。

Type

array

.spec.receivers[].pagerdutyConfigs[].pagerDutyImageConfigs[]

Description

PagerDutyImageConfig 将图像附加到事件

Type

object

Property Type Description

alt

string

Alt 是图像的可选替代文本。

href

string

可选 URL;使图像成为可点击的链接。

src

string

附加到事件的图像的 Src

.spec.receivers[].pagerdutyConfigs[].pagerDutyLinkConfigs

Description

用于附加的链接详细信息列表,以提供有关事件的更多详细信息。

Type

array

.spec.receivers[].pagerdutyConfigs[].pagerDutyLinkConfigs[]

Description

PagerDutyLinkConfig 将文本链接附加到事件

Type

object

Property Type Description

alt

string

描述链接用途的文本,可用作链接的文本。

href

string

Href 是要附加的链接的 URL

.spec.receivers[].pagerdutyConfigs[].routingKey

Description

包含 PagerDuty 集成密钥(使用 Events API v2 时)的 secret 的键。必须定义此字段或 serviceKey。该 secret 需要与 AlertmanagerConfig 对象位于同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].pagerdutyConfigs[].serviceKey

Description

包含 PagerDuty 服务密钥(使用集成类型 "Prometheus" 时)的 secret 的键。必须定义此字段或 routingKey。该 secret 需要与 AlertmanagerConfig 对象位于同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].pushoverConfigs

Description

Pushover 配置列表。

Type

array

.spec.receivers[].pushoverConfigs[]

Description

PushoverConfig 通过 Pushover 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#pushover_config

Type

object

Property Type Description

设备

string

要将通知发送到的设备的名称

过期

string

通知将继续重试的时间长度,除非用户确认该通知。

html

布尔值

通知消息是 HTML 还是纯文本。

httpConfig

object

HTTP 客户端配置。

message

string

通知消息。

优先级

string

优先级,请参阅https://pushover.net/api#priority

重试

string

Pushover 服务器将向用户发送相同通知的频率。必须至少为 30 秒。

sendResolved

布尔值

是否通知已解决的警报。

声音

string

设备客户端支持的声音之一的名称,以覆盖用户的默认声音选择

title

string

通知标题。

令牌

object

密钥包含已注册应用程序的 API 令牌,请参阅 https://pushover.net/apps。密钥需要与 AlertmanagerConfig 对象位于同一命名空间,并且可由 Prometheus Operator 访问。必须提供 tokentokenFile 中的一个。

tokenFile

string

包含已注册应用程序 API 令牌的令牌文件,请参阅 https://pushover.net/apps。必须提供 tokentokenFile 中的一个。需要 Alertmanager >= v0.26.0。

ttl

string

警报通知的生存时间定义

url

string

与消息一起显示的补充 URL。

urlTitle

string

补充 URL 的标题,否则只显示 URL

userKey

object

密钥包含接收用户用户密钥。密钥需要与 AlertmanagerConfig 对象位于同一命名空间,并且可由 Prometheus Operator 访问。必须提供 userKeyuserKeyFile 中的一个。

userKeyFile

string

包含接收用户用户密钥的用户密钥文件。必须提供 userKeyuserKeyFile 中的一个。需要 Alertmanager >= v0.26.0。

.spec.receivers[].pushoverConfigs[].httpConfig

Description

HTTP 客户端配置。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].pushoverConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].pushoverConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pushoverConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].pushoverConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pushoverConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pushoverConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].pushoverConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].pushoverConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].pushoverConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].pushoverConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pushoverConfigs[].httpConfig.oauth2.clientSecret

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pushoverConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].pushoverConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].pushoverConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].pushoverConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pushoverConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].pushoverConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].pushoverConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pushoverConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].pushoverConfigs[].token

Description

密钥包含已注册应用程序的 API 令牌,请参阅 https://pushover.net/apps。密钥需要与 AlertmanagerConfig 对象位于同一命名空间,并且可由 Prometheus Operator 访问。必须提供 tokentokenFile 中的一个。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].pushoverConfigs[].userKey

Description

密钥包含接收用户用户密钥。密钥需要与 AlertmanagerConfig 对象位于同一命名空间,并且可由 Prometheus Operator 访问。必须提供 userKeyuserKeyFile 中的一个。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].slackConfigs

Description

Slack 配置列表。

Type

array

.spec.receivers[].slackConfigs[]

Description

SlackConfig 通过 Slack 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#slack_config

Type

object

Property Type Description

操作

array

与每个通知一起发送的 Slack 操作列表。

actions[]

object

SlackAction 配置与每个通知一起发送的单个 Slack 操作。有关更多信息,请参阅 https://api.slack.com/docs/message-attachments#action_fieldshttps://api.slack.com/docs/message-buttons

apiURL

object

密钥包含 Slack webhook URL。密钥需要与 AlertmanagerConfig 对象位于同一命名空间,并且可由 Prometheus Operator 访问。

callbackId

string

channel

string

发送通知的频道或用户。

color

string

fallback

string

fields

array

与每个通知一起发送的 Slack 字段列表。

fields[]

object

SlackField 配置与每个通知一起发送的单个 Slack 字段。每个字段必须包含标题、值,并且可以选择包含一个布尔值,以指示该字段是否足够短,可以与其他指定为短的字段一起显示。有关更多信息,请参阅 https://api.slack.com/docs/message-attachments#fields

footer

string

httpConfig

object

HTTP 客户端配置。

iconEmoji

string

iconURL

string

imageURL

string

linkNames

布尔值

mrkdwnIn

array (string)

pretext

string

sendResolved

布尔值

是否通知已解决的警报。

shortFields

布尔值

text

string

thumbURL

string

title

string

titleLink

string

username

string

.spec.receivers[].slackConfigs[].actions

Description

与每个通知一起发送的 Slack 操作列表。

Type

array

.spec.receivers[].slackConfigs[].actions[]

Description

SlackAction 配置与每个通知一起发送的单个 Slack 操作。有关更多信息,请参阅 https://api.slack.com/docs/message-attachments#action_fieldshttps://api.slack.com/docs/message-buttons

Type

object

Required
  • text

  • type

Property Type Description

confirm

object

SlackConfirmationField 通过要求用户再次确认其按钮点击,来防止用户执行破坏性操作或特别重要的决定。有关更多信息,请参阅 https://api.slack.com/docs/interactive-message-field-guide#confirmation_fields

name

string

style

string

text

string

type

string

url

string

value

string

.spec.receivers[].slackConfigs[].actions[].confirm

Description

SlackConfirmationField 通过要求用户再次确认其按钮点击,来防止用户执行破坏性操作或特别重要的决定。有关更多信息,请参阅 https://api.slack.com/docs/interactive-message-field-guide#confirmation_fields

Type

object

Required
  • text

Property Type Description

dismissText

string

okText

string

text

string

title

string

.spec.receivers[].slackConfigs[].apiURL

Description

密钥包含 Slack webhook URL。密钥需要与 AlertmanagerConfig 对象位于同一命名空间,并且可由 Prometheus Operator 访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].slackConfigs[].fields

Description

与每个通知一起发送的 Slack 字段列表。

Type

array

.spec.receivers[].slackConfigs[].fields[]

Description

SlackField 配置与每个通知一起发送的单个 Slack 字段。每个字段必须包含标题、值,并且可以选择包含一个布尔值,以指示该字段是否足够短,可以与其他指定为短的字段一起显示。有关更多信息,请参阅 https://api.slack.com/docs/message-attachments#fields

Type

object

Required
  • title

  • value

Property Type Description

short

布尔值

title

string

value

string

.spec.receivers[].slackConfigs[].httpConfig

Description

HTTP 客户端配置。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].slackConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].slackConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].slackConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].slackConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].slackConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].slackConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].slackConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].slackConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].slackConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].slackConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].slackConfigs[].httpConfig.oauth2.clientSecret

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].slackConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].slackConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].slackConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].slackConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].slackConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].slackConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].slackConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].slackConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].snsConfigs

Description

SNS 配置列表

Type

array

.spec.receivers[].snsConfigs[]

Description

SNSConfig 通过 AWS SNS 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#sns_configs

Type

object

Property Type Description

apiURL

string

SNS API URL,例如 https://sns.us-east-2.amazonaws.com。如果未指定,将使用 SNS SDK 中的 SNS API URL。

attributes

对象 (字符串)

SNS 消息属性。

httpConfig

object

HTTP 客户端配置。

message

string

SNS 通知的消息内容。

phoneNumber

string

如果消息通过 E.164 格式的 SMS 传递,则为电话号码。如果不指定此值,则必须为 TopicARN 或 TargetARN 指定值。

sendResolved

布尔值

是否通知已解决的警报。

sigv4

object

配置 AWS 的签名验证 4 签名过程以对请求进行签名。

subject

string

当消息传递到电子邮件端点时的主题行。

targetARN

string

如果消息通过移动通知传递,则为移动平台端点 ARN。如果不指定此值,则必须为 topic_arn 或 PhoneNumber 指定值。

topicARN

string

SNS 主题 ARN,例如 arn:aws:sns:us-east-2:698519295917:My-Topic。如果不指定此值,则必须为 PhoneNumber 或 TargetARN 指定值。

.spec.receivers[].snsConfigs[].httpConfig

Description

HTTP 客户端配置。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].snsConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].snsConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].snsConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].snsConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].snsConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].snsConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].snsConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].snsConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].snsConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].snsConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].snsConfigs[].httpConfig.oauth2.clientSecret

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].snsConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].snsConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].snsConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].snsConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].snsConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].snsConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].snsConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].snsConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].snsConfigs[].sigv4

Description

配置 AWS 的签名验证 4 签名过程以对请求进行签名。

Type

object

Property Type Description

accessKey

object

AccessKey 是 AWS API 密钥。如果未指定,则使用环境变量 AWS_ACCESS_KEY_ID

profile

string

Profile 是用于身份验证的命名 AWS 配置文件。

region

string

Region 是 AWS 区域。如果为空,则使用默认凭据链中的区域。

roleArn

string

RoleArn 是用于身份验证的命名 AWS 配置文件。

secretKey

object

SecretKey 是 AWS API 密钥。如果未指定,则使用环境变量 AWS_SECRET_ACCESS_KEY

.spec.receivers[].snsConfigs[].sigv4.accessKey

Description

AccessKey 是 AWS API 密钥。如果未指定,则使用环境变量 AWS_ACCESS_KEY_ID

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].snsConfigs[].sigv4.secretKey

Description

SecretKey 是 AWS API 密钥。如果未指定,则使用环境变量 AWS_SECRET_ACCESS_KEY

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].telegramConfigs

Description

Telegram 配置列表。

Type

array

.spec.receivers[].telegramConfigs[]

Description

TelegramConfig 通过 Telegram 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#telegram_config

Type

object

Property Type Description

apiURL

string

Telegram API URL,例如 https://api.telegram.org。如果未指定,将使用默认 API URL。

botToken

object

Telegram 机器人令牌。它与 botTokenFile 互斥。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且可被 Prometheus Operator 访问。

必须提供 botTokenbotTokenFile 中的一个。

botTokenFile

string

从中读取 Telegram 机器人令牌的文件。它与 botToken 互斥。必须提供 botTokenbotTokenFile 中的一个。

需要 Alertmanager >= v0.26.0。

chatID

整数

Telegram 聊天 ID。

disableNotifications

布尔值

禁用 Telegram 通知

httpConfig

object

HTTP 客户端配置。

message

string

消息模板

parseMode

string

Telegram 消息的解析模式

sendResolved

布尔值

是否通知已解决的警报。

.spec.receivers[].telegramConfigs[].botToken

Description

Telegram 机器人令牌。它与 botTokenFile 互斥。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且可被 Prometheus Operator 访问。

必须提供 botTokenbotTokenFile 中的一个。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].telegramConfigs[].httpConfig

Description

HTTP 客户端配置。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].telegramConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].telegramConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].telegramConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].telegramConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].telegramConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].telegramConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].telegramConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].telegramConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].telegramConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].telegramConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].telegramConfigs[].httpConfig.oauth2.clientSecret

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].telegramConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].telegramConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].telegramConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].telegramConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].telegramConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].telegramConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].telegramConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].telegramConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].victoropsConfigs

Description

VictorOps 配置列表。

Type

array

.spec.receivers[].victoropsConfigs[]

Description

VictorOpsConfig 通过 VictorOps 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#victorops_config

Type

object

Property Type Description

apiKey

object

包含与 VictorOps API 通信时使用的 API 密钥的密钥。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且可被 Prometheus Operator 访问。

apiUrl

string

VictorOps API URL。

customFields

array

通知的附加自定义字段。

customFields[]

object

KeyValue 定义一个 (键, 值) 元组。

entityDisplayName

string

包含警报问题的摘要。

httpConfig

object

HTTP 客户端的配置。

messageType

string

描述警报的行为(CRITICAL、WARNING、INFO)。

monitoringTool

string

发出状态消息的监控工具。

路由键

string

用于将警报映射到团队的密钥。

sendResolved

布尔值

是否通知已解决的警报。

stateMessage

string

包含有关警报问题的详细说明。

.spec.receivers[].victoropsConfigs[].apiKey

Description

包含与 VictorOps API 通信时使用的 API 密钥的密钥。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且可被 Prometheus Operator 访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].victoropsConfigs[].customFields

Description

通知的附加自定义字段。

Type

array

.spec.receivers[].victoropsConfigs[].customFields[]

Description

KeyValue 定义一个 (键, 值) 元组。

Type

object

Required
  • key

  • value

Property Type Description

key

string

元组的键。

value

string

元组的值。

.spec.receivers[].victoropsConfigs[].httpConfig

Description

HTTP 客户端的配置。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].victoropsConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].victoropsConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].victoropsConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].victoropsConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].victoropsConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].victoropsConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].victoropsConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].victoropsConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].victoropsConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].victoropsConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].victoropsConfigs[].httpConfig.oauth2.clientSecret

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].victoropsConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].victoropsConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].victoropsConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].victoropsConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].victoropsConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].victoropsConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].victoropsConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].victoropsConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webexConfigs

Description

Webex 配置列表。

Type

array

.spec.receivers[].webexConfigs[]

Description

WebexConfig 通过 Cisco Webex 配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#webex_config

Type

object

Required
  • roomID

Property Type Description

apiURL

string

Webex Teams API URL,例如 https://webexapis.com/v1/messages

httpConfig

object

HTTP 客户端的配置。您必须使用此配置将机器人令牌作为 HTTP Authorization 标头的一部分提供。

message

string

消息模板

roomID

string

要发送消息的 Webex Teams 房间的 ID。

sendResolved

布尔值

是否通知已解决的警报。

.spec.receivers[].webexConfigs[].httpConfig

Description

HTTP 客户端的配置。您必须使用此配置将机器人令牌作为 HTTP Authorization 标头的一部分提供。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].webexConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].webexConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webexConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].webexConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webexConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webexConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].webexConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].webexConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].webexConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].webexConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webexConfigs[].httpConfig.oauth2.clientSecret

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webexConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].webexConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].webexConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].webexConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webexConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].webexConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].webexConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webexConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webhookConfigs

Description

Webhook 配置列表。

Type

array

.spec.receivers[].webhookConfigs[]

Description

WebhookConfig 通过支持 webhook 有效负载的通用接收器配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#webhook_config

Type

object

Property Type Description

httpConfig

object

HTTP 客户端配置。

maxAlerts

整数

每个 Webhook 消息发送的最大警报数。当为 0 时,将包含所有警报。

sendResolved

布尔值

是否通知已解决的警报。

url

string

用于发送 HTTP POST 请求的 URL。urlSecret 优先于 url。应该定义 urlSecreturl 中的一个。

urlSecret

object

包含用于发送 HTTP 请求的 Webhook URL 的密钥。urlSecret 优先于 url。应该定义 urlSecreturl 中的一个。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且可被 Prometheus Operator 访问。

.spec.receivers[].webhookConfigs[].httpConfig

Description

HTTP 客户端配置。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].webhookConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].webhookConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webhookConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].webhookConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webhookConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webhookConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].webhookConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].webhookConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].webhookConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].webhookConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webhookConfigs[].httpConfig.oauth2.clientSecret

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webhookConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].webhookConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].webhookConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].webhookConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webhookConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].webhookConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].webhookConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webhookConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].webhookConfigs[].urlSecret

Description

包含用于发送 HTTP 请求的 Webhook URL 的密钥。urlSecret 优先于 url。应该定义 urlSecreturl 中的一个。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且可被 Prometheus Operator 访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].wechatConfigs

Description

WeChat 配置列表。

Type

array

.spec.receivers[].wechatConfigs[]

Description

WeChatConfig 通过微信配置通知。请参阅 https://prometheus.ac.cn/docs/alerting/latest/configuration/#wechat_config

Type

object

Property Type Description

agentID

string

apiSecret

object

包含微信 API 密钥的 Secret 的键。该 Secret 需要与 AlertmanagerConfig 对象在同一命名空间中,并且可被 Prometheus Operator 访问。

apiURL

string

微信 API URL。

corpID

string

用于身份验证的企业 ID。

httpConfig

object

HTTP 客户端配置。

message

string

微信 API 定义的 API 请求数据。

messageType

string

sendResolved

布尔值

是否通知已解决的警报。

toParty

string

toTag

string

toUser

string

.spec.receivers[].wechatConfigs[].apiSecret

Description

包含微信 API 密钥的 Secret 的键。该 Secret 需要与 AlertmanagerConfig 对象在同一命名空间中,并且可被 Prometheus Operator 访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].wechatConfigs[].httpConfig

Description

HTTP 客户端配置。

Type

object

Property Type Description

authorization

object

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

basicAuth

object

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

bearerTokenSecret

object

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

followRedirects

布尔值

FollowRedirects 指定客户端是否应遵循 HTTP 3xx 重定向。

oauth2

object

用于获取目标令牌的 OAuth2 客户端凭据。

proxyURL

string

可选的代理 URL。

tlsConfig

object

客户端的 TLS 配置。

.spec.receivers[].wechatConfigs[].httpConfig.authorization

Description

客户端的授权头配置。这与 BasicAuth 互斥,仅在 Alertmanager v0.22+ 开始可用。

Type

object

Property Type Description

credentials

object

在命名空间中选择包含身份验证凭据的 Secret 的键。

type

string

定义身份验证类型。该值不区分大小写。

"Basic" 不是支持的值。

默认值:"Bearer"

.spec.receivers[].wechatConfigs[].httpConfig.authorization.credentials

Description

在命名空间中选择包含身份验证凭据的 Secret 的键。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].wechatConfigs[].httpConfig.basicAuth

Description

客户端的 BasicAuth。这与 Authorization 互斥。如果两者都定义,则 BasicAuth 优先。

Type

object

Property Type Description

password

object

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

username

object

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

.spec.receivers[].wechatConfigs[].httpConfig.basicAuth.password

Description

password 指定一个 Secret 的键,其中包含用于身份验证的密码。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].wechatConfigs[].httpConfig.basicAuth.username

Description

username 指定一个 Secret 的键,其中包含用于身份验证的用户名。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].wechatConfigs[].httpConfig.bearerTokenSecret

Description

包含客户端用于身份验证的 bearer token 的密钥的键。该密钥需要与 AlertmanagerConfig 对象在同一命名空间中,并且 Prometheus Operator 可以访问。

Type

object

Required
  • key

  • name

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

要从中选择的对象命名空间中的密钥名称。

.spec.receivers[].wechatConfigs[].httpConfig.oauth2

Description

用于获取目标令牌的 OAuth2 客户端凭据。

Type

object

Required
  • clientId

  • clientSecret

  • tokenUrl

Property Type Description

clientId

object

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

clientSecret

object

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

endpointParams

对象 (字符串)

endpointParams 配置要附加到令牌 URL 的 HTTP 参数。

scopes

array (string)

scopes 定义用于令牌请求的 OAuth2 作用域。

tokenUrl

string

tokenURL 配置从中获取令牌的 URL。

.spec.receivers[].wechatConfigs[].httpConfig.oauth2.clientId

Description

clientId 指定一个 Secret 或 ConfigMap 的键,其中包含 OAuth2 客户端的 ID。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].wechatConfigs[].httpConfig.oauth2.clientId.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].wechatConfigs[].httpConfig.oauth2.clientId.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].wechatConfigs[].httpConfig.oauth2.clientSecret

Description

clientSecret 指定一个 Secret 的键,其中包含 OAuth2 客户端的密钥。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].wechatConfigs[].httpConfig.tlsConfig

Description

客户端的 TLS 配置。

Type

object

Property Type Description

ca

object

验证服务器证书时使用的证书颁发机构。

cert

object

执行客户端身份验证时要呈现的客户端证书。

insecureSkipVerify

布尔值

禁用目标证书验证。

keySecret

object

包含目标客户端密钥文件的 Secret。

serverName

string

用于验证目标主机名。

.spec.receivers[].wechatConfigs[].httpConfig.tlsConfig.ca

Description

验证服务器证书时使用的证书颁发机构。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].wechatConfigs[].httpConfig.tlsConfig.ca.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].wechatConfigs[].httpConfig.tlsConfig.ca.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].wechatConfigs[].httpConfig.tlsConfig.cert

Description

执行客户端身份验证时要呈现的客户端证书。

Type

object

Property Type Description

configMap

object

包含用于目标的数据的 ConfigMap。

secret

object

包含用于目标的数据的 Secret。

.spec.receivers[].wechatConfigs[].httpConfig.tlsConfig.cert.configMap

Description

包含用于目标的数据的 ConfigMap。

Type

object

Required
  • key

Property Type Description

key

string

要选择的键。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义 ConfigMap 或其键

.spec.receivers[].wechatConfigs[].httpConfig.tlsConfig.cert.secret

Description

包含用于目标的数据的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.receivers[].wechatConfigs[].httpConfig.tlsConfig.keySecret

Description

包含目标客户端密钥文件的 Secret。

Type

object

Required
  • key

Property Type Description

key

string

要从中选择的密钥的键。必须是有效的密钥。

name

string

引用对象的名称。此字段实际上是必需的,但由于向后兼容性,允许为空。此处具有空值的此类实例几乎肯定是错误的。TODO:添加其他有用的字段。apiVersion、kind、uid?更多信息:https://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/names/#names TODO:当 controller-gen 不需要时删除 kubebuilder:default https://github.com/kubernetes-sigs/kubebuilder/issues/3896

optional

布尔值

指定是否必须定义密钥或其键

.spec.route

Description

与资源命名空间匹配的警报的 Alertmanager 路由定义。如果存在,它将作为第一级路由添加到生成的 Alertmanager 配置中。

Type

object

Property Type Description

activeTimeIntervals

array (string)

ActiveTimeIntervals 是一个时间间隔名称列表,表示此路由应该何时处于活动状态。

continue

布尔值

布尔值,指示警报是否应继续匹配后续的同级节点。对于第一级路由,Prometheus Operator 将始终将其覆盖为 true。

groupBy

array (string)

要分组的标签列表。标签不能重复(唯一列表)。特殊标签 "…​" (按所有可能的标签聚合),如果提供,则必须是列表中的唯一元素。

groupInterval

string

在发送更新的通知之前等待多长时间。必须匹配正则表达式`^(()y)?(([0-9])w)?(()d)?(([0-9])h)?(()m)?(([0-9])s)?(([0-9]+)ms)?$` 例如: "5m"

groupWait

string

在发送初始通知之前等待多长时间。必须匹配正则表达式`^(()y)?(([0-9])w)?(()d)?(([0-9])h)?(()m)?(([0-9])s)?(([0-9]+)ms)?$` 例如: "30s"

matchers

array

警报标签应匹配的匹配器列表。对于第一级路由,运算符会删除 `namespace` 标签上的任何现有相等和正则表达式匹配器,并添加一个 `namespace: <对象命名空间>` 匹配器。

matchers[]

object

Matcher 定义如何在警报标签上进行匹配。

muteTimeIntervals

array (string)

注意:此注释适用于上面的字段定义,但出现在下面,否则它会被包含在生成的清单中。CRD 模式目前不支持自引用类型(请参阅https://github.com/kubernetes/kubernetes/issues/62872)。我们必须使用替代类型来规避限制。缺点是 Kube API 无法验证数据,除了它是有效的 JSON 表示形式之外。MuteTimeIntervals 是一个时间间隔名称列表,当匹配时将使此路由静音。

receiver

string

此路由的接收器名称。如果非空,则应在 `receivers` 字段中列出。

repeatInterval

string

在重复上一次通知之前等待多长时间。必须匹配正则表达式`^(()y)?(([0-9])w)?(()d)?(([0-9])h)?(()m)?(([0-9])s)?(([0-9]+)ms)?$` 例如: "4h"

routes

数组 (未定义)

子路由。

.spec.route.matchers

Description

警报标签应匹配的匹配器列表。对于第一级路由,运算符会删除 `namespace` 标签上的任何现有相等和正则表达式匹配器,并添加一个 `namespace: <对象命名空间>` 匹配器。

Type

array

.spec.route.matchers[]

Description

Matcher 定义如何在警报标签上进行匹配。

Type

object

Required
  • name

Property Type Description

matchType

string

匹配运算符,取值可以是 `=` (等于)、`!=` (不等于)、`=~` (正则表达式匹配)或 `!~` (非正则表达式匹配)之一。否定运算符(`!=` 和 `!~`)需要 Alertmanager >= v0.22.0。

name

string

要匹配的标签。

value

string

要匹配的标签值。

.spec.timeIntervals

Description

指定路由何时应静音或处于活动状态的 TimeInterval 列表。

Type

array

.spec.timeIntervals[]

Description

TimeInterval 指定通知将静音或处于活动状态的时间段。

Type

object

Property Type Description

name

string

时间间隔的名称。

timeIntervals

array

TimeIntervals 是 TimePeriod 的列表。

timeIntervals[]

object

TimePeriod 描述时间段。

.spec.timeIntervals[].timeIntervals

Description

TimeIntervals 是 TimePeriod 的列表。

Type

array

.spec.timeIntervals[].timeIntervals[]

Description

TimePeriod 描述时间段。

Type

object

Property Type Description

daysOfMonth

array

DaysOfMonth 是 DayOfMonthRange 的列表

daysOfMonth[]

object

DayOfMonthRange 是一个从 1 开始的包含月份中天的范围

months

array (string)

Months 是 MonthRange 的列表

times

array

Times 是 TimeRange 的列表

times[]

object

TimeRange 定义了 24 小时格式的开始时间和结束时间

weekdays

array (string)

Weekdays 是 WeekdayRange 的列表

years

array (string)

Years 是 YearRange 的列表

.spec.timeIntervals[].timeIntervals[].daysOfMonth

Description

DaysOfMonth 是 DayOfMonthRange 的列表

Type

array

.spec.timeIntervals[].timeIntervals[].daysOfMonth[]

Description

DayOfMonthRange 是一个从 1 开始的包含月份中天的范围

Type

object

Property Type Description

end

整数

包含范围的结束

start

整数

包含范围的开始

.spec.timeIntervals[].timeIntervals[].times

Description

Times 是 TimeRange 的列表

Type

array

.spec.timeIntervals[].timeIntervals[].times[]

Description

TimeRange 定义了 24 小时格式的开始时间和结束时间

Type

object

Property Type Description

endTime

string

EndTime 是 24 小时格式的结束时间。

startTime

string

StartTime 是 24 小时格式的开始时间。

API 端点

以下 API 端点可用

  • /apis/monitoring.coreos.com/v1beta1/alertmanagerconfigs

    • GET:列出 AlertmanagerConfig 类型的对象

  • /apis/monitoring.coreos.com/v1beta1/namespaces/{namespace}/alertmanagerconfigs

    • DELETE:删除 AlertmanagerConfig 集合

    • GET:列出 AlertmanagerConfig 类型的对象

    • POST:创建 AlertmanagerConfig

  • /apis/monitoring.coreos.com/v1beta1/namespaces/{namespace}/alertmanagerconfigs/{name}

    • DELETE:删除 AlertmanagerConfig

    • GET:读取指定的 AlertmanagerConfig

    • PATCH:部分更新指定的 AlertmanagerConfig

    • PUT:替换指定的 AlertmanagerConfig

/apis/monitoring.coreos.com/v1beta1/alertmanagerconfigs

HTTP 方法

GET

Description

列出 AlertmanagerConfig 类型的对象

表 1. HTTP 响应
HTTP 代码 响应正文

200 - 成功

AlertmanagerConfigList 模式

401 - 未授权

/apis/monitoring.coreos.com/v1beta1/namespaces/{namespace}/alertmanagerconfigs

HTTP 方法

DELETE

Description

删除 AlertmanagerConfig 集合

表 2. HTTP 响应
HTTP 代码 响应正文

200 - 成功

Status 模式

401 - 未授权

HTTP 方法

GET

Description

列出 AlertmanagerConfig 类型的对象

表 3. HTTP 响应
HTTP 代码 响应正文

200 - 成功

AlertmanagerConfigList 模式

401 - 未授权

HTTP 方法

POST

Description

创建 AlertmanagerConfig

表 4. 查询参数
参数 Type Description

dryRun

string

如果存在,则表示不应持久化修改。无效或无法识别的 dryRun 指令将导致错误响应,并且不会进一步处理请求。有效值为:- All:将处理所有 dry run 阶段

fieldValidation

string

fieldValidation 指示服务器如何处理请求 (POST/PUT/PATCH) 中包含未知或重复字段的对象。有效值为:- Ignore:这将忽略从对象中静默删除的任何未知字段,并将忽略解码器遇到的除最后一个重复字段之外的所有字段。这是 v1.23 之前的默认行为。- Warn:这将通过标准警告响应标头为从对象中删除的每个未知字段以及遇到的每个重复字段发送警告。如果没有其他错误,请求仍然会成功,并且只会保留任何重复字段的最后一个字段。这是 v1.23+ 中的默认值 - Strict:如果从对象中删除任何未知字段,或者如果存在任何重复字段,这将导致请求失败并出现 BadRequest 错误。服务器返回的错误将包含所有遇到的未知字段和重复字段。

表 5. 正文参数
参数 Type Description

body

AlertmanagerConfig 模式

表 6. HTTP 响应
HTTP 代码 响应正文

200 - 成功

AlertmanagerConfig 模式

201 - 已创建

AlertmanagerConfig 模式

202 - 已接受

AlertmanagerConfig 模式

401 - 未授权

/apis/monitoring.coreos.com/v1beta1/namespaces/{namespace}/alertmanagerconfigs/{name}

表 7. 全局路径参数
参数 Type Description

name

string

AlertmanagerConfig 的名称

HTTP 方法

DELETE

Description

删除 AlertmanagerConfig

表 8. 查询参数
参数 Type Description

dryRun

string

如果存在,则表示不应持久化修改。无效或无法识别的 dryRun 指令将导致错误响应,并且不会进一步处理请求。有效值为:- All:将处理所有 dry run 阶段

表 9. HTTP 响应
HTTP 代码 响应正文

200 - 成功

Status 模式

202 - 已接受

Status 模式

401 - 未授权

HTTP 方法

GET

Description

读取指定的 AlertmanagerConfig

表 10. HTTP 响应
HTTP 代码 响应正文

200 - 成功

AlertmanagerConfig 模式

401 - 未授权

HTTP 方法

PATCH

Description

部分更新指定的 AlertmanagerConfig

表 11. 查询参数
参数 Type Description

dryRun

string

如果存在,则表示不应持久化修改。无效或无法识别的 dryRun 指令将导致错误响应,并且不会进一步处理请求。有效值为:- All:将处理所有 dry run 阶段

fieldValidation

string

fieldValidation 指示服务器如何处理请求 (POST/PUT/PATCH) 中包含未知或重复字段的对象。有效值为:- Ignore:这将忽略从对象中静默删除的任何未知字段,并将忽略解码器遇到的除最后一个重复字段之外的所有字段。这是 v1.23 之前的默认行为。- Warn:这将通过标准警告响应标头为从对象中删除的每个未知字段以及遇到的每个重复字段发送警告。如果没有其他错误,请求仍然会成功,并且只会保留任何重复字段的最后一个字段。这是 v1.23+ 中的默认值 - Strict:如果从对象中删除任何未知字段,或者如果存在任何重复字段,这将导致请求失败并出现 BadRequest 错误。服务器返回的错误将包含所有遇到的未知字段和重复字段。

表 12. HTTP 响应
HTTP 代码 响应正文

200 - 成功

AlertmanagerConfig 模式

401 - 未授权

HTTP 方法

PUT

Description

替换指定的 AlertmanagerConfig

表 13. 查询参数
参数 Type Description

dryRun

string

如果存在,则表示不应持久化修改。无效或无法识别的 dryRun 指令将导致错误响应,并且不会进一步处理请求。有效值为:- All:将处理所有 dry run 阶段

fieldValidation

string

fieldValidation 指示服务器如何处理请求 (POST/PUT/PATCH) 中包含未知或重复字段的对象。有效值为:- Ignore:这将忽略从对象中静默删除的任何未知字段,并将忽略解码器遇到的除最后一个重复字段之外的所有字段。这是 v1.23 之前的默认行为。- Warn:这将通过标准警告响应标头为从对象中删除的每个未知字段以及遇到的每个重复字段发送警告。如果没有其他错误,请求仍然会成功,并且只会保留任何重复字段的最后一个字段。这是 v1.23+ 中的默认值 - Strict:如果从对象中删除任何未知字段,或者如果存在任何重复字段,这将导致请求失败并出现 BadRequest 错误。服务器返回的错误将包含所有遇到的未知字段和重复字段。

表 14. 正文参数
参数 Type Description

body

AlertmanagerConfig 模式

表 15. HTTP 响应
HTTP 代码 响应正文

200 - 成功

AlertmanagerConfig 模式

201 - 已创建

AlertmanagerConfig 模式

401 - 未授权