additionalPeers
|
array (string)
|
AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster. |
affinity
|
object
|
If specified, the pod’s scheduling constraints. |
alertmanagerConfigMatcherStrategy
|
object
|
AlertmanagerConfigMatcherStrategy defines how AlertmanagerConfig objects
process incoming alerts. |
alertmanagerConfigNamespaceSelector
|
object
|
Namespaces to be selected for AlertmanagerConfig discovery. If nil, only
check own namespace. |
alertmanagerConfigSelector
|
object
|
AlertmanagerConfigs to be selected for to merge and configure Alertmanager with. |
alertmanagerConfiguration
|
object
|
alertmanagerConfiguration specifies the configuration of Alertmanager.
If defined, it takes precedence over the configSecret field.
This is an experimental feature, it may change in any upcoming release
in a breaking way. |
automountServiceAccountToken
|
boolean
|
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in the pod.
If the service account has automountServiceAccountToken: true , set the field to false to opt out of automounting API credentials. |
baseImage
|
string
|
Base image that is used to deploy pods, without tag.
Deprecated: use 'image' instead. |
clusterAdvertiseAddress
|
string
|
ClusterAdvertiseAddress is the explicit address to advertise in cluster.
Needs to be provided for non RFC1918 [1] (public) addresses.
[1] RFC1918: https://tools.ietf.org/html/rfc1918 |
clusterGossipInterval
|
string
|
Interval between gossip attempts. |
clusterLabel
|
string
|
Defines the identifier that uniquely identifies the Alertmanager cluster.
You should only set it when the Alertmanager cluster includes Alertmanager instances which are external to this Alertmanager resource. In practice, the addresses of the external instances are provided via the .spec.additionalPeers field. |
clusterPeerTimeout
|
string
|
Timeout for cluster peering. |
clusterPushpullInterval
|
string
|
Interval between pushpull attempts. |
configMaps
|
array (string)
|
ConfigMaps is a list of ConfigMaps in the same namespace as the Alertmanager
object, which shall be mounted into the Alertmanager Pods.
Each ConfigMap is added to the StatefulSet definition as a volume named configmap-<configmap-name> .
The ConfigMaps are mounted into /etc/alertmanager/configmaps/<configmap-name> in the 'alertmanager' container. |
configSecret
|
string
|
ConfigSecret is the name of a Kubernetes Secret in the same namespace as the
Alertmanager object, which contains the configuration for this Alertmanager
instance. If empty, it defaults to alertmanager-<alertmanager-name> .
The Alertmanager configuration should be available under the
alertmanager.yaml key. Additional keys from the original secret are
copied to the generated secret and mounted into the
/etc/alertmanager/config directory in the alertmanager container.
If either the secret or the alertmanager.yaml key is missing, the
operator provisions a minimal Alertmanager configuration with one empty
receiver (effectively dropping alert notifications). |
containers
|
array
|
Containers allows injecting additional containers. This is meant to
allow adding an authentication proxy to an Alertmanager pod.
Containers described here modify an operator generated container if they
share the same name and modifications are done via a strategic merge
patch. The current container names are: alertmanager and
config-reloader . Overriding containers is entirely outside the scope
of what the maintainers will support and by doing so, you accept that
this behaviour may break at any time without notice. |
containers[]
|
object
|
A single application container that you want to run within a pod. |
dnsConfig
|
object
|
Defines the DNS configuration for the pods. |
dnsPolicy
|
string
|
Defines the DNS policy for the pods. |
enableFeatures
|
array (string)
|
Enable access to Alertmanager feature flags. By default, no features are enabled.
Enabling features which are disabled by default is entirely outside the
scope of what the maintainers will support and by doing so, you accept
that this behaviour may break at any time without notice.
It requires Alertmanager >= 0.27.0. |
externalUrl
|
string
|
The external URL the Alertmanager instances will be available under. This is
necessary to generate correct URLs. This is necessary if Alertmanager is not
served from root of a DNS name. |
forceEnableClusterMode
|
boolean
|
ForceEnableClusterMode ensures Alertmanager does not deactivate the cluster mode when running with a single replica.
Use case is e.g. spanning an Alertmanager cluster across Kubernetes clusters with a single replica in each. |
hostAliases
|
array
|
Pods' hostAliases configuration |
hostAliases[]
|
object
|
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
pod’s hosts file. |
image
|
string
|
Image if specified has precedence over baseImage, tag and sha
combinations. Specifying the version is still necessary to ensure the
Prometheus Operator knows what version of Alertmanager is being
configured. |
imagePullPolicy
|
string
|
Image pull policy for the 'alertmanager', 'init-config-reloader' and 'config-reloader' containers.
See https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy for more details. |
imagePullSecrets
|
array
|
An optional list of references to secrets in the same namespace
to use for pulling prometheus and alertmanager images from registries
see http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod |
imagePullSecrets[]
|
object
|
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace. |
initContainers
|
array
|
InitContainers allows adding initContainers to the pod definition. Those can be used to e.g.
fetch secrets for injection into the Alertmanager configuration from external sources. Any
errors during the execution of an initContainer will lead to a restart of the Pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
InitContainers described here modify an operator
generated init containers if they share the same name and modifications are
done via a strategic merge patch. The current init container name is:
init-config-reloader . Overriding init containers is entirely outside the
scope of what the maintainers will support and by doing so, you accept that
this behaviour may break at any time without notice. |
initContainers[]
|
object
|
A single application container that you want to run within a pod. |
listenLocal
|
boolean
|
ListenLocal makes the Alertmanager server listen on loopback, so that it
does not bind against the Pod IP. Note this is only for the Alertmanager
UI, not the gossip communication. |
logFormat
|
string
|
Log format for Alertmanager to be configured with. |
logLevel
|
string
|
Log level for Alertmanager to be configured with. |
minReadySeconds
|
integer
|
Minimum number of seconds for which a newly created pod should be ready
without any of its container crashing for it to be considered available.
Defaults to 0 (pod will be considered available as soon as it is ready)
This is an alpha field from kubernetes 1.22 until 1.24 which requires enabling the StatefulSetMinReadySeconds feature gate. |
nodeSelector
|
object (string)
|
Define which Nodes the Pods are scheduled on. |
paused
|
boolean
|
If set to true all actions on the underlying managed objects are not
goint to be performed, except for delete actions. |
podMetadata
|
object
|
PodMetadata configures labels and annotations which are propagated to the Alertmanager pods.
The following items are reserved and cannot be overridden:
* "alertmanager" label, set to the name of the Alertmanager instance.
* "app.kubernetes.io/instance" label, set to the name of the Alertmanager instance.
* "app.kubernetes.io/managed-by" label, set to "prometheus-operator".
* "app.kubernetes.io/name" label, set to "alertmanager".
* "app.kubernetes.io/version" label, set to the Alertmanager version.
* "kubectl.kubernetes.io/default-container" annotation, set to "alertmanager". |
portName
|
string
|
Port name used for the pods and governing service.
Defaults to web . |
priorityClassName
|
string
|
Priority class assigned to the Pods |
replicas
|
integer
|
Size is the expected size of the alertmanager cluster. The controller will
eventually make the size of the running cluster equal to the expected
size. |
resources
|
object
|
Define resources requests and limits for single Pods. |
retention
|
string
|
Time duration Alertmanager shall retain data for. Default is '120h',
and must match the regular expression [0-9]+(ms|s|m|h) (milliseconds seconds minutes hours). |
routePrefix
|
string
|
The route prefix Alertmanager registers HTTP handlers for. This is useful,
if using ExternalURL and a proxy is rewriting HTTP routes of a request,
and the actual ExternalURL is still true, but the server serves requests
under a different route prefix. For example for use with kubectl proxy . |
secrets
|
array (string)
|
Secrets is a list of Secrets in the same namespace as the Alertmanager
object, which shall be mounted into the Alertmanager Pods.
Each Secret is added to the StatefulSet definition as a volume named secret-<secret-name> .
The Secrets are mounted into /etc/alertmanager/secrets/<secret-name> in the 'alertmanager' container. |
securityContext
|
object
|
SecurityContext holds pod-level security attributes and common container settings.
This defaults to the default PodSecurityContext. |
serviceAccountName
|
string
|
ServiceAccountName is the name of the ServiceAccount to use to run the
Prometheus Pods. |
sha
|
string
|
SHA of Alertmanager container image to be deployed. Defaults to the value of version .
Similar to a tag, but the SHA explicitly deploys an immutable container image.
Version and Tag are ignored if SHA is set.
Deprecated: use 'image' instead. The image digest can be specified as part of the image URL. |
storage
|
object
|
Storage is the definition of how storage will be used by the Alertmanager
instances. |
tag
|
string
|
Tag of Alertmanager container image to be deployed. Defaults to the value of version .
Version is ignored if Tag is set.
Deprecated: use 'image' instead. The image tag can be specified as part of the image URL. |
tolerations
|
array
|
If specified, the pod’s tolerations. |
tolerations[]
|
object
|
The pod this Toleration is attached to tolerates any taint that matches
the triple <key,value,effect> using the matching operator <operator>. |
topologySpreadConstraints
|
array
|
If specified, the pod’s topology spread constraints. |
topologySpreadConstraints[]
|
object
|
TopologySpreadConstraint specifies how to spread matching pods among the given topology. |
version
|
string
|
Version the cluster should be on. |
volumeMounts
|
array
|
VolumeMounts allows configuration of additional VolumeMounts on the output StatefulSet definition.
VolumeMounts specified will be appended to other VolumeMounts in the alertmanager container,
that are generated as a result of StorageSpec objects. |
volumeMounts[]
|
object
|
VolumeMount describes a mounting of a Volume within a container. |
volumes
|
array
|
Volumes allows configuration of additional volumes on the output StatefulSet definition.
Volumes specified will be appended to other volumes that are generated as a result of
StorageSpec objects. |
volumes[]
|
object
|
Volume represents a named volume in a pod that may be accessed by any container in the pod. |
web
|
object
|
Defines the web command line flags when starting Alertmanager. |