From 823a14514bc0bec36e00373ab1e503f7bb77b705 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Sat, 21 May 2022 18:04:04 -0700 Subject: [PATCH] Add revision history limit to dragon-bot so we're not full of old replica sets --- helm/templates/deployment.yaml | 4 ++++ helm/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 7c166f95..e50629bb 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -8,6 +8,10 @@ spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} + {{- if .Values.revisionHistoryLimit }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} + {{- end }} + selector: matchLabels: {{- include "dragon-bot.selectorLabels" . | nindent 6 }} diff --git a/helm/values.yaml b/helm/values.yaml index 4a78fec1..ab193b3b 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -61,6 +61,7 @@ autoscaling: maxReplicas: 100 targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80 +revisionHistoryLimit: 0 nodeSelector: {}