diff --git a/chart.tf b/chart.tf index cb82661..2794d89 100644 --- a/chart.tf +++ b/chart.tf @@ -6,6 +6,9 @@ resource "helm_release" "traefik" { chart = "traefik" version = var.traefik_chart_version + # Helm chart deployment can sometimes take longer than the default 5 minutes + timeout = var.timeout_seconds + # If default_values == "" then apply default values from the chart if its anything else # then apply values file using the values_file input variable values = [var.default_values == "" ? var.default_values : file("${path.root}/${var.values_file}")] diff --git a/variables.tf b/variables.tf index 6f98381..613046b 100644 --- a/variables.tf +++ b/variables.tf @@ -10,6 +10,12 @@ variable "traefik_chart_version" { default = "10.7.1" # See https://artifacthub.io/packages/helm/traefik/traefik for latest version(s) } +# Helm chart deployment can sometimes take longer than the default 5 minutes +variable "timeout_seconds" { + type = number + default = 800 # 10 minutes +} + variable "replica_count" { description = "Number of replica pods to create" type = number