diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 98a65a5..1dd9b0b 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -8,6 +8,7 @@ spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} selector: matchLabels: {{- include "chart.selectorLabels" . | nindent 6 }} diff --git a/chart/values.yaml b/chart/values.yaml index 29fb29c..55a0546 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -4,6 +4,7 @@ # This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ replicaCount: 1 +revisionHistoryLimit: 3 # This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ image: