Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion IAM.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ The Policy required to deploy this module:
"Microsoft.Resources/subscriptions/resourcegroups/read"]
not_actions = []
}
```
```
7 changes: 3 additions & 4 deletions README.md

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update versions in the README

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This module creates a Redis master and one or more Redis slaves, depending on th

| Redis Helm Chart Version | K8s supported version (EKS, AKS & GKE) |
| :-----: | :--- |
| **16.13.2** | **1.23,1.24,1.25,1.26,1.27** |
| **19.6.1** | **1.23,1.24,1.25,1.26,1.27,1.28,1.29** |

## Usage Example

Expand Down Expand Up @@ -117,15 +117,14 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_app_version"></a> [app\_version](#input\_app\_version) | Version of the Redis application that will be deployed. | `string` | `"6.2.7-debian-11-r11"` | no |
| <a name="input_chart_version"></a> [chart\_version](#input\_chart\_version) | Version of the chart for the Redis application that will be deployed. | `string` | `"16.13.2"` | no |
| <a name="input_chart_version"></a> [chart\_version](#input\_chart\_version) | Version of the chart for the Redis application that will be deployed. | `string` | `"19.6.1"` | no |
| <a name="input_create_namespace"></a> [create\_namespace](#input\_create\_namespace) | Specify whether or not to create the namespace if it does not already exist. Set it to true to create the namespace. | `string` | `true` | no |
| <a name="input_custom_credentials_config"></a> [custom\_credentials\_config](#input\_custom\_credentials\_config) | Specify the configuration settings for Redis to pass custom credentials during creation. | `any` | <pre>{<br> "password": ""<br>}</pre> | no |
| <a name="input_custom_credentials_enabled"></a> [custom\_credentials\_enabled](#input\_custom\_credentials\_enabled) | Specifies whether to enable custom credentials for Redis. | `bool` | `false` | no |
| <a name="input_grafana_monitoring_enabled"></a> [grafana\_monitoring\_enabled](#input\_grafana\_monitoring\_enabled) | Specify whether or not to deploy Redis exporter to collect Redis metrics for monitoring in Grafana. | `bool` | `false` | no |
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace where the Redis resources will be deployed. | `string` | `"redis"` | no |
| <a name="input_recovery_window_aws_secret"></a> [recovery\_window\_aws\_secret](#input\_recovery\_window\_aws\_secret) | Number of days that AWS Secrets Manager will wait before it can delete the secret. The value can be 0 to force deletion without recovery, or a range from 7 to 30 days. | `number` | `0` | no |
| <a name="input_redis_config"></a> [redis\_config](#input\_redis\_config) | Specify the configuration settings for Redis, including the name, environment, storage options, replication settings, store password to secret manager and custom YAML values. | `any` | <pre>{<br> "architecture": "replication",<br> "environment": "",<br> "master_volume_size": "",<br> "name": "",<br> "slave_replica_count": 1,<br> "slave_volume_size": "",<br> "storage_class_name": "",<br> "store_password_to_secret_manager": true,<br> "values_yaml": ""<br>}</pre> | no |
| <a name="input_redis_config"></a> [redis\_config](#input\_redis\_config) | Specify the configuration settings for Redis, including the name, environment, storage options, replication settings, store password to secret manager and custom YAML values. | `any` | <pre>{<br> "app_version": "7.2.5-debian-12-r2",<br> "architecture": "replication",<br> "environment": "",<br> "master_volume_size": "",<br> "name": "",<br> "slave_replica_count": 1,<br> "slave_volume_size": "",<br> "storage_class_name": "",<br> "store_password_to_secret_manager": true,<br> "values_yaml": ""<br>}</pre> | no |
| <a name="input_redis_password"></a> [redis\_password](#input\_redis\_password) | n/a | `string` | `""` | no |

## Outputs
Expand Down
4 changes: 2 additions & 2 deletions examples/complete/aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ No requirements.
| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_aws"></a> [aws](#module\_aws) | squareops/redis/kubernetes//modules/resources/aws | n/a |
| <a name="module_redis"></a> [redis](#module\_redis) | squareops/redis/kubernetes | n/a |

## Resources
Expand All @@ -29,8 +31,6 @@ No requirements.
|------|------|
| [aws_eks_cluster.cluster](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster) | data source |
| [aws_eks_cluster_auth.cluster](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster_auth) | data source |
| [google_client_config.default](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/client_config) | data source |
| [google_container_cluster.primary](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/container_cluster) | data source |

## Inputs

Expand Down
4 changes: 2 additions & 2 deletions examples/complete/aws/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ replica:
commonConfiguration: |-
# Enable AOF https://redis.io/topics/persistence#append-only-file
appendonly yes
maxclients 2000
maxclients 2000
# Disable RDB persistence, AOF persistence already enabled.
save ""
save ""
2 changes: 1 addition & 1 deletion examples/complete/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module "redis" {
name = local.name
values_yaml = file("./helm/values.yaml")
environment = local.environment
app_version = "6.2.7-debian-11-r11"
app_version = "7.2.5-debian-12-r2"
architecture = "replication"
slave_volume_size = "10Gi"
master_volume_size = "10Gi"
Expand Down
37 changes: 36 additions & 1 deletion examples/complete/azure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,39 @@ No inputs.
|------|-------------|
| <a name="output_redis_credential"></a> [redis\_credential](#output\_redis\_credential) | Redis credentials used for accessing the database. |
| <a name="output_redis_endpoints"></a> [redis\_endpoints](#output\_redis\_endpoints) | Redis endpoints in the Kubernetes cluster. |
<!-- END_TF_DOCS -->
<!-- END_TF_DOCS -->
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | n/a |

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_azure"></a> [azure](#module\_azure) | squareops/redis/kubernetes//modules/resources/azure | n/a |
| <a name="module_redis"></a> [redis](#module\_redis) | squareops/redis/kubernetes | n/a |

## Resources

| Name | Type |
|------|------|
| [azurerm_kubernetes_cluster.primary](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/kubernetes_cluster) | data source |

## Inputs

No inputs.

## Outputs

| Name | Description |
|------|-------------|
| <a name="output_redis_credential"></a> [redis\_credential](#output\_redis\_credential) | Redis credentials used for accessing the database. |
| <a name="output_redis_endpoints"></a> [redis\_endpoints](#output\_redis\_endpoints) | Redis endpoints in the Kubernetes cluster. |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
3 changes: 1 addition & 2 deletions examples/complete/gcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ No requirements.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_gcp"></a> [gcp](#module\_gcp) | squareops/redis/kubernetes//modules/resources/gcp | n/a |
| <a name="module_redis"></a> [redis](#module\_redis) | squareops/redis/kubernetes | n/a |

## Resources

| Name | Type |
|------|------|
| [aws_eks_cluster.cluster](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster) | data source |
| [aws_eks_cluster_auth.cluster](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster_auth) | data source |
| [google_client_config.default](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/client_config) | data source |
| [google_container_cluster.primary](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/container_cluster) | data source |

Expand Down
6 changes: 3 additions & 3 deletions examples/complete/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ locals {
create_namespace = true
namespace = "redis"
store_password_to_secret_manager = true
custom_credentials_enabled = true
custom_credentials_enabled = true
custom_credentials_config = {
password = "aajdhgduy3873683dh"
}
Expand Down Expand Up @@ -45,6 +45,6 @@ module "redis" {
}
grafana_monitoring_enabled = true
custom_credentials_enabled = local.custom_credentials_enabled
custom_credentials_config = local.custom_credentials_config
redis_password = local.custom_credentials_enabled ? "" : module.gcp.redis_password
custom_credentials_config = local.custom_credentials_config
redis_password = local.custom_credentials_enabled ? "" : module.gcp.redis_password
}
2 changes: 1 addition & 1 deletion examples/complete/gcp/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ provider "helm" {
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(data.google_container_cluster.primary.master_auth.0.cluster_ca_certificate)
}
}
}
Loading