Skip to content

Commit

Permalink
Merge pull request #42 from nimbux911/adding_replica
Browse files Browse the repository at this point in the history
adding replica count for ingress-nginx and ingress-additional-nginx
  • Loading branch information
Ciejo authored Jul 25, 2023
2 parents 77e1330 + eba60a2 commit 824d625
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.7.1] - 2023-07-25

### Added
- Minimun Replica count for ingress-nginx and ingress-additional-nginx

## [4.7.0] - 2023-04-21

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ module "eks_main" {
| ingress\_requests\_memory | Set how much memory will be assigned to the request | `string` | `90Mi` | no |
| ingress\_service\_monitor\_enabled | Enable serviceMonitor for ingress-nginx helm chart | `bool` | `false` | no |
| ingress\_priority\_class\_name | allows you to set a priority class | `string` | `""` | no |
| ingress\_replicacount | Minimum Replicas count of ingress | `number` | `"1"` | no |
| helm\_ingress\_nginx\_additional\_enabled | Set if additional ingress-nginx Helm chart will be installed on the cluster. | `bool` | `false` | no |
| ingress\_additional\_chart\_version | Set the version for the chart | `string` | `4.0.18` | no |
| ingress\_additional\_http\_nodeport | Set port for additional ingress http nodePort | `int` | `31080` | no |
Expand All @@ -237,6 +238,7 @@ module "eks_main" {
| ingress\_additional\_requests\_cpu | Set how much cpu will be assigned to the request | `string` | `100m` | no |
| ingress\_additional\_requests\_memory | Set how much memory will be assigned to the request | `string` | `90Mi` | no |
| ingress\_additional\_priority\_class\_name | allows you to set a priority class | `string` | `""` | no |
| ingress\_additional\_replicacount | Minimum Replicas count of ingress additional | `number` | `"1"` | no |
| helm\_cluster\_autoscaler\_enabled | Set if cluster-autoscaler Helm chart will be installed on the cluster. | `bool` | `false` | no |
| cluster\_autoscaler\_chart\_version | Set the version for the chart | `string` | `9.16.1` | no |
| cluster\_autoscaler\_priority\_class\_name | allows you to set a priority class | `string` | `""` | no |
Expand Down
10 changes: 10 additions & 0 deletions helm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ resource "helm_release" "ingress_nginx" {
value = var.ingress_priority_class_name
}

set {
name = "controller.replicaCount"
value = var.ingress_replicacount
}

depends_on = [time_sleep.wait_20_seconds]

}
Expand Down Expand Up @@ -111,6 +116,11 @@ resource "helm_release" "ingress_nginx_additional" {
name = "controller.priorityClassName"
value = var.ingress_additional_priority_class_name
}

set {
name = "controller.replicaCount"
value = var.ingress_additional_replicacount
}

depends_on = [time_sleep.wait_20_seconds]

Expand Down
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -785,4 +785,16 @@ variable "grafana_persistence_enabled" {
}
variable "grafana_priority_class_name" {
default = ""
}

variable "ingress_replicacount" {
description = "Minimum Replicas count of ingress"
type = number
default = 1
}

variable "ingress_additional_replicacount" {
description = "Minimum Replicas count of ingress additional"
type = number
default = 1
}

0 comments on commit 824d625

Please sign in to comment.