Merge pull request #1102 from superbiche/fix/anti-affinity
This commit is contained in:
@@ -637,11 +637,11 @@ In order to configure a static etcd cluster to scrape there is a simple [kube-pr
|
|||||||
### Pod Anti-Affinity
|
### Pod Anti-Affinity
|
||||||
|
|
||||||
To prevent `Prometheus` and `Alertmanager` instances from being deployed onto the same node when
|
To prevent `Prometheus` and `Alertmanager` instances from being deployed onto the same node when
|
||||||
possible, one can include the [kube-prometheus-anti-affinity.libsonnet](jsonnet/kube-prometheus/kube-prometheus-anti-affinity.libsonnet) mixin:
|
possible, one can include the [kube-prometheus-anti-affinity.libsonnet](jsonnet/kube-prometheus/addons/anti-affinity.libsonnet) mixin:
|
||||||
|
|
||||||
```jsonnet
|
```jsonnet
|
||||||
(import 'kube-prometheus/kube-prometheus.libsonnet') +
|
(import 'kube-prometheus/kube-prometheus.libsonnet') +
|
||||||
(import 'kube-prometheus/kube-prometheus-anti-affinity.libsonnet')
|
(import 'kube-prometheus/addons/anti-affinity.libsonnet')
|
||||||
```
|
```
|
||||||
|
|
||||||
### Stripping container resource limits
|
### Stripping container resource limits
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
alertmanager+: {
|
alertmanager+: {
|
||||||
spec+:
|
spec+:
|
||||||
antiaffinity(
|
antiaffinity(
|
||||||
$.alertmanager.config.selectorLabels,
|
$.alertmanager._config.selectorLabels,
|
||||||
$.values.common.namespace,
|
$.values.common.namespace,
|
||||||
$.values.alertmanager.podAntiAffinity,
|
$.values.alertmanager.podAntiAffinity,
|
||||||
$.values.alertmanager.podAntiAffinityTopologyKey,
|
$.values.alertmanager.podAntiAffinityTopologyKey,
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
prometheus+: {
|
prometheus+: {
|
||||||
spec+:
|
spec+:
|
||||||
antiaffinity(
|
antiaffinity(
|
||||||
$.prometheus.config.selectorLabels,
|
$.prometheus._config.selectorLabels,
|
||||||
$.values.common.namespace,
|
$.values.common.namespace,
|
||||||
$.values.prometheus.podAntiAffinity,
|
$.values.prometheus.podAntiAffinity,
|
||||||
$.values.prometheus.podAntiAffinityTopologyKey,
|
$.values.prometheus.podAntiAffinityTopologyKey,
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
template+: {
|
template+: {
|
||||||
spec+:
|
spec+:
|
||||||
antiaffinity(
|
antiaffinity(
|
||||||
$.blackboxExporter.config.selectorLabels,
|
$.blackboxExporter._config.selectorLabels,
|
||||||
$.values.common.namespace,
|
$.values.common.namespace,
|
||||||
$.values.blackboxExporter.podAntiAffinity,
|
$.values.blackboxExporter.podAntiAffinity,
|
||||||
$.values.blackboxExporter.podAntiAffinityTopologyKey,
|
$.values.blackboxExporter.podAntiAffinityTopologyKey,
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
template+: {
|
template+: {
|
||||||
spec+:
|
spec+:
|
||||||
antiaffinity(
|
antiaffinity(
|
||||||
$.prometheusAdapter.config.selectorLabels,
|
$.prometheusAdapter._config.selectorLabels,
|
||||||
$.values.common.namespace,
|
$.values.common.namespace,
|
||||||
$.values.prometheusAdapter.podAntiAffinity,
|
$.values.prometheusAdapter.podAntiAffinity,
|
||||||
$.values.prometheusAdapter.podAntiAffinityTopologyKey,
|
$.values.prometheusAdapter.podAntiAffinityTopologyKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user