You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-13Lines changed: 19 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,25 +14,30 @@ This module creates a Redis master and one or more Redis slaves, depending on th
14
14
15
15
| Redis Helm Chart Version | K8s supported version |
16
16
| :-----: | :--- |
17
-
|**16.13.2**|**1.23,1.24,1.25**|
17
+
|**16.13.2**|**1.23,1.24,1.25,1.26,1.27**|
18
18
19
19
## Usage Example
20
20
21
21
```hcl
22
22
module "redis" {
23
23
source = "squareops/redis/kubernetes"
24
24
redis_config = {
25
-
name = "redis"
26
-
values_yaml = ""
27
-
environment = "prod"
28
-
architecture = "replication"
29
-
slave_volume_size = "10Gi"
30
-
master_volume_size = "10Gi"
31
-
storage_class_name = "gp3"
32
-
slave_replica_count = 2
25
+
name = "redis"
26
+
values_yaml = ""
27
+
environment = "prod"
28
+
architecture = "replication"
29
+
slave_volume_size = "10Gi"
30
+
master_volume_size = "10Gi"
31
+
storage_class_name = "gp3"
32
+
slave_replica_count = 2
33
+
store_password_to_secret_manager = true
33
34
}
34
35
grafana_monitoring_enabled = true
35
36
recovery_window_aws_secret = 0
37
+
custom_credentials_enabled = true
38
+
custom_credentials_config = {
39
+
password = "aajdhgduy3873683dh"
40
+
}
36
41
}
37
42
38
43
```
@@ -85,18 +90,19 @@ No modules.
85
90
| <aname="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 |
86
91
| <aname="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 |
87
92
| <aname="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 |
93
+
| <aname="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 |
94
+
| <aname="input_custom_credentials_enabled"></a> [custom\_credentials\_enabled](#input\_custom\_credentials\_enabled)| Specifies whether to enable custom credentials for Redis. |`bool`|`false`| no |
88
95
| <aname="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 |
89
96
| <aname="input_namespace"></a> [namespace](#input\_namespace)| Namespace where the Redis resources will be deployed. |`string`|`"redis"`| no |
90
97
| <aname="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 |
91
-
| <aname="input_redis_config"></a> [redis\_config](#input\_redis\_config)| Specify the configuration settings for Redis, including the name, environment, storage options, replication settings, 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> "values_yaml": ""<br>}</pre> | no |
98
+
| <aname="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": "",<br> "values_yaml": ""<br>}</pre> | no |
92
99
93
100
## Outputs
94
101
95
102
| Name | Description |
96
103
|------|-------------|
97
-
| <aname="output_redis_master_endpoint"></a> [redis\_master\_endpoint](#output\_redis\_master\_endpoint)| The endpoint for the Redis Master Service, which is the primary node in the Redis cluster responsible for handling read-write operations. |
98
-
| <aname="output_redis_port"></a> [redis\_port](#output\_redis\_port)| The port number on which Redis is running. |
99
-
| <aname="output_redis_slave_endpoint"></a> [redis\_slave\_endpoint](#output\_redis\_slave\_endpoint)| The endpoint for the Redis Slave Service, which is a secondary node in the Redis cluster responsible for handling read-only operations. |
104
+
| <aname="output_redis_credential"></a> [redis\_credential](#output\_redis\_credential)| Redis credentials used for accessing the database. |
105
+
| <aname="output_redis_endpoints"></a> [redis\_endpoints](#output\_redis\_endpoints)| Redis endpoints in the Kubernetes cluster. |
| <aname="output_redis_master_endpoint"></a> [redis\_master\_endpoint](#output\_redis\_master\_endpoint)| The endpoint for the Redis Master Service, which is the primary node in the Redis cluster responsible for handling read-write operations. |
42
-
| <aname="output_redis_port"></a> [redis\_port](#output\_redis\_port)| The port number on which Redis is running. |
43
-
| <aname="output_redis_slave_endpoint"></a> [redis\_slave\_endpoint](#output\_redis\_slave\_endpoint)| The endpoint for the Redis Slave Service, which is a secondary node in the Redis cluster responsible for handling read-only operations. |
41
+
| <aname="output_redis_credential"></a> [redis\_credential](#output\_redis\_credential)| Redis credentials used for accessing the database. |
42
+
| <aname="output_redis_endpoints"></a> [redis\_endpoints](#output\_redis\_endpoints)| Redis endpoints in the Kubernetes cluster. |
description="The port number on which Redis is running."
1
+
output"redis_endpoints" {
2
+
description="Redis endpoints in the Kubernetes cluster."
3
+
value=module.redis.redis_endpoints
4
4
}
5
5
6
-
output"redis_master_endpoint" {
7
-
value=module.redis.redis_master_endpoint
8
-
description="The endpoint for the Redis Master Service, which is the primary node in the Redis cluster responsible for handling read-write operations."
9
-
}
10
-
11
-
output"redis_slave_endpoint" {
12
-
value=module.redis.redis_slave_endpoint
13
-
description="The endpoint for the Redis Slave Service, which is a secondary node in the Redis cluster responsible for handling read-only operations."
6
+
output"redis_credential" {
7
+
description="Redis credentials used for accessing the database."
description="The endpoint for the Redis Master Service, which is the primary node in the Redis cluster responsible for handling read-write operations."
Copy file name to clipboardExpand all lines: variables.tf
+24-9Lines changed: 24 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,17 @@
1
1
variable"redis_config" {
2
2
type=any
3
3
default={
4
-
name =""
5
-
environment =""
6
-
master_volume_size =""
7
-
architecture ="replication"
8
-
slave_replica_count =1
9
-
slave_volume_size =""
10
-
storage_class_name =""
11
-
values_yaml =""
4
+
name =""
5
+
environment =""
6
+
master_volume_size =""
7
+
architecture ="replication"
8
+
slave_replica_count =1
9
+
slave_volume_size =""
10
+
storage_class_name =""
11
+
store_password_to_secret_manager =""
12
+
values_yaml =""
12
13
}
13
-
description="Specify the configuration settings for Redis, including the name, environment, storage options, replication settings, and custom YAML values."
14
+
description="Specify the configuration settings for Redis, including the name, environment, storage options, replication settings, store password to secret manager and custom YAML values."
14
15
}
15
16
16
17
variable"chart_version" {
@@ -48,3 +49,17 @@ variable "create_namespace" {
48
49
description="Specify whether or not to create the namespace if it does not already exist. Set it to true to create the namespace."
49
50
default=true
50
51
}
52
+
53
+
variable"custom_credentials_enabled" {
54
+
type=bool
55
+
default=false
56
+
description="Specifies whether to enable custom credentials for Redis."
57
+
}
58
+
59
+
variable"custom_credentials_config" {
60
+
type=any
61
+
default={
62
+
password =""
63
+
}
64
+
description="Specify the configuration settings for Redis to pass custom credentials during creation."
0 commit comments