diff --git a/deployment/kubernetes/templates/backend/Deployment.yaml b/deployment/kubernetes/templates/backend/Deployment.yaml index 1d7bcfad4..f475a0173 100644 --- a/deployment/kubernetes/templates/backend/Deployment.yaml +++ b/deployment/kubernetes/templates/backend/Deployment.yaml @@ -14,6 +14,7 @@ spec: replicas: 1 minReadySeconds: {{ .Values.BACKEND.MIN_READY_SECONDS }} progressDeadlineSeconds: {{ .Values.BACKEND.PROGRESS_DEADLINE_SECONDS }} + revisionHistoryLimit: {{ .Values.BACKEND.REVISIONS_HISTORY_LIMIT }} strategy: rollingUpdate: maxUnavailable: 1 diff --git a/deployment/kubernetes/templates/maintenance/Deployment.yaml b/deployment/kubernetes/templates/maintenance/Deployment.yaml index 6c4e7f8dd..5a2eb394e 100644 --- a/deployment/kubernetes/templates/maintenance/Deployment.yaml +++ b/deployment/kubernetes/templates/maintenance/Deployment.yaml @@ -11,6 +11,7 @@ metadata: app.kubernetes.io/managed-by: "{{ .Release.Service }}" helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" spec: + revisionHistoryLimit: {{ .Values.MAINTENANCE.REVISIONS_HISTORY_LIMIT }} strategy: rollingUpdate: maxUnavailable: 1 diff --git a/deployment/kubernetes/templates/neo4j/Deployment.yaml b/deployment/kubernetes/templates/neo4j/Deployment.yaml index 2176fb2d9..96867dbb5 100644 --- a/deployment/kubernetes/templates/neo4j/Deployment.yaml +++ b/deployment/kubernetes/templates/neo4j/Deployment.yaml @@ -12,6 +12,7 @@ metadata: helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" spec: replicas: 1 + revisionHistoryLimit: {{ .Values.NEO4J.REVISIONS_HISTORY_LIMIT }} strategy: rollingUpdate: maxUnavailable: 1 diff --git a/deployment/kubernetes/templates/webapp/Deployment.yaml b/deployment/kubernetes/templates/webapp/Deployment.yaml index 93d1639d4..a334738ec 100644 --- a/deployment/kubernetes/templates/webapp/Deployment.yaml +++ b/deployment/kubernetes/templates/webapp/Deployment.yaml @@ -14,6 +14,7 @@ spec: replicas: {{ .Values.WEBAPP.REPLICAS }} minReadySeconds: {{ .Values.WEBAPP.MIN_READY_SECONDS }} progressDeadlineSeconds: {{ .Values.WEBAPP.PROGRESS_DEADLINE_SECONDS }} + revisionHistoryLimit: {{ .Values.WEBAPP.REVISIONS_HISTORY_LIMIT }} strategy: rollingUpdate: maxUnavailable: 1 diff --git a/deployment/kubernetes/values.yaml.dist b/deployment/kubernetes/values.yaml.dist index 19df89e5d..52890e534 100644 --- a/deployment/kubernetes/values.yaml.dist +++ b/deployment/kubernetes/values.yaml.dist @@ -22,6 +22,7 @@ BACKEND: # Most likely you don't need to change this MIN_READY_SECONDS: "15" PROGRESS_DEADLINE_SECONDS: "60" + REVISIONS_HISTORY_LIMIT: "25" CONTAINER_RESTART_POLICY: "Always" CONTAINER_TERMINATION_GRACE_PERIOD_SECONDS: "30" DOCKER_IMAGE_PULL_POLICY: "Always" @@ -38,12 +39,14 @@ WEBAPP: REPLICAS: "2" MIN_READY_SECONDS: "15" PROGRESS_DEADLINE_SECONDS: "60" + REVISIONS_HISTORY_LIMIT: "25" CONTAINER_RESTART_POLICY: "Always" CONTAINER_TERMINATION_GRACE_PERIOD_SECONDS: "30" DOCKER_IMAGE_PULL_POLICY: "Always" NEO4J: # Most likely you don't need to change this + REVISIONS_HISTORY_LIMIT: "25" DOCKER_IMAGE_REPO: "ocelotsocialnetwork/neo4j" DOCKER_IMAGE_PULL_POLICY: "Always" CONTAINER_RESTART_POLICY: "Always" @@ -76,6 +79,7 @@ MAINTENANCE: DOCKER_IMAGE_REPO: "ocelotsocialnetwork/maintenance" # Most likely you don't need to change this + REVISIONS_HISTORY_LIMIT: "25" CONTAINER_RESTART_POLICY: "Always" CONTAINER_TERMINATION_GRACE_PERIOD_SECONDS: "30" DOCKER_IMAGE_PULL_POLICY: "Always"