Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #48 from cabify/jvp/make-timeout-seconds-variable
Browse files Browse the repository at this point in the history
Make liveness probe timeout variable
  • Loading branch information
jesusvazquez authored Dec 14, 2018
2 parents 3a7ca1e + ed6a0f6 commit fb0fa00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/prometheus/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ variable "livenessprobe_delay" {
default = "30"
}

variable "livenessprobe_timeout_seconds" {
description = "Number of seconds after which the probe times out"
type = "string"
default = "5"
}

variable "external_url" {
description = "External URL. Read about web.external-url in prometheus config"
type = "string"
Expand Down
1 change: 1 addition & 0 deletions apps/prometheus/replication-controller.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ resource "kubernetes_replication_controller" "prometheus" {

initial_delay_seconds = "${var.livenessprobe_delay}"
period_seconds = 3
timeout_seconds = "${var.livenessprobe_timeout_seconds}"
}
}
}
Expand Down

0 comments on commit fb0fa00

Please sign in to comment.