Skip to content

Commit

Permalink
kubernetes/ingress-nginx: configure externalTrafficPolicy (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
simongottschlag authored Mar 8, 2021
1 parent bc89cc4 commit 7b533cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/kubernetes/ingress-nginx/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ terraform {

locals {
namespace = "ingress-nginx"
values = templatefile("${path.module}/templates/values.yaml.tpl", {})
}

resource "kubernetes_namespace" "this" {
Expand All @@ -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]
}
6 changes: 6 additions & 0 deletions modules/kubernetes/ingress-nginx/templates/values.yaml.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
controller:
replicaCount: 3
service:
externalTrafficPolicy: Local
config:
server-tokens: "false"

0 comments on commit 7b533cf

Please sign in to comment.