From 47eab55f7a3bcc9ee20979839be0279f3bc8698c Mon Sep 17 00:00:00 2001 From: Colin Wilson Date: Sun, 19 Dec 2021 17:46:43 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=95=99=20set=20default=20chart=20deploy?= =?UTF-8?q?=20timeout=20to=2010=20mins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chart.tf | 3 +++ variables.tf | 6 ++++++ 2 files changed, 9 insertions(+) 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