redis
ballj/redis/kubernetes
Kubernetes module to deploy Redis
Terraform Kubernetes Redis This terraform module deploys a Redis statefulset into a kubernetes cluster. Usage `` module "redis" { source = "ballj/redis/kubernetes" version = "~> 1.0" namespace = "production" object_prefix = "myapp-db" labels = { "app.kubernetes.io/part-of" = "myapp" } } ` Variables Deployment Variables | Variable | Required | Default | Description | | --------------------------------- | -------- | --------------------------- | -------------------------------------------------- | | namespace | Yes | N/A | Kubernetes namespace to deploy into | | object_prefix | Yes | N/A | Unique name to prefix all objects with | | labels | No | N/A | Common labels to add to all objects - See example | | image_name | No | bitnami/redis | Image to deploy as part of deployment | | image_tag |
| Name | Type | Description | Default |
|---|---|---|---|
| object_prefix | string | Unique name to prefix all objects with | required |
| readiness_probe_success | number | Minimum consecutive successes for the probe to be considered successful after ha | 1 |
| liveness_probe_timeout | number | Timeout of the probe in seconds | 1 |
| startup_probe_success | number | Minimum consecutive successes for the probe to be considered successful after ha | 1 |
| annotations | map(string) | Annotations to add to the deployment | {} |
| resources_requests_memory | string | The minimum amount of compute resources required | "" |
| service_annotations | map(string) | Annotations to add to the service | {} |
| liveness_probe_period | number | Period of the probe in seconds | 10 |
| startup_probe_period | number | Period of the probe in seconds | 1 |
| password_required | bool | Force the use of a password | true |
| volume_tmp_medium | string | Medium of the empty_dir created for tmp | "Memory" |
| readiness_probe_failure | number | Minimum consecutive failures for the probe to be considered failed after having | 3 |
| timeout_update | string | Timeout for creating the statefulset | "2m" |
| service_account_name | string | Service account name to add to the pod | "" |
| volume_etc_size | string | Size of the empty_dir created for etc | "5Mi" |
| resources_requests_cpu | string | The maximum amount of compute resources allowed | "" |
| timeout_create | string | Timeout for creating the statefulset | "3m" |
| image_tag | string | Docker image tag to use | "6.2.5-debian-10-r70" |
| password_secret | string | Secret containing redis password | "" |
| wait_for_rollout | bool | Wait for the pod rollout to complete | true |
| volume_tmp_size | string | Size of the empty_dir created for tmp | "5Mi" |
| … and 10 more inputs | |||
hostname — Name of the kubernetes serviceport — Port for the kubernetes servicepassword_secret — Secret that is created with the Redis passwordpassword_key — Key for the Redis password in the secret