Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 🚀 Redis addon 18.19.3 #28

Merged
merged 2 commits into from
Mar 25, 2024
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 .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Generate TF Docs
uses: terraform-docs/[email protected]
with:
working-dir: addons/cluster-autoscaler,addons/cert-manager,addons/ingress-nginx,addons/keda,addons/reloader,addons/kubeclarity,addons/external-dns,addons/external-secrets,addons/filebeat,addons/actions-runner-controller
working-dir: addons/cluster-autoscaler,addons/cert-manager,addons/ingress-nginx,addons/keda,addons/reloader,addons/kubeclarity,addons/external-dns,addons/external-secrets,addons/filebeat,addons/actions-runner-controller,addons/redis

git-push: true
template: |-
Expand Down
4 changes: 2 additions & 2 deletions _examples/basic/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ locals {
name = "helm-addons"
environment = "test"
region = "us-central1"
cluster_version = "1.29.0-gke.1381000"
gcp_project_id = "dev-env-3b53"
cluster_version = "1.29.1-gke.1589017"
gcp_project_id = "cloud-crew-testing"

tags = {
Name = local.name
Expand Down
2 changes: 2 additions & 0 deletions _examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,6 @@ module "addons" {
external_dns = true
external_secrets = true
actions_runner_controller = true
redis = true

}
34 changes: 34 additions & 0 deletions _examples/complete/config/override-redis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
global:
storageClass: ""
redis:
password: "redisPassword"

# -- master configuration parameters
master:
count: 1
persistence:
size: 4Gi
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "cloud.google.com/gke-nodepool"
operator: In
values:
- "critical"

# -- replicas configuration parameters
replica:
replicaCount: 2
persistence:
size: 4Gi
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "cloud.google.com/gke-nodepool"
operator: In
values:
- "critical"
4 changes: 2 additions & 2 deletions _examples/complete/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ locals {
name = "helm-addons"
environment = "test"
region = "us-central1"
cluster_version = "1.29.0-gke.1381000"
gcp_project_id = "dev-env-3b53"
cluster_version = "1.29.1-gke.1589017"
gcp_project_id = "cloud-crew-testing"
tags = {
Name = local.name
Environment = local.environment
Expand Down
3 changes: 3 additions & 0 deletions _examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ module "addons" {
filebeat = true
external_secrets = true
actions_runner_controller = true
redis = true


# -- Path of override-values.yaml file
Expand All @@ -216,6 +217,7 @@ module "addons" {
filebeat_helm_config = { values = [file("./config/overide-filebeat.yaml")] }
external_secrets_helm_config = { values = [file("./config/override-externalsecret.yaml")] }
actions_runner_controller_helm_config = { values = [file("./config/override-actions-runner-controller.yaml")] }
redis_helm_config = { values = [file("./config/override-redis.yaml")] }


# -- Override Helm Release attributes
Expand All @@ -229,5 +231,6 @@ module "addons" {
filebeat_extra_configs = var.filebeat_extra_configs
external_secrets_extra_configs = var.external_secrets_extra_configs
actions_runner_controller_extra_configs = var.actions_runner_controller_extra_configs
redis_extra_configs = var.redis_extra_configs

}
9 changes: 9 additions & 0 deletions _examples/complete/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,12 @@ variable "actions_runner_controller_extra_configs" {
type = any
default = {}
}

# ------------------ REDIS --------------------------------------------------
variable "redis_extra_configs" {
type = any
default = {
atomic = true
timeout = 300
}
}
58 changes: 58 additions & 0 deletions addons/redis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Redis Cluster Helm Chart

Redis is an advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs.


## Installation
#### Prerequisites
- **AWS EBS CSI Driver** has to be installed on EKS cluster to provision PVC.
Below terraform script shows how to use Redis Terraform Addon, A complete example is also given [here](https://github.com/clouddrove/terraform-helm-eks-addons/blob/master/_examples/complete/main.tf).
```hcl
module "addons" {
source = "clouddrove/gke-addons/google"
version = "0.1.2"

depends_on = [module.gke]
gke_cluster_name = module.gke.cluster_name

redis = true
}
```

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0.0 |
| <a name="requirement_kubernetes"></a> [kubernetes](#requirement\_kubernetes) | >= 2.10 |

## Providers

No providers.

## Modules

| Name | Source | Version |
|------|--------|---------|
| <a name="module_helm_addon"></a> [helm\_addon](#module\_helm\_addon) | ../helm | n/a |

## Resources

No resources.

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_helm_config"></a> [helm\_config](#input\_helm\_config) | Helm provider config for Redis Cluster | `any` | `{}` | no |
| <a name="input_redis_extra_configs"></a> [redis\_extra\_configs](#input\_redis\_extra\_configs) | Override attributes of helm\_release terraform resource | `any` | `{}` | no |

## Outputs

| Name | Description |
|------|-------------|
| <a name="output_chart_version"></a> [chart\_version](#output\_chart\_version) | n/a |
| <a name="output_namespace"></a> [namespace](#output\_namespace) | n/a |
| <a name="output_repository"></a> [repository](#output\_repository) | n/a |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Loading
Loading