redis

AckeeCZ/redis/memorystore

Terraform Module HCL MEMORYSTORE

Terraform module for deploying Redis cluster on GCP with additions to the GKE cluster to provide compatibility with goproxie

Install
module "redis" {
source = "AckeeCZ/redis/memorystore"
version = "3.2.0"
}
plain text: /constructs/tfmod-ackeecz-redis-memorystore/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Redis instance in Memorystore store with stateful set deployment to GKE This module is here just cause we wanted to deploy Redis in Memorystore and create proxy pod for it to create simple access for developers. Once everything is deployed, use goproxie to forward traffic from a local machine. For normal applications running in the GCP, use google_redis_instance_hostname from outputs. Usage ``hcl module "redis" { source = "AckeeCZ/redis/memorystore" project = var.project namespace = var.namespace cluster_ca_certificate = module.gke.cluster_ca_certificate cluster_user = module.gke.cluster_username cluster_password = module.gke.cluster_password cluster_endpoint = module.gke.endpoint } ` Before you do anything in this module Install pre-commit hooks by running following commands: `s

Inputs (13)
NameTypeDescriptionDefault
cluster_ca_certificatestringPublic CA certificate that is the root of trust for the GKE K8s cluster required
projectstringName of GCP project required
zonestringThe zone where the instance will be provisioned. If not provided, the service wi required
cluster_tokenstringCluster master token, keep always secret! required
cluster_endpointstringCluster control plane endpoint required
networkstringAuthorized network allowed to communicate with redis instance"default"
instance_namestringRedis instances name"redis"
display_namestringRedis instances display name, if empty taken from instance_name""
tierstringThe service tier of the instance. Must be one of these values: BASIC, STANDARD_H"BASIC"
memory_size_gbnumberRedis memory size in GiB1
namespacestringK8s namespace used to deploy endpoints and services"production"
regionstringGCP region"europe-west3"
redis_versionstringRedis instance version. Must be on of these values: REDIS_5_0, REDIS_4_0, REDIS_"REDIS_4_0"
Outputs (2)
google_redis_instance_hostname — Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service
google_redis_instance_port — The port number of the exposed Redis endpoint
Resources (3)
google_project_servicegoogle_redis_instancekubernetes_stateful_set
Details
FrameworkTerraform Module
LanguageHCL
Version3.2.0
Cloud MEMORYSTORE
★ Stars1
Forks1
Total downloads19.1k
Inputs13
Outputs2
Resources3
NamespaceAckeeCZ
Updated