-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
129 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# https://github.com/kubernetes/ingress-nginx/blob/helm-chart-4.10.1/charts/ingress-nginx/values.yaml | ||
|
||
%{~ if length(common_labels) > 0 } | ||
%{~ for lbl_key, lbl_value in common_labels } | ||
commonLabels: | ||
${lbl_key}: "${lbl_value}" | ||
%{~ endfor ~} | ||
%{~ endif ~} | ||
|
||
controller: | ||
resources: | ||
requests: | ||
cpu: 50m | ||
memory: 64Mi | ||
autoscaling: | ||
enabled: "true" | ||
minReplicas: ${ingress_nginx_controller_min_replicas} | ||
maxReplicas: ${ingress_nginx_controller_max_replicas} | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
config: | ||
body-size: "0" | ||
hsts-include-subdomains: "true" | ||
hsts-max-age: "63072000" | ||
hsts-preload: "true" | ||
proxy-body-size: "0" | ||
proxy-buffer-size: "128k" | ||
proxy-connect-timeout: "15" | ||
proxy-read-timeout: "600" | ||
proxy-send-timeout: "600" | ||
server-name-hash-bucket-size: "256" | ||
ssl-redirect: "true" | ||
ssl-reject-handshake: "true" | ||
service: | ||
externalTrafficPolicy: "Local" | ||
%{~ if set_controller_default_pod_anti_affinity } | ||
# Set the default antiaffinity. If you eneable the hpa, the pods will be distributed in different nodes. | ||
affinity: | ||
podAntiAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
- labelSelector: | ||
matchExpressions: | ||
- key: app.kubernetes.io/name | ||
operator: In | ||
values: | ||
- ingress-nginx | ||
- key: app.kubernetes.io/instance | ||
operator: In | ||
values: | ||
- ingress-nginx | ||
- key: app.kubernetes.io/component | ||
operator: In | ||
values: | ||
- controller | ||
topologyKey: "kubernetes.io/hostname" | ||
%{~ endif ~} | ||
|
||
defaultBackend: | ||
enabled: true | ||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,58 @@ | ||
variable "helm_release_name" { | ||
description = "Name of the helm release." | ||
type = string | ||
default = "ingress-nginx" | ||
} | ||
|
||
variable "chart_version" { | ||
description = "Chart version of the ingress controller" | ||
description = "Chart version of the ingress controller. Consider the default value the reference version of the module and the base of the values.yaml.tftpl file." | ||
type = string | ||
default = "4.10.1" | ||
} | ||
|
||
variable "create_namespace" { | ||
description = "Create namespace for the ingress controller. If false, the namespace must be created before using this module" | ||
description = "Create namespace for the ingress controller. If false, the namespace must be created before using this module." | ||
type = bool | ||
default = true | ||
} | ||
|
||
variable "namespace" { | ||
description = "Namespace of the ingress controller" | ||
description = "Namespace of the ingress controller." | ||
type = string | ||
} | ||
|
||
variable "namespace_additional_labels" { | ||
description = "Additional labels for the namespace of the ingress controller" | ||
description = "Additional labels for the namespace of the ingress controller." | ||
type = map(string) | ||
default = {} | ||
} | ||
|
||
variable "additional_values" { | ||
description = "Additional values to pass to the helm chart" | ||
description = "Additional values to pass to the helm chart." | ||
type = list(string) | ||
default = [] | ||
} | ||
|
||
variable "helm_release_name" { | ||
description = "Name of the helm release" | ||
type = string | ||
default = "ingress-nginx" | ||
variable "common_labels" { | ||
description = "Set of labels to apply to all resources." | ||
type = map(string) | ||
default = {} | ||
} | ||
|
||
variable "ingress_nginx_controller_min_replicas" { | ||
description = "Minimum number of replicas for the ingress controller." | ||
type = number | ||
default = 1 | ||
} | ||
|
||
variable "ingress_nginx_controller_max_replicas" { | ||
description = "Maximum number of replicas for the ingress controller." | ||
type = number | ||
default = 3 | ||
} | ||
|
||
variable "set_controller_default_pod_anti_affinity" { | ||
description = "Set the podAntiAffinity for the ingress controller." | ||
type = bool | ||
default = true | ||
} |