Skip to content

Commit

Permalink
feat: enable toggling the nginx-ingress (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-acosta authored May 7, 2024
1 parent 85313e2 commit 8c7cb24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nginx-ingress.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
resource "helm_release" "nginx-ingress-controller" {
count = var.enable_nginx_ingress_controller == "true" ? 1 : 0

namespace = "nginx-ingress"
create_namespace = true

name = "nginx-ingress-controller"
repository = "https://kubernetes.github.io/ingress-nginx"
chart = "ingress-nginx"
version = "4.8.0"
timeout = 600
timeout = 600

set {
name = "rbac.create"
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,9 @@ variable "tags" {
type = map(any)
description = "List of custom tags to add to the install resources. Used for taxonomic purposes."
}

variable "enable_nginx_ingress_controller" {
type = string
default = "true"
description = "Toggle the nginx-ingress controller in the EKS cluster."
}

0 comments on commit 8c7cb24

Please sign in to comment.