Skip to content

Commit 387b569

Browse files
committed
updated readme
1 parent 99ff012 commit 387b569

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,29 @@ module "aws" {
3131
}
3232
3333
module "redis" {
34-
source = "squareops/redis/kubernetes"
34+
source = "squareops/redis/kubernetes"
35+
create_namespace = local.create_namespace
36+
namespace = local.namespace
3537
redis_config = {
36-
name = "redis"
38+
name = local.name
3739
values_yaml = file("./helm/values.yaml")
38-
environment = "prod"
40+
environment = local.environment
41+
app_version = "6.2.7-debian-11-r11"
3942
architecture = "replication"
4043
slave_volume_size = "10Gi"
4144
master_volume_size = "10Gi"
42-
storage_class_name = "gp3"
45+
storage_class_name = "gp2"
4346
slave_replica_count = 2
44-
store_password_to_secret_manager = true
47+
store_password_to_secret_manager = local.store_password_to_secret_manager
4548
secret_provider_type = "aws"
4649
}
4750
grafana_monitoring_enabled = true
48-
custom_credentials_enabled = true
49-
custom_credentials_config = {
50-
password = "aajdhgduy3873683dh"
51-
}
52-
redis_password = true ? "" : module.aws.redis_password
51+
custom_credentials_enabled = local.custom_credentials_enabled
52+
custom_credentials_config = local.custom_credentials_config
53+
redis_password = local.custom_credentials_enabled ? "" : module.aws.redis_password
5354
}
5455
56+
5557
```
5658
- Refer [AWS examples](https://github.com/squareops/terraform-kubernetes-redis/tree/main/examples/complete/aws) for more details.
5759
- Refer [Azure examples](https://github.com/squareops/terraform-kubernetes-redis/tree/main/examples/complete/azure) for more details.

examples/complete/aws/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ locals {
77
Expires = "Never"
88
Department = "Engineering"
99
}
10-
create_namespace = false
11-
namespace = ""
10+
create_namespace = true
11+
namespace = "redis"
1212
store_password_to_secret_manager = false
1313
custom_credentials_enabled = true
1414
custom_credentials_config = {

examples/complete/azure/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ locals {
77
Expires = "Never"
88
Department = "Engineering"
99
}
10-
create_namespace = false
11-
namespace = ""
10+
create_namespace = true
11+
namespace = "redis"
1212
store_password_to_secret_manager = true
1313
custom_credentials_enabled = true
1414
custom_credentials_config = {

examples/complete/gcp/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ locals {
77
Expires = "Never"
88
Department = "Engineering"
99
}
10-
create_namespace = false
11-
namespace = ""
10+
create_namespace = true
11+
namespace = "redis"
1212
store_password_to_secret_manager = true
1313
custom_credentials_enabled = true
1414
custom_credentials_config = {

0 commit comments

Comments
 (0)