diff --git a/modules/kubernetes/ingress-nginx/main.tf b/modules/kubernetes/ingress-nginx/main.tf index 7f0706be9..aa142e63b 100644 --- a/modules/kubernetes/ingress-nginx/main.tf +++ b/modules/kubernetes/ingress-nginx/main.tf @@ -21,6 +21,7 @@ terraform { locals { namespace = "ingress-nginx" + values = templatefile("${path.module}/templates/values.yaml.tpl", {}) } resource "kubernetes_namespace" "this" { @@ -38,4 +39,5 @@ resource "helm_release" "ingress_nginx" { name = "ingress-nginx" namespace = kubernetes_namespace.this.metadata[0].name version = "v3.10.1" + values = [local.values] } diff --git a/modules/kubernetes/ingress-nginx/templates/values.yaml.tpl b/modules/kubernetes/ingress-nginx/templates/values.yaml.tpl new file mode 100644 index 000000000..66776716a --- /dev/null +++ b/modules/kubernetes/ingress-nginx/templates/values.yaml.tpl @@ -0,0 +1,6 @@ +controller: + replicaCount: 3 + service: + externalTrafficPolicy: Local + config: + server-tokens: "false" \ No newline at end of file