Skip to content

Commit

Permalink
Add ConfigMap for Persistent Redis Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
joyliu-q committed Oct 22, 2023
1 parent fe89ab0 commit caa6b70
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions terraform/modules/base_cluster/redis.tf
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit caa6b70

Please sign in to comment.