From 29689b6bd53392baf7cb8a2d6572082fb6d9a537 Mon Sep 17 00:00:00 2001 From: dsgnr Date: Wed, 29 Sep 2021 08:18:17 +0100 Subject: [PATCH] Rename Redis manifest file and add Kubernetes probes --- CHANGELOG.md | 1 + .../redis/{redis.yml => deployment.yml} | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) rename manifests/templates/redis/{redis.yml => deployment.yml} (60%) diff --git a/CHANGELOG.md b/CHANGELOG.md index faaab84..1443ed3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. ## Unreleased +- Rename Redis manifest file and add Kubernetes probes - Ensure the form captures errors better - Make the form submit on return key press - Increase the check time on front-end and API Kubernetes deployments diff --git a/manifests/templates/redis/redis.yml b/manifests/templates/redis/deployment.yml similarity index 60% rename from manifests/templates/redis/redis.yml rename to manifests/templates/redis/deployment.yml index 86cb121..b03351e 100644 --- a/manifests/templates/redis/redis.yml +++ b/manifests/templates/redis/deployment.yml @@ -22,4 +22,18 @@ spec: containers: - name: {{ .Values.service.redis.name }} image: "{{ .Values.service.redis.image }}" - imagePullPolicy: IfNotPresent + imagePullPolicy: Always + livenessProbe: + exec: + command: + - redis-cli + - ping + initialDelaySeconds: 30 + timeoutSeconds: 5 + readinessProbe: + exec: + command: + - redis-cli + - ping + initialDelaySeconds: 10 + timeoutSeconds: 5