Skip to content

Commit

Permalink
Enable pod disruption budget by default
Browse files Browse the repository at this point in the history
  • Loading branch information
OlamideOl1 committed Oct 24, 2024
1 parent 6b750a5 commit bd066bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ metadata:
name: {{ template "prometheus.fullname" . }}
namespace: {{ $.Release.Namespace }}
labels:
app: {{ template "kube-prometheus-stack.name" . }}-prometheus
{{ include "kube-prometheus-stack.labels" . | indent 4 }}
{{- include "prometheus.labels" . | nindent 4 }}
spec:
{{- if .Values.prometheus.podDisruptionBudget.minAvailable }}
minAvailable: {{ .Values.prometheus.podDisruptionBudget.minAvailable }}
Expand Down
6 changes: 3 additions & 3 deletions platform/modules/prometheus-instance/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ prometheus:
version: v2.26.0

## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node.
## The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
## The value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided.
## The default value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node.
## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured.
podAntiAffinity: "hard"

Expand All @@ -58,7 +58,7 @@ prometheus:
## https://github.com/kubernetes/kubernetes/issues/45398
##
podDisruptionBudget:
enabled: false
enabled: true
minAvailable: 1
maxUnavailable: ""

Expand Down

0 comments on commit bd066bf

Please sign in to comment.