Class AlertmanagerSpec

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<AlertmanagerSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class AlertmanagerSpec
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<AlertmanagerSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
    See Also:
    Serialized Form
    • Constructor Detail

      • AlertmanagerSpec

        public AlertmanagerSpec()
        No args constructor for use in serialization
    • Method Detail

      • getAdditionalArgs

        public List<Argument> getAdditionalArgs()
        AdditionalArgs allows setting additional arguments for the 'Alertmanager' container. It is intended for e.g. activating hidden flags which are not supported by the dedicated configuration options yet. The arguments are passed as-is to the Alertmanager container which may cause issues if they are invalid or not supported by the given Alertmanager version.
      • setAdditionalArgs

        public void setAdditionalArgs​(List<Argument> additionalArgs)
        AdditionalArgs allows setting additional arguments for the 'Alertmanager' container. It is intended for e.g. activating hidden flags which are not supported by the dedicated configuration options yet. The arguments are passed as-is to the Alertmanager container which may cause issues if they are invalid or not supported by the given Alertmanager version.
      • getAdditionalPeers

        public List<String> getAdditionalPeers()
        AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.
      • setAdditionalPeers

        public void setAdditionalPeers​(List<String> additionalPeers)
        AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.
      • getAffinity

        public io.fabric8.kubernetes.api.model.Affinity getAffinity()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setAffinity

        public void setAffinity​(io.fabric8.kubernetes.api.model.Affinity affinity)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getAlertmanagerConfigMatcherStrategy

        public AlertmanagerConfigMatcherStrategy getAlertmanagerConfigMatcherStrategy()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setAlertmanagerConfigMatcherStrategy

        public void setAlertmanagerConfigMatcherStrategy​(AlertmanagerConfigMatcherStrategy alertmanagerConfigMatcherStrategy)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getAlertmanagerConfigNamespaceSelector

        public io.fabric8.kubernetes.api.model.LabelSelector getAlertmanagerConfigNamespaceSelector()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setAlertmanagerConfigNamespaceSelector

        public void setAlertmanagerConfigNamespaceSelector​(io.fabric8.kubernetes.api.model.LabelSelector alertmanagerConfigNamespaceSelector)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getAlertmanagerConfigSelector

        public io.fabric8.kubernetes.api.model.LabelSelector getAlertmanagerConfigSelector()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setAlertmanagerConfigSelector

        public void setAlertmanagerConfigSelector​(io.fabric8.kubernetes.api.model.LabelSelector alertmanagerConfigSelector)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getAlertmanagerConfiguration

        public AlertmanagerConfiguration getAlertmanagerConfiguration()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setAlertmanagerConfiguration

        public void setAlertmanagerConfiguration​(AlertmanagerConfiguration alertmanagerConfiguration)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getAutomountServiceAccountToken

        public Boolean getAutomountServiceAccountToken()
        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.
      • setAutomountServiceAccountToken

        public void setAutomountServiceAccountToken​(Boolean automountServiceAccountToken)
        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.
      • getBaseImage

        public String getBaseImage()
        Base image that is used to deploy pods, without tag. Deprecated: use 'image' instead.
      • setBaseImage

        public void setBaseImage​(String baseImage)
        Base image that is used to deploy pods, without tag. Deprecated: use 'image' instead.
      • getClusterAdvertiseAddress

        public String getClusterAdvertiseAddress()
        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
      • setClusterAdvertiseAddress

        public void setClusterAdvertiseAddress​(String clusterAdvertiseAddress)
        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
      • getClusterGossipInterval

        public String getClusterGossipInterval()
        Interval between gossip attempts.
      • setClusterGossipInterval

        public void setClusterGossipInterval​(String clusterGossipInterval)
        Interval between gossip attempts.
      • getClusterLabel

        public String getClusterLabel()
        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.
      • setClusterLabel

        public void setClusterLabel​(String clusterLabel)
        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.
      • getClusterPeerTimeout

        public String getClusterPeerTimeout()
        Timeout for cluster peering.
      • setClusterPeerTimeout

        public void setClusterPeerTimeout​(String clusterPeerTimeout)
        Timeout for cluster peering.
      • getClusterPushpullInterval

        public String getClusterPushpullInterval()
        Interval between pushpull attempts.
      • setClusterPushpullInterval

        public void setClusterPushpullInterval​(String clusterPushpullInterval)
        Interval between pushpull attempts.
      • getClusterTLS

        public ClusterTLSConfig getClusterTLS()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setClusterTLS

        public void setClusterTLS​(ClusterTLSConfig clusterTLS)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getConfigMaps

        public List<String> getConfigMaps()
        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.
      • setConfigMaps

        public void setConfigMaps​(List<String> configMaps)
        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.
      • getConfigSecret

        public String getConfigSecret()
        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).

      • setConfigSecret

        public void setConfigSecret​(String configSecret)
        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).

      • getContainers

        public List<io.fabric8.kubernetes.api.model.Container> getContainers()
        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.
      • setContainers

        public void setContainers​(List<io.fabric8.kubernetes.api.model.Container> containers)
        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.
      • getDnsConfig

        public PodDNSConfig getDnsConfig()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setDnsConfig

        public void setDnsConfig​(PodDNSConfig dnsConfig)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getDnsPolicy

        public String getDnsPolicy()
        Defines the DNS policy for the pods.
      • setDnsPolicy

        public void setDnsPolicy​(String dnsPolicy)
        Defines the DNS policy for the pods.
      • getEnableFeatures

        public List<String> getEnableFeatures()
        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.

      • setEnableFeatures

        public void setEnableFeatures​(List<String> enableFeatures)
        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.

      • getEnableServiceLinks

        public Boolean getEnableServiceLinks()
        Indicates whether information about services should be injected into pod's environment variables
      • setEnableServiceLinks

        public void setEnableServiceLinks​(Boolean enableServiceLinks)
        Indicates whether information about services should be injected into pod's environment variables
      • getExternalUrl

        public String getExternalUrl()
        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.
      • setExternalUrl

        public void setExternalUrl​(String externalUrl)
        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.
      • getForceEnableClusterMode

        public Boolean getForceEnableClusterMode()
        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.
      • setForceEnableClusterMode

        public void setForceEnableClusterMode​(Boolean forceEnableClusterMode)
        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.
      • getHostAliases

        public List<HostAlias> getHostAliases()
        Pods' hostAliases configuration
      • setHostAliases

        public void setHostAliases​(List<HostAlias> hostAliases)
        Pods' hostAliases configuration
      • getHostUsers

        public Boolean getHostUsers()
        HostUsers supports the user space in Kubernetes.


        More info: https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/


        The feature requires at least Kubernetes 1.28 with the `UserNamespacesSupport` feature gate enabled. Starting Kubernetes 1.33, the feature is enabled by default.

      • setHostUsers

        public void setHostUsers​(Boolean hostUsers)
        HostUsers supports the user space in Kubernetes.


        More info: https://kubernetes.io/docs/tasks/configure-pod-container/user-namespaces/


        The feature requires at least Kubernetes 1.28 with the `UserNamespacesSupport` feature gate enabled. Starting Kubernetes 1.33, the feature is enabled by default.

      • getImage

        public String getImage()
        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.
      • setImage

        public void setImage​(String image)
        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.
      • getImagePullPolicy

        public String getImagePullPolicy()
        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.


        Possible enum values:

        - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.

        - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.

        - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present

      • setImagePullPolicy

        public void setImagePullPolicy​(String imagePullPolicy)
        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.


        Possible enum values:

        - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.

        - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.

        - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present

      • getImagePullSecrets

        public List<io.fabric8.kubernetes.api.model.LocalObjectReference> getImagePullSecrets()
        An optional list of references to secrets in the same namespace to use for pulling prometheus and alertmanager images from registries see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
      • setImagePullSecrets

        public void setImagePullSecrets​(List<io.fabric8.kubernetes.api.model.LocalObjectReference> imagePullSecrets)
        An optional list of references to secrets in the same namespace to use for pulling prometheus and alertmanager images from registries see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
      • getInitContainers

        public List<io.fabric8.kubernetes.api.model.Container> getInitContainers()
        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.
      • setInitContainers

        public void setInitContainers​(List<io.fabric8.kubernetes.api.model.Container> initContainers)
        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.
      • getLimits

        public AlertmanagerLimitsSpec getLimits()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setLimits

        public void setLimits​(AlertmanagerLimitsSpec limits)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getListenLocal

        public Boolean getListenLocal()
        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.
      • setListenLocal

        public void setListenLocal​(Boolean listenLocal)
        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.
      • getLogFormat

        public String getLogFormat()
        Log format for Alertmanager to be configured with.
      • setLogFormat

        public void setLogFormat​(String logFormat)
        Log format for Alertmanager to be configured with.
      • getLogLevel

        public String getLogLevel()
        Log level for Alertmanager to be configured with.
      • setLogLevel

        public void setLogLevel​(String logLevel)
        Log level for Alertmanager to be configured with.
      • getMinReadySeconds

        public Integer getMinReadySeconds()
        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.


        If unset, pods will be considered available as soon as they are ready.

      • setMinReadySeconds

        public void setMinReadySeconds​(Integer minReadySeconds)
        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.


        If unset, pods will be considered available as soon as they are ready.

      • getNodeSelector

        public Map<String,​String> getNodeSelector()
        Define which Nodes the Pods are scheduled on.
      • setNodeSelector

        public void setNodeSelector​(Map<String,​String> nodeSelector)
        Define which Nodes the Pods are scheduled on.
      • getPaused

        public Boolean getPaused()
        If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.
      • setPaused

        public void setPaused​(Boolean paused)
        If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.
      • getPersistentVolumeClaimRetentionPolicy

        public io.fabric8.kubernetes.api.model.apps.StatefulSetPersistentVolumeClaimRetentionPolicy getPersistentVolumeClaimRetentionPolicy()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setPersistentVolumeClaimRetentionPolicy

        public void setPersistentVolumeClaimRetentionPolicy​(io.fabric8.kubernetes.api.model.apps.StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getPodMetadata

        public EmbeddedObjectMetadata getPodMetadata()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setPodMetadata

        public void setPodMetadata​(EmbeddedObjectMetadata podMetadata)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getPortName

        public String getPortName()
        Port name used for the pods and governing service. Defaults to `web`.
      • setPortName

        public void setPortName​(String portName)
        Port name used for the pods and governing service. Defaults to `web`.
      • getPriorityClassName

        public String getPriorityClassName()
        Priority class assigned to the Pods
      • setPriorityClassName

        public void setPriorityClassName​(String priorityClassName)
        Priority class assigned to the Pods
      • getReplicas

        public Integer getReplicas()
        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.
      • setReplicas

        public void setReplicas​(Integer replicas)
        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.
      • getResources

        public io.fabric8.kubernetes.api.model.ResourceRequirements getResources()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setResources

        public void setResources​(io.fabric8.kubernetes.api.model.ResourceRequirements resources)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getRetention

        public String getRetention()
        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).
      • setRetention

        public void setRetention​(String retention)
        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).
      • getRoutePrefix

        public String getRoutePrefix()
        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`.
      • setRoutePrefix

        public void setRoutePrefix​(String routePrefix)
        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`.
      • getSecrets

        public List<String> getSecrets()
        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.
      • setSecrets

        public void setSecrets​(List<String> secrets)
        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.
      • getSecurityContext

        public io.fabric8.kubernetes.api.model.PodSecurityContext getSecurityContext()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setSecurityContext

        public void setSecurityContext​(io.fabric8.kubernetes.api.model.PodSecurityContext securityContext)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getServiceAccountName

        public String getServiceAccountName()
        ServiceAccountName is the name of the ServiceAccount to use to run the Prometheus Pods.
      • setServiceAccountName

        public void setServiceAccountName​(String serviceAccountName)
        ServiceAccountName is the name of the ServiceAccount to use to run the Prometheus Pods.
      • getServiceName

        public String getServiceName()
        The name of the service name used by the underlying StatefulSet(s) as the governing service. If defined, the Service must be created before the Alertmanager resource in the same namespace and it must define a selector that matches the pod labels. If empty, the operator will create and manage a headless service named `alertmanager-operated` for Alermanager resources. When deploying multiple Alertmanager resources in the same namespace, it is recommended to specify a different value for each. See https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#stable-network-id for more details.
      • setServiceName

        public void setServiceName​(String serviceName)
        The name of the service name used by the underlying StatefulSet(s) as the governing service. If defined, the Service must be created before the Alertmanager resource in the same namespace and it must define a selector that matches the pod labels. If empty, the operator will create and manage a headless service named `alertmanager-operated` for Alermanager resources. When deploying multiple Alertmanager resources in the same namespace, it is recommended to specify a different value for each. See https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#stable-network-id for more details.
      • getSha

        public String getSha()
        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.
      • setSha

        public void setSha​(String sha)
        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.
      • getStorage

        public StorageSpec getStorage()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setStorage

        public void setStorage​(StorageSpec storage)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getTag

        public String getTag()
        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.
      • setTag

        public void setTag​(String tag)
        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.
      • getTerminationGracePeriodSeconds

        public Long getTerminationGracePeriodSeconds()
        Optional duration in seconds the pod needs to terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down) which may lead to data corruption.


        Defaults to 120 seconds.

      • setTerminationGracePeriodSeconds

        public void setTerminationGracePeriodSeconds​(Long terminationGracePeriodSeconds)
        Optional duration in seconds the pod needs to terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down) which may lead to data corruption.


        Defaults to 120 seconds.

      • getTolerations

        public List<io.fabric8.kubernetes.api.model.Toleration> getTolerations()
        If specified, the pod's tolerations.
      • setTolerations

        public void setTolerations​(List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
        If specified, the pod's tolerations.
      • getTopologySpreadConstraints

        public List<io.fabric8.kubernetes.api.model.TopologySpreadConstraint> getTopologySpreadConstraints()
        If specified, the pod's topology spread constraints.
      • setTopologySpreadConstraints

        public void setTopologySpreadConstraints​(List<io.fabric8.kubernetes.api.model.TopologySpreadConstraint> topologySpreadConstraints)
        If specified, the pod's topology spread constraints.
      • getVersion

        public String getVersion()
        Version the cluster should be on.
      • setVersion

        public void setVersion​(String version)
        Version the cluster should be on.
      • getVolumeMounts

        public List<io.fabric8.kubernetes.api.model.VolumeMount> getVolumeMounts()
        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.
      • setVolumeMounts

        public void setVolumeMounts​(List<io.fabric8.kubernetes.api.model.VolumeMount> volumeMounts)
        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.
      • getVolumes

        public List<io.fabric8.kubernetes.api.model.Volume> getVolumes()
        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.
      • setVolumes

        public void setVolumes​(List<io.fabric8.kubernetes.api.model.Volume> volumes)
        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.
      • getWeb

        public AlertmanagerWebSpec getWeb()
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • setWeb

        public void setWeb​(AlertmanagerWebSpec web)
        AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)