Skip to content

Commit

Permalink
Use var.readiness_delay for liveness probe, switch to tcp liveness …
Browse files Browse the repository at this point in the history
…probe.
  • Loading branch information
BSick7 committed Jan 30, 2024
1 parent 9b92439 commit 6eb9a41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 0.6.2 (Jan 30, 2024)
* Use `var.readiness_delay` for liveness probe, switch to tcp liveness probe.

# 0.6.1 (Jan 30, 2024)
* Added readiness_delay, switch to tcp readiness check
* Added `var.readiness_delay`, switch to tcp readiness probe.

# 0.6.0 (Aug 08, 2023)
* Added compliance scanning.
Expand Down
9 changes: 4 additions & 5 deletions deployment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,13 @@ resource "kubernetes_deployment_v1" "this" {
liveness_probe {
failure_threshold = 3
success_threshold = 1
initial_delay_seconds = 0
initial_delay_seconds = var.readiness_delay
period_seconds = 10
timeout_seconds = 1

http_get {
scheme = "HTTP"
path = "/"
port = var.port

tcp_socket {
port = var.port
}
}

Expand Down

0 comments on commit 6eb9a41

Please sign in to comment.