diff --git a/stacks/tuya-bridge/main.tf b/stacks/tuya-bridge/main.tf index 4d87f8aa..574ed95d 100644 --- a/stacks/tuya-bridge/main.tf +++ b/stacks/tuya-bridge/main.tf @@ -118,6 +118,26 @@ resource "kubernetes_deployment" "tuya-bridge" { } } } + liveness_probe { + http_get { + path = "/health" + port = 8080 + } + initial_delay_seconds = 60 + period_seconds = 30 + timeout_seconds = 5 + failure_threshold = 6 + } + readiness_probe { + http_get { + path = "/health" + port = 8080 + } + initial_delay_seconds = 10 + period_seconds = 15 + timeout_seconds = 5 + failure_threshold = 2 + } resources { requests = { cpu = "10m"