From caa6b701e22ad56207e0f742b3c45369a1972b95 Mon Sep 17 00:00:00 2001 From: Joy Liu Date: Sat, 21 Oct 2023 22:55:08 -0400 Subject: [PATCH] Add ConfigMap for Persistent Redis Configuration --- terraform/modules/base_cluster/redis.tf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 terraform/modules/base_cluster/redis.tf diff --git a/terraform/modules/base_cluster/redis.tf b/terraform/modules/base_cluster/redis.tf new file mode 100644 index 00000000..72bf4653 --- /dev/null +++ b/terraform/modules/base_cluster/redis.tf @@ -0,0 +1,13 @@ +resource "kubernetes_config_map" "redis_config_map" { + metadata { + name = "redis-config" + } + + data = { + "redis-config" = <<-EOF + save 3600 30 + dir /redis-master-data/ + dbfilename dump.rdb + EOF + } +}