Skip to content

Commit

Permalink
🕙 set default chart deploy timeout to 10 mins
Browse files Browse the repository at this point in the history
  • Loading branch information
colinwilson committed Dec 19, 2021
1 parent a5034d6 commit 47eab55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chart.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}")]
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47eab55

Please sign in to comment.