Skip to content

Commit

Permalink
Merge pull request #319 from kube-hetzner/nginx-rancher-compatibility
Browse files Browse the repository at this point in the history
Ingress-Nginx default enhancement
  • Loading branch information
mysticaltech authored Sep 22, 2022
2 parents 100583e + 8e072ab commit dde16a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ persistence:

default_nginx_ingress_values = <<EOT
controller:
watchIngressWithoutClass: "true"
kind: "Deployment"
replicaCount: ${(local.agent_count > 2) ? 3 : (local.agent_count == 2) ? 2 : 1}
config:
"use-forwarded-headers": "true"
"compute-full-forwarded-for": "true"
Expand Down
2 changes: 2 additions & 0 deletions nginx_ingress_values.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

controller:
# These options can be found here https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/
watchIngressWithoutClass: "true"
kind: "DaemonSet"
config:
"use-forwarded-headers": "true"
"compute-full-forwarded-for": "true"
Expand Down

0 comments on commit dde16a2

Please sign in to comment.