rolling update uptime kuma to avoid breaking the wal and sqlite db [ci skip]

This commit is contained in:
Viktor Barzin 2024-01-21 03:33:57 +00:00
parent dffc718fcb
commit 970e87c7b8
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -9,9 +9,9 @@ module "tls_secret" {
resource "kubernetes_namespace" "uptime-kuma" { resource "kubernetes_namespace" "uptime-kuma" {
metadata { metadata {
name = "uptime-kuma" name = "uptime-kuma"
labels = { # labels = {
"istio-injection" : "enabled" # "istio-injection" : "enabled"
} # }
} }
} }
@ -28,6 +28,9 @@ resource "kubernetes_deployment" "uptime-kuma" {
} }
spec { spec {
replicas = 1 replicas = 1
strategy {
type = "Recreate"
}
selector { selector {
match_labels = { match_labels = {
app = "uptime-kuma" app = "uptime-kuma"