Class AlertmanagerSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.AlertmanagerSpec
-
- All Implemented Interfaces:
Editable<AlertmanagerSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class AlertmanagerSpec extends Object implements Editable<AlertmanagerSpecBuilder>, 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 serializationAlertmanagerSpec(List<Argument> additionalArgs, List<String> additionalPeers, Affinity affinity, AlertmanagerConfigMatcherStrategy alertmanagerConfigMatcherStrategy, LabelSelector alertmanagerConfigNamespaceSelector, LabelSelector alertmanagerConfigSelector, AlertmanagerConfiguration alertmanagerConfiguration, Boolean automountServiceAccountToken, String baseImage, String clusterAdvertiseAddress, String clusterGossipInterval, String clusterLabel, String clusterPeerTimeout, String clusterPushpullInterval, ClusterTLSConfig clusterTLS, List<String> configMaps, String configSecret, List<Container> containers, PodDNSConfig dnsConfig, String dnsPolicy, List<String> enableFeatures, Boolean enableServiceLinks, String externalUrl, Boolean forceEnableClusterMode, List<HostAlias> hostAliases, Boolean hostNetwork, Boolean hostUsers, String image, String imagePullPolicy, List<LocalObjectReference> imagePullSecrets, List<Container> initContainers, AlertmanagerLimitsSpec limits, Boolean listenLocal, String logFormat, String logLevel, Integer minReadySeconds, Map<String,String> nodeSelector, Boolean paused, io.fabric8.kubernetes.api.model.apps.StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy, String podManagementPolicy, EmbeddedObjectMetadata podMetadata, String portName, String priorityClassName, Integer replicas, ResourceRequirements resources, String retention, String routePrefix, String schedulerName, List<String> secrets, PodSecurityContext securityContext, String serviceAccountName, String serviceName, String sha, StorageSpec storage, String tag, Long terminationGracePeriodSeconds, List<Toleration> tolerations, List<TopologySpreadConstraint> topologySpreadConstraints, StatefulSetUpdateStrategy updateStrategy, String version, List<VolumeMount> volumeMounts, List<Volume> volumes, AlertmanagerWebSpec web)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertmanagerSpecBuilderedit()List<Argument>getAdditionalArgs()additionalArgs allows setting additional arguments for the 'Alertmanager' container.List<String>getAdditionalPeers()additionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.Map<String,Object>getAdditionalProperties()AffinitygetAffinity()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.AlertmanagerConfigMatcherStrategygetAlertmanagerConfigMatcherStrategy()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.LabelSelectorgetAlertmanagerConfigNamespaceSelector()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.LabelSelectorgetAlertmanagerConfigSelector()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.AlertmanagerConfigurationgetAlertmanagerConfiguration()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.BooleangetAutomountServiceAccountToken()automountServiceAccountToken defines whether a service account token should be automatically mounted in the pod.StringgetBaseImage()baseImage that is used to deploy pods, without tag.StringgetClusterAdvertiseAddress()clusterAdvertiseAddress defines the explicit address to advertise in cluster.StringgetClusterGossipInterval()clusterGossipInterval defines the interval between gossip attempts.StringgetClusterLabel()clusterLabel defines the identifier that uniquely identifies the Alertmanager cluster.StringgetClusterPeerTimeout()clusterPeerTimeout defines the timeout for cluster peering.StringgetClusterPushpullInterval()clusterPushpullInterval defines the interval between pushpull attempts.ClusterTLSConfiggetClusterTLS()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.List<String>getConfigMaps()configMaps defines a list of ConfigMaps in the same namespace as the Alertmanager object, which shall be mounted into the Alertmanager Pods.StringgetConfigSecret()configSecret defines the name of a Kubernetes Secret in the same namespace as the Alertmanager object, which contains the configuration for this Alertmanager instance.List<Container>getContainers()containers allows injecting additional containers or modifying operator generated containers.PodDNSConfiggetDnsConfig()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.StringgetDnsPolicy()dnsPolicy defines the DNS policy for the pods.List<String>getEnableFeatures()enableFeatures defines the Alertmanager's feature flags.BooleangetEnableServiceLinks()enableServiceLinks defines whether information about services should be injected into pod's environment variablesStringgetExternalUrl()externalUrl defines the URL used to access the Alertmanager web service.BooleangetForceEnableClusterMode()forceEnableClusterMode ensures Alertmanager does not deactivate the cluster mode when running with a single replica.List<HostAlias>getHostAliases()hostAliases Pods configurationBooleangetHostNetwork()hostNetwork controls whether the pod may use the node network namespace.BooleangetHostUsers()hostUsers supports the user space in Kubernetes.StringgetImage()image if specified has precedence over baseImage, tag and sha combinations.StringgetImagePullPolicy()imagePullPolicy for the 'alertmanager', 'init-config-reloader' and 'config-reloader' containers.List<LocalObjectReference>getImagePullSecrets()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/List<Container>getInitContainers()initContainers allows injecting initContainers to the Pod definition.AlertmanagerLimitsSpecgetLimits()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.BooleangetListenLocal()listenLocal defines the Alertmanager server listen on loopback, so that it does not bind against the Pod IP.StringgetLogFormat()logFormat for Alertmanager to be configured with.StringgetLogLevel()logLevel for Alertmanager to be configured with.IntegergetMinReadySeconds()minReadySeconds defines the 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()nodeSelector defines which Nodes the Pods are scheduled on.BooleangetPaused()paused if set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.io.fabric8.kubernetes.api.model.apps.StatefulSetPersistentVolumeClaimRetentionPolicygetPersistentVolumeClaimRetentionPolicy()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.StringgetPodManagementPolicy()podManagementPolicy defines the policy for creating/deleting pods when scaling up and down.EmbeddedObjectMetadatagetPodMetadata()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.StringgetPortName()portName defines the port's name for the pods and governing service.StringgetPriorityClassName()priorityClassName assigned to the PodsIntegergetReplicas()replicas defines the expected size of the alertmanager cluster.ResourceRequirementsgetResources()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.StringgetRetention()retention defines the time duration Alertmanager shall retain data for.StringgetRoutePrefix()routePrefix Alertmanager registers HTTP handlers for.StringgetSchedulerName()schedulerName defines the scheduler to use for Pod scheduling.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.PodSecurityContextgetSecurityContext()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.StringgetServiceAccountName()serviceAccountName is the name of the ServiceAccount to use to run the Prometheus Pods.StringgetServiceName()serviceName defines the service name used by the underlying StatefulSet(s) as the governing service.StringgetSha()sha of Alertmanager container image to be deployed.StorageSpecgetStorage()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.StringgetTag()tag of Alertmanager container image to be deployed.LonggetTerminationGracePeriodSeconds()terminationGracePeriodSeconds defines the Optional duration in seconds the pod needs to terminate gracefully.List<Toleration>getTolerations()tolerations defines the pod's tolerations.List<TopologySpreadConstraint>getTopologySpreadConstraints()topologySpreadConstraints defines the Pod's topology spread constraints.StatefulSetUpdateStrategygetUpdateStrategy()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.StringgetVersion()version the cluster should be on.List<VolumeMount>getVolumeMounts()volumeMounts allows configuration of additional VolumeMounts on the output StatefulSet definition.List<Volume>getVolumes()volumes allows configuration of additional volumes on the output StatefulSet definition.AlertmanagerWebSpecgetWeb()AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetAdditionalArgs(List<Argument> additionalArgs)additionalArgs allows setting additional arguments for the 'Alertmanager' container.voidsetAdditionalPeers(List<String> additionalPeers)additionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAffinity(Affinity affinity)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetAlertmanagerConfigMatcherStrategy(AlertmanagerConfigMatcherStrategy alertmanagerConfigMatcherStrategy)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetAlertmanagerConfigNamespaceSelector(LabelSelector alertmanagerConfigNamespaceSelector)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetAlertmanagerConfigSelector(LabelSelector alertmanagerConfigSelector)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetAlertmanagerConfiguration(AlertmanagerConfiguration alertmanagerConfiguration)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetAutomountServiceAccountToken(Boolean automountServiceAccountToken)automountServiceAccountToken defines whether a service account token should be automatically mounted in the pod.voidsetBaseImage(String baseImage)baseImage that is used to deploy pods, without tag.voidsetClusterAdvertiseAddress(String clusterAdvertiseAddress)clusterAdvertiseAddress defines the explicit address to advertise in cluster.voidsetClusterGossipInterval(String clusterGossipInterval)clusterGossipInterval defines the interval between gossip attempts.voidsetClusterLabel(String clusterLabel)clusterLabel defines the identifier that uniquely identifies the Alertmanager cluster.voidsetClusterPeerTimeout(String clusterPeerTimeout)clusterPeerTimeout defines the timeout for cluster peering.voidsetClusterPushpullInterval(String clusterPushpullInterval)clusterPushpullInterval defines the interval between pushpull attempts.voidsetClusterTLS(ClusterTLSConfig clusterTLS)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetConfigMaps(List<String> configMaps)configMaps defines a list of ConfigMaps in the same namespace as the Alertmanager object, which shall be mounted into the Alertmanager Pods.voidsetConfigSecret(String configSecret)configSecret defines the name of a Kubernetes Secret in the same namespace as the Alertmanager object, which contains the configuration for this Alertmanager instance.voidsetContainers(List<Container> containers)containers allows injecting additional containers or modifying operator generated containers.voidsetDnsConfig(PodDNSConfig dnsConfig)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetDnsPolicy(String dnsPolicy)dnsPolicy defines the DNS policy for the pods.voidsetEnableFeatures(List<String> enableFeatures)enableFeatures defines the Alertmanager's feature flags.voidsetEnableServiceLinks(Boolean enableServiceLinks)enableServiceLinks defines whether information about services should be injected into pod's environment variablesvoidsetExternalUrl(String externalUrl)externalUrl defines the URL used to access the Alertmanager web service.voidsetForceEnableClusterMode(Boolean forceEnableClusterMode)forceEnableClusterMode ensures Alertmanager does not deactivate the cluster mode when running with a single replica.voidsetHostAliases(List<HostAlias> hostAliases)hostAliases Pods configurationvoidsetHostNetwork(Boolean hostNetwork)hostNetwork controls whether the pod may use the node network namespace.voidsetHostUsers(Boolean hostUsers)hostUsers supports the user space in Kubernetes.voidsetImage(String image)image if specified has precedence over baseImage, tag and sha combinations.voidsetImagePullPolicy(String imagePullPolicy)imagePullPolicy for the 'alertmanager', 'init-config-reloader' and 'config-reloader' containers.voidsetImagePullSecrets(List<LocalObjectReference> imagePullSecrets)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/voidsetInitContainers(List<Container> initContainers)initContainers allows injecting initContainers to the Pod definition.voidsetLimits(AlertmanagerLimitsSpec limits)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetListenLocal(Boolean listenLocal)listenLocal defines the Alertmanager server listen on loopback, so that it does not bind against the Pod IP.voidsetLogFormat(String logFormat)logFormat for Alertmanager to be configured with.voidsetLogLevel(String logLevel)logLevel for Alertmanager to be configured with.voidsetMinReadySeconds(Integer minReadySeconds)minReadySeconds defines the 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.voidsetNodeSelector(Map<String,String> nodeSelector)nodeSelector defines which Nodes the Pods are scheduled on.voidsetPaused(Boolean paused)paused if set to true all actions on the underlying managed objects are not going to be performed, except for delete actions.voidsetPersistentVolumeClaimRetentionPolicy(io.fabric8.kubernetes.api.model.apps.StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetPodManagementPolicy(String podManagementPolicy)podManagementPolicy defines the policy for creating/deleting pods when scaling up and down.voidsetPodMetadata(EmbeddedObjectMetadata podMetadata)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetPortName(String portName)portName defines the port's name for the pods and governing service.voidsetPriorityClassName(String priorityClassName)priorityClassName assigned to the PodsvoidsetReplicas(Integer replicas)replicas defines the expected size of the alertmanager cluster.voidsetResources(ResourceRequirements resources)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetRetention(String retention)retention defines the time duration Alertmanager shall retain data for.voidsetRoutePrefix(String routePrefix)routePrefix Alertmanager registers HTTP handlers for.voidsetSchedulerName(String schedulerName)schedulerName defines the scheduler to use for Pod scheduling.voidsetSecrets(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.voidsetSecurityContext(PodSecurityContext securityContext)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetServiceAccountName(String serviceAccountName)serviceAccountName is the name of the ServiceAccount to use to run the Prometheus Pods.voidsetServiceName(String serviceName)serviceName defines the service name used by the underlying StatefulSet(s) as the governing service.voidsetSha(String sha)sha of Alertmanager container image to be deployed.voidsetStorage(StorageSpec storage)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetTag(String tag)tag of Alertmanager container image to be deployed.voidsetTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds)terminationGracePeriodSeconds defines the Optional duration in seconds the pod needs to terminate gracefully.voidsetTolerations(List<Toleration> tolerations)tolerations defines the pod's tolerations.voidsetTopologySpreadConstraints(List<TopologySpreadConstraint> topologySpreadConstraints)topologySpreadConstraints defines the Pod's topology spread constraints.voidsetUpdateStrategy(StatefulSetUpdateStrategy updateStrategy)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.voidsetVersion(String version)version the cluster should be on.voidsetVolumeMounts(List<VolumeMount> volumeMounts)volumeMounts allows configuration of additional VolumeMounts on the output StatefulSet definition.voidsetVolumes(List<Volume> volumes)volumes allows configuration of additional volumes on the output StatefulSet definition.voidsetWeb(AlertmanagerWebSpec web)AlertmanagerSpec is a specification of the desired behavior of the Alertmanager cluster.AlertmanagerSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
AlertmanagerSpec
public AlertmanagerSpec()
No args constructor for use in serialization
-
AlertmanagerSpec
public AlertmanagerSpec(List<Argument> additionalArgs, List<String> additionalPeers, Affinity affinity, AlertmanagerConfigMatcherStrategy alertmanagerConfigMatcherStrategy, LabelSelector alertmanagerConfigNamespaceSelector, LabelSelector alertmanagerConfigSelector, AlertmanagerConfiguration alertmanagerConfiguration, Boolean automountServiceAccountToken, String baseImage, String clusterAdvertiseAddress, String clusterGossipInterval, String clusterLabel, String clusterPeerTimeout, String clusterPushpullInterval, ClusterTLSConfig clusterTLS, List<String> configMaps, String configSecret, List<Container> containers, PodDNSConfig dnsConfig, String dnsPolicy, List<String> enableFeatures, Boolean enableServiceLinks, String externalUrl, Boolean forceEnableClusterMode, List<HostAlias> hostAliases, Boolean hostNetwork, Boolean hostUsers, String image, String imagePullPolicy, List<LocalObjectReference> imagePullSecrets, List<Container> initContainers, AlertmanagerLimitsSpec limits, Boolean listenLocal, String logFormat, String logLevel, Integer minReadySeconds, Map<String,String> nodeSelector, Boolean paused, io.fabric8.kubernetes.api.model.apps.StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy, String podManagementPolicy, EmbeddedObjectMetadata podMetadata, String portName, String priorityClassName, Integer replicas, ResourceRequirements resources, String retention, String routePrefix, String schedulerName, List<String> secrets, PodSecurityContext securityContext, String serviceAccountName, String serviceName, String sha, StorageSpec storage, String tag, Long terminationGracePeriodSeconds, List<Toleration> tolerations, List<TopologySpreadConstraint> topologySpreadConstraints, StatefulSetUpdateStrategy updateStrategy, String version, List<VolumeMount> volumeMounts, List<Volume> volumes, AlertmanagerWebSpec web)
-
-
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 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(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 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(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 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(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 defines 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 defines 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()
baseImage that is used to deploy pods, without tag. Deprecated: use 'image' instead.
-
setBaseImage
public void setBaseImage(String baseImage)
baseImage that is used to deploy pods, without tag. Deprecated: use 'image' instead.
-
getClusterAdvertiseAddress
public String getClusterAdvertiseAddress()
clusterAdvertiseAddress defines 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 defines 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()
clusterGossipInterval defines the interval between gossip attempts.
-
setClusterGossipInterval
public void setClusterGossipInterval(String clusterGossipInterval)
clusterGossipInterval defines the interval between gossip attempts.
-
getClusterLabel
public String getClusterLabel()
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.
-
setClusterLabel
public void setClusterLabel(String clusterLabel)
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()
clusterPeerTimeout defines the timeout for cluster peering.
-
setClusterPeerTimeout
public void setClusterPeerTimeout(String clusterPeerTimeout)
clusterPeerTimeout defines the timeout for cluster peering.
-
getClusterPushpullInterval
public String getClusterPushpullInterval()
clusterPushpullInterval defines the interval between pushpull attempts.
-
setClusterPushpullInterval
public void setClusterPushpullInterval(String clusterPushpullInterval)
clusterPushpullInterval defines the 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 defines 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 defines 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 defines 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 defines 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<Container> getContainers()
containers allows injecting additional containers or modifying operator generated containers. This can be used to allow adding an authentication proxy to the Pods or to change the behavior of an operator generated container. Containers described here modify an operator generated container if they share the same name and modifications are done via a strategic merge patch.The names of containers managed by the operator are: * `alertmanager` * `config-reloader` * `thanos-sidecar`
Overriding containers which are managed by the operator require careful testing, especially when upgrading to a new version of the operator.
-
setContainers
public void setContainers(List<Container> containers)
containers allows injecting additional containers or modifying operator generated containers. This can be used to allow adding an authentication proxy to the Pods or to change the behavior of an operator generated container. Containers described here modify an operator generated container if they share the same name and modifications are done via a strategic merge patch.The names of containers managed by the operator are: * `alertmanager` * `config-reloader` * `thanos-sidecar`
Overriding containers which are managed by the operator require careful testing, especially when upgrading to a new version of the operator.
-
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()
dnsPolicy defines the DNS policy for the pods.
-
setDnsPolicy
public void setDnsPolicy(String dnsPolicy)
dnsPolicy defines the DNS policy for the pods.
-
getEnableFeatures
public List<String> getEnableFeatures()
enableFeatures defines the Alertmanager's 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)
enableFeatures defines the Alertmanager's 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()
enableServiceLinks defines whether information about services should be injected into pod's environment variables
-
setEnableServiceLinks
public void setEnableServiceLinks(Boolean enableServiceLinks)
enableServiceLinks defines whether information about services should be injected into pod's environment variables
-
getExternalUrl
public String getExternalUrl()
externalUrl defines the URL used to access the Alertmanager web service. 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)
externalUrl defines the URL used to access the Alertmanager web service. 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.
-
setHostAliases
public void setHostAliases(List<HostAlias> hostAliases)
hostAliases Pods configuration
-
getHostNetwork
public Boolean getHostNetwork()
hostNetwork controls whether the pod may use the node network namespace.Make sure to understand the security implications if you want to enable it (https://kubernetes.io/docs/concepts/configuration/overview/).
When hostNetwork is enabled, this will set the DNS policy to `ClusterFirstWithHostNet` automatically (unless `.spec.dnsPolicy` is set to a different value).
-
setHostNetwork
public void setHostNetwork(Boolean hostNetwork)
hostNetwork controls whether the pod may use the node network namespace.Make sure to understand the security implications if you want to enable it (https://kubernetes.io/docs/concepts/configuration/overview/).
When hostNetwork is enabled, this will set the DNS policy to `ClusterFirstWithHostNet` automatically (unless `.spec.dnsPolicy` is set to a different value).
-
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()
imagePullPolicy 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)
imagePullPolicy 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<LocalObjectReference> getImagePullSecrets()
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/
-
setImagePullSecrets
public void setImagePullSecrets(List<LocalObjectReference> imagePullSecrets)
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<Container> getInitContainers()
initContainers allows injecting initContainers to the Pod definition. Those can be used to e.g. fetch secrets for injection into the Prometheus 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 names of init container name managed by the operator are: * `init-config-reloader`.
Overriding init containers which are managed by the operator require careful testing, especially when upgrading to a new version of the operator.
-
setInitContainers
public void setInitContainers(List<Container> initContainers)
initContainers allows injecting initContainers to the Pod definition. Those can be used to e.g. fetch secrets for injection into the Prometheus 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 names of init container name managed by the operator are: * `init-config-reloader`.
Overriding init containers which are managed by the operator require careful testing, especially when upgrading to a new version of the operator.
-
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 defines 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 defines 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()
logFormat for Alertmanager to be configured with.
-
setLogFormat
public void setLogFormat(String logFormat)
logFormat for Alertmanager to be configured with.
-
getLogLevel
public String getLogLevel()
logLevel for Alertmanager to be configured with.
-
setLogLevel
public void setLogLevel(String logLevel)
logLevel for Alertmanager to be configured with.
-
getMinReadySeconds
public Integer getMinReadySeconds()
minReadySeconds defines the 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.
When the Alertmanager version is greater than or equal to v0.30.0, the duration is also used to delay the first flush of the aggregation groups. This delay helps ensuring that all alerts have been resent by the Prometheus instances to Alertmanager after a roll-out. It is possible to override this behavior passing a custom value via `.spec.additionalArgs`.
-
setMinReadySeconds
public void setMinReadySeconds(Integer minReadySeconds)
minReadySeconds defines the 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.
When the Alertmanager version is greater than or equal to v0.30.0, the duration is also used to delay the first flush of the aggregation groups. This delay helps ensuring that all alerts have been resent by the Prometheus instances to Alertmanager after a roll-out. It is possible to override this behavior passing a custom value via `.spec.additionalArgs`.
-
getNodeSelector
public Map<String,String> getNodeSelector()
nodeSelector defines which Nodes the Pods are scheduled on.
-
setNodeSelector
public void setNodeSelector(Map<String,String> nodeSelector)
nodeSelector defines which Nodes the Pods are scheduled on.
-
getPaused
public Boolean getPaused()
paused 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)
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
-
getPodManagementPolicy
public String getPodManagementPolicy()
podManagementPolicy defines the policy for creating/deleting pods when scaling up and down.Unlike the default StatefulSet behavior, the default policy is `Parallel` to avoid manual intervention in case a pod gets stuck during a rollout.
Note that updating this value implies the recreation of the StatefulSet which incurs a service outage.
-
setPodManagementPolicy
public void setPodManagementPolicy(String podManagementPolicy)
podManagementPolicy defines the policy for creating/deleting pods when scaling up and down.Unlike the default StatefulSet behavior, the default policy is `Parallel` to avoid manual intervention in case a pod gets stuck during a rollout.
Note that updating this value implies the recreation of the StatefulSet which incurs a service outage.
-
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()
portName defines the port's name for the pods and governing service. Defaults to `web`.
-
setPortName
public void setPortName(String portName)
portName defines the port's name for the pods and governing service. Defaults to `web`.
-
getPriorityClassName
public String getPriorityClassName()
priorityClassName assigned to the Pods
-
setPriorityClassName
public void setPriorityClassName(String priorityClassName)
priorityClassName assigned to the Pods
-
getReplicas
public Integer getReplicas()
replicas defines 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)
replicas defines 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 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(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()
retention defines the 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)
retention defines the 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()
routePrefix 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)
routePrefix 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`.
-
getSchedulerName
public String getSchedulerName()
schedulerName defines the scheduler to use for Pod scheduling. If not specified, the default scheduler is used.
-
setSchedulerName
public void setSchedulerName(String schedulerName)
schedulerName defines the scheduler to use for Pod scheduling. If not specified, the default scheduler is used.
-
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 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(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()
serviceName defines 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 Alertmanager 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)
serviceName defines 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 Alertmanager 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()
terminationGracePeriodSeconds defines the 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)
terminationGracePeriodSeconds defines the 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<Toleration> getTolerations()
tolerations defines the pod's tolerations.
-
setTolerations
public void setTolerations(List<Toleration> tolerations)
tolerations defines the pod's tolerations.
-
getTopologySpreadConstraints
public List<TopologySpreadConstraint> getTopologySpreadConstraints()
topologySpreadConstraints defines the Pod's topology spread constraints.
-
setTopologySpreadConstraints
public void setTopologySpreadConstraints(List<TopologySpreadConstraint> topologySpreadConstraints)
topologySpreadConstraints defines the Pod's topology spread constraints.
-
getUpdateStrategy
public StatefulSetUpdateStrategy getUpdateStrategy()
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
-
setUpdateStrategy
public void setUpdateStrategy(StatefulSetUpdateStrategy updateStrategy)
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
-
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<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<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<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<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
-
edit
public AlertmanagerSpecBuilder edit()
- Specified by:
editin interfaceEditable<AlertmanagerSpecBuilder>
-
toBuilder
public AlertmanagerSpecBuilder toBuilder()
-
-