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 Summary

      Constructors 
      Constructor Description
      AlertmanagerSpec()
      No args constructor for use in serialization
      AlertmanagerSpec​(List<String> additionalPeers, io.fabric8.kubernetes.api.model.Affinity affinity, AlertmanagerConfigMatcherStrategy alertmanagerConfigMatcherStrategy, io.fabric8.kubernetes.api.model.LabelSelector alertmanagerConfigNamespaceSelector, io.fabric8.kubernetes.api.model.LabelSelector alertmanagerConfigSelector, AlertmanagerConfiguration alertmanagerConfiguration, Boolean automountServiceAccountToken, String baseImage, String clusterAdvertiseAddress, String clusterGossipInterval, String clusterLabel, String clusterPeerTimeout, String clusterPushpullInterval, List<String> configMaps, String configSecret, List<io.fabric8.kubernetes.api.model.Container> containers, PodDNSConfig dnsConfig, String dnsPolicy, List<String> enableFeatures, String externalUrl, Boolean forceEnableClusterMode, List<HostAlias> hostAliases, String image, String imagePullPolicy, List<io.fabric8.kubernetes.api.model.LocalObjectReference> imagePullSecrets, List<io.fabric8.kubernetes.api.model.Container> initContainers, Boolean listenLocal, String logFormat, String logLevel, Long minReadySeconds, Map<String,​String> nodeSelector, Boolean paused, io.fabric8.kubernetes.api.model.apps.StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy, EmbeddedObjectMetadata podMetadata, String portName, String priorityClassName, Integer replicas, io.fabric8.kubernetes.api.model.ResourceRequirements resources, String retention, String routePrefix, List<String> secrets, io.fabric8.kubernetes.api.model.PodSecurityContext securityContext, String serviceAccountName, String sha, StorageSpec storage, String tag, List<io.fabric8.kubernetes.api.model.Toleration> tolerations, List<io.fabric8.kubernetes.api.model.TopologySpreadConstraint> topologySpreadConstraints, String version, List<io.fabric8.kubernetes.api.model.VolumeMount> volumeMounts, List<io.fabric8.kubernetes.api.model.Volume> volumes, AlertmanagerWebSpec web)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AlertmanagerSpecBuilder edit()  
      List<String> getAdditionalPeers()
      AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.
      Map<String,​Object> getAdditionalProperties()  
      io.fabric8.kubernetes.api.model.Affinity getAffinity()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      AlertmanagerConfigMatcherStrategy getAlertmanagerConfigMatcherStrategy()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      io.fabric8.kubernetes.api.model.LabelSelector getAlertmanagerConfigNamespaceSelector()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      io.fabric8.kubernetes.api.model.LabelSelector getAlertmanagerConfigSelector()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      AlertmanagerConfiguration getAlertmanagerConfiguration()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      Boolean getAutomountServiceAccountToken()
      AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in the pod.
      String getBaseImage()
      Base image that is used to deploy pods, without tag.
      String getClusterAdvertiseAddress()
      ClusterAdvertiseAddress is the explicit address to advertise in cluster.
      String getClusterGossipInterval()
      Interval between gossip attempts.
      String getClusterLabel()
      Defines the identifier that uniquely identifies the Alertmanager cluster.
      String getClusterPeerTimeout()
      Timeout for cluster peering.
      String getClusterPushpullInterval()
      Interval between pushpull attempts.
      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.
      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.
      List<io.fabric8.kubernetes.api.model.Container> getContainers()
      Containers allows injecting additional containers.
      PodDNSConfig getDnsConfig()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      String getDnsPolicy()
      Defines the DNS policy for the pods.
      List<String> getEnableFeatures()
      Enable access to Alertmanager feature flags.
      String getExternalUrl()
      The external URL the Alertmanager instances will be available under.
      Boolean getForceEnableClusterMode()
      ForceEnableClusterMode ensures Alertmanager does not deactivate the cluster mode when running with a single replica.
      List<HostAlias> getHostAliases()
      Pods' hostAliases configuration
      String getImage()
      Image if specified has precedence over baseImage, tag and sha combinations.
      String getImagePullPolicy()
      Image pull policy for the 'alertmanager', 'init-config-reloader' and 'config-reloader' containers.
      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 http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod
      List<io.fabric8.kubernetes.api.model.Container> getInitContainers()
      InitContainers allows adding initContainers to the pod definition.
      Boolean getListenLocal()
      ListenLocal makes the Alertmanager server listen on loopback, so that it does not bind against the Pod IP.
      String getLogFormat()
      Log format for Alertmanager to be configured with.
      String getLogLevel()
      Log level for Alertmanager to be configured with.
      Long 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.
      Map<String,​String> getNodeSelector()
      Define which Nodes the Pods are scheduled on.
      Boolean getPaused()
      If set to true all actions on the underlying managed objects are not goint to be performed, except for delete actions.
      io.fabric8.kubernetes.api.model.apps.StatefulSetPersistentVolumeClaimRetentionPolicy getPersistentVolumeClaimRetentionPolicy()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      EmbeddedObjectMetadata getPodMetadata()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      String getPortName()
      Port name used for the pods and governing service.
      String getPriorityClassName()
      Priority class assigned to the Pods
      Integer getReplicas()
      Size is the expected size of the alertmanager cluster.
      io.fabric8.kubernetes.api.model.ResourceRequirements getResources()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      String getRetention()
      Time duration Alertmanager shall retain data for.
      String getRoutePrefix()
      The route prefix Alertmanager registers HTTP handlers for.
      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.
      io.fabric8.kubernetes.api.model.PodSecurityContext getSecurityContext()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      String getServiceAccountName()
      ServiceAccountName is the name of the ServiceAccount to use to run the Prometheus Pods.
      String getSha()
      SHA of Alertmanager container image to be deployed.
      StorageSpec getStorage()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      String getTag()
      Tag of Alertmanager container image to be deployed.
      List<io.fabric8.kubernetes.api.model.Toleration> getTolerations()
      If specified, the pod's tolerations.
      List<io.fabric8.kubernetes.api.model.TopologySpreadConstraint> getTopologySpreadConstraints()
      If specified, the pod's topology spread constraints.
      String getVersion()
      Version the cluster should be on.
      List<io.fabric8.kubernetes.api.model.VolumeMount> getVolumeMounts()
      VolumeMounts allows configuration of additional VolumeMounts on the output StatefulSet definition.
      List<io.fabric8.kubernetes.api.model.Volume> getVolumes()
      Volumes allows configuration of additional volumes on the output StatefulSet definition.
      AlertmanagerWebSpec getWeb()
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setAdditionalPeers​(List<String> additionalPeers)
      AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.
      void setAdditionalProperties​(Map<String,​Object> additionalProperties)  
      void setAdditionalProperty​(String name, Object value)  
      void setAffinity​(io.fabric8.kubernetes.api.model.Affinity affinity)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setAlertmanagerConfigMatcherStrategy​(AlertmanagerConfigMatcherStrategy alertmanagerConfigMatcherStrategy)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setAlertmanagerConfigNamespaceSelector​(io.fabric8.kubernetes.api.model.LabelSelector alertmanagerConfigNamespaceSelector)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setAlertmanagerConfigSelector​(io.fabric8.kubernetes.api.model.LabelSelector alertmanagerConfigSelector)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setAlertmanagerConfiguration​(AlertmanagerConfiguration alertmanagerConfiguration)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setAutomountServiceAccountToken​(Boolean automountServiceAccountToken)
      AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in the pod.
      void setBaseImage​(String baseImage)
      Base image that is used to deploy pods, without tag.
      void setClusterAdvertiseAddress​(String clusterAdvertiseAddress)
      ClusterAdvertiseAddress is the explicit address to advertise in cluster.
      void setClusterGossipInterval​(String clusterGossipInterval)
      Interval between gossip attempts.
      void setClusterLabel​(String clusterLabel)
      Defines the identifier that uniquely identifies the Alertmanager cluster.
      void setClusterPeerTimeout​(String clusterPeerTimeout)
      Timeout for cluster peering.
      void setClusterPushpullInterval​(String clusterPushpullInterval)
      Interval between pushpull attempts.
      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.
      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.
      void setContainers​(List<io.fabric8.kubernetes.api.model.Container> containers)
      Containers allows injecting additional containers.
      void setDnsConfig​(PodDNSConfig dnsConfig)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setDnsPolicy​(String dnsPolicy)
      Defines the DNS policy for the pods.
      void setEnableFeatures​(List<String> enableFeatures)
      Enable access to Alertmanager feature flags.
      void setExternalUrl​(String externalUrl)
      The external URL the Alertmanager instances will be available under.
      void setForceEnableClusterMode​(Boolean forceEnableClusterMode)
      ForceEnableClusterMode ensures Alertmanager does not deactivate the cluster mode when running with a single replica.
      void setHostAliases​(List<HostAlias> hostAliases)
      Pods' hostAliases configuration
      void setImage​(String image)
      Image if specified has precedence over baseImage, tag and sha combinations.
      void setImagePullPolicy​(String imagePullPolicy)
      Image pull policy for the 'alertmanager', 'init-config-reloader' and 'config-reloader' containers.
      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 http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod
      void setInitContainers​(List<io.fabric8.kubernetes.api.model.Container> initContainers)
      InitContainers allows adding initContainers to the pod definition.
      void setListenLocal​(Boolean listenLocal)
      ListenLocal makes the Alertmanager server listen on loopback, so that it does not bind against the Pod IP.
      void setLogFormat​(String logFormat)
      Log format for Alertmanager to be configured with.
      void setLogLevel​(String logLevel)
      Log level for Alertmanager to be configured with.
      void setMinReadySeconds​(Long 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.
      void setNodeSelector​(Map<String,​String> nodeSelector)
      Define which Nodes the Pods are scheduled on.
      void setPaused​(Boolean paused)
      If set to true all actions on the underlying managed objects are not goint to be performed, except for delete actions.
      void setPersistentVolumeClaimRetentionPolicy​(io.fabric8.kubernetes.api.model.apps.StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setPodMetadata​(EmbeddedObjectMetadata podMetadata)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setPortName​(String portName)
      Port name used for the pods and governing service.
      void setPriorityClassName​(String priorityClassName)
      Priority class assigned to the Pods
      void setReplicas​(Integer replicas)
      Size is the expected size of the alertmanager cluster.
      void setResources​(io.fabric8.kubernetes.api.model.ResourceRequirements resources)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setRetention​(String retention)
      Time duration Alertmanager shall retain data for.
      void setRoutePrefix​(String routePrefix)
      The route prefix Alertmanager registers HTTP handlers for.
      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.
      void setSecurityContext​(io.fabric8.kubernetes.api.model.PodSecurityContext securityContext)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setServiceAccountName​(String serviceAccountName)
      ServiceAccountName is the name of the ServiceAccount to use to run the Prometheus Pods.
      void setSha​(String sha)
      SHA of Alertmanager container image to be deployed.
      void setStorage​(StorageSpec storage)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      void setTag​(String tag)
      Tag of Alertmanager container image to be deployed.
      void setTolerations​(List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
      If specified, the pod's tolerations.
      void setTopologySpreadConstraints​(List<io.fabric8.kubernetes.api.model.TopologySpreadConstraint> topologySpreadConstraints)
      If specified, the pod's topology spread constraints.
      void setVersion​(String version)
      Version the cluster should be on.
      void setVolumeMounts​(List<io.fabric8.kubernetes.api.model.VolumeMount> volumeMounts)
      VolumeMounts allows configuration of additional VolumeMounts on the output StatefulSet definition.
      void setVolumes​(List<io.fabric8.kubernetes.api.model.Volume> volumes)
      Volumes allows configuration of additional volumes on the output StatefulSet definition.
      void setWeb​(AlertmanagerWebSpec web)
      AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.
      AlertmanagerSpecBuilder toBuilder()  
    • Constructor Detail

      • AlertmanagerSpec

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

        public AlertmanagerSpec​(List<String> additionalPeers,
                                io.fabric8.kubernetes.api.model.Affinity affinity,
                                AlertmanagerConfigMatcherStrategy alertmanagerConfigMatcherStrategy,
                                io.fabric8.kubernetes.api.model.LabelSelector alertmanagerConfigNamespaceSelector,
                                io.fabric8.kubernetes.api.model.LabelSelector alertmanagerConfigSelector,
                                AlertmanagerConfiguration alertmanagerConfiguration,
                                Boolean automountServiceAccountToken,
                                String baseImage,
                                String clusterAdvertiseAddress,
                                String clusterGossipInterval,
                                String clusterLabel,
                                String clusterPeerTimeout,
                                String clusterPushpullInterval,
                                List<String> configMaps,
                                String configSecret,
                                List<io.fabric8.kubernetes.api.model.Container> containers,
                                PodDNSConfig dnsConfig,
                                String dnsPolicy,
                                List<String> enableFeatures,
                                String externalUrl,
                                Boolean forceEnableClusterMode,
                                List<HostAlias> hostAliases,
                                String image,
                                String imagePullPolicy,
                                List<io.fabric8.kubernetes.api.model.LocalObjectReference> imagePullSecrets,
                                List<io.fabric8.kubernetes.api.model.Container> initContainers,
                                Boolean listenLocal,
                                String logFormat,
                                String logLevel,
                                Long minReadySeconds,
                                Map<String,​String> nodeSelector,
                                Boolean paused,
                                io.fabric8.kubernetes.api.model.apps.StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy,
                                EmbeddedObjectMetadata podMetadata,
                                String portName,
                                String priorityClassName,
                                Integer replicas,
                                io.fabric8.kubernetes.api.model.ResourceRequirements resources,
                                String retention,
                                String routePrefix,
                                List<String> secrets,
                                io.fabric8.kubernetes.api.model.PodSecurityContext securityContext,
                                String serviceAccountName,
                                String sha,
                                StorageSpec storage,
                                String tag,
                                List<io.fabric8.kubernetes.api.model.Toleration> tolerations,
                                List<io.fabric8.kubernetes.api.model.TopologySpreadConstraint> topologySpreadConstraints,
                                String version,
                                List<io.fabric8.kubernetes.api.model.VolumeMount> volumeMounts,
                                List<io.fabric8.kubernetes.api.model.Volume> volumes,
                                AlertmanagerWebSpec web)
    • Method Detail

      • 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.
      • 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.

      • 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
      • 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 http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod
      • 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 http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod
      • 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.
      • 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 Long 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. 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.
      • setMinReadySeconds

        public void setMinReadySeconds​(Long 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. 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.
      • 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 goint 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 goint 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.
      • 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.
      • 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)