Git Product home page Git Product logo

terraform-kubernetes-redis's Introduction

Redis Module

This fork update the sl1pm4t's repository codes to support Terraform v0.14.x and remove requirement of custom kubernetes provider fork.

Port of the Redis helm chart for Terraform (Fixed for Terraform v0.14.x) supporting redis master and slaves replicas

Description

Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

(http://redis.io/)

Example Usage

module redis {
  source = "git::https://github.com/sanarena/terraform-kubernetes-redis"

  kubernetes_namespace = "redis"

  master_resource_limits = {
    cpu    = "500m"
    memory = "2Gi"
  }
  
  slave_replica_count  = 1
}

Inputs

Name Description Type Default Required
cluster_enabled Set to 'false' to deploy a redis master only. string true no
cluster_slave_count The number of redis slave pods to deploy. string 3 no
kubernetes_namespace # # Kubernetes settings # string default no
kubernetes_node_selector map <map> no
master_args Redis command arguments. Can be used to specify command line arguments, for example:

master_args = [ "redis-server", "--maxmemory-policy volatile-ttl" ]
list <list> no
master_disable_commands Comma-separated list of Redis commands to disable Can be used to disable Redis commands for security reasons. ref: https://github.com/bitnami/bitnami-docker-redis#disabling-redis-commands list <list> no
master_extra_flags Redis additional command line flags Can be used to specify command line flags, for example:

redisExtraFlags = [ "--maxmemory-policy volatile-ttl", "--repl-backlog-size 1024mb" ]
list <list> no
master_liveness_probe Redis Master Liveness Probe configuration map <map> no
master_persistence_access_modes string <list> no
master_persistence_enabled string true no
master_persistence_path string /bitnami/redis/data no
master_persistence_size string 8Gi no
master_persistence_storage_class string `` no
master_persistence_sub_path string `` no
master_pod_annotations map <map> no
master_pod_labels Redis Master additional pod labels ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ map <map> no
master_port # # Redis Master parameters # string 6379 no
master_readiness_probe Redis Master Readiness Probe configuration map <map> no
master_resource_limits Redis Master resource limits ref: http://kubernetes.io/docs/user-guide/compute-resources/ master_resource_limits = { memory = "256Mi" cpu = "100m" } map <map> no
master_resource_requests Redis Master resource requests ref: http://kubernetes.io/docs/user-guide/compute-resources/ master_resource_requests = { memory = "256Mi" cpu = "100m" } map <map> no
master_security_context string <map> no
master_service_annotations map <map> no
master_service_loadbalancer_ip string `` no
master_service_type string ClusterIP no
metrics_enabled Should the Redis Prometheus metrics exporter pod be deployed? string true no
metrics_image_pull_policy One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. string IfNotPresent no
metrics_image_pull_secrets list <list> no
metrics_image_registry The docker image registry used to retrieve the redis_exporter image string docker.io no
metrics_image_repository The redis metrics exporter docker image that will be deployed. string oliver006/redis_exporter no
metrics_image_tag The redis metrics exporter docker tag / version that will be deployed. string v0.11 no
metrics_pod_annotations map <map> no
metrics_port The port the metrics exporter will listen for scrape requests. string 9121 no
metrics_resource_limits Redis metrics resource limits ref: http://kubernetes.io/docs/user-guide/compute-resources/ metrics_resource_limits = { memory = "256Mi" cpu = "100m" } map <map> no
metrics_resource_requests Redis metrics resource requests ref: http://kubernetes.io/docs/user-guide/compute-resources/ metrics_resource_requests = { memory = "256Mi" cpu = "100m" } map <map> no
password Redis password (both master and slave) Defaults to a random 10-character alphanumeric string if not set and usePassword is true string `` no
redis_image_pull_policy One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. string IfNotPresent no
redis_image_registry The docker image registry used to retrieve the redis image string docker.io no
redis_image_repository string bitnami/redis no
redis_image_tag string 4.0.9 no
slave_args string <list> no
slave_pod_annotations string <map> no
slave_port string 6379 no
slave_replica_count # # Redis Slave parameters # string 3 no
slave_resource_limits Redis Slave resource limits ref: http://kubernetes.io/docs/user-guide/compute-resources/ slave_resource_limits = { memory = "256Mi" cpu = "100m" } map <map> no
slave_resource_requests Redis Slave resource requests ref: http://kubernetes.io/docs/user-guide/compute-resources/ slave_resource_requests = { memory = "256Mi" cpu = "100m" } map <map> no
slave_service_annotations map <map> no
slave_service_loadbalancer_ip string `` no
slave_service_type string ClusterIP no
use_password Set to 'false' to disable password protected access to redis. string true no

terraform-kubernetes-redis's People

Contributors

sl1pm4t avatar sanarena avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.