set Recreate strategy for plotting-book deployment

iSCSI volumes are ReadWriteOnce and cannot multi-attach, so the old
pod must terminate before the new one starts.
This commit is contained in:
Viktor Barzin 2026-03-10 23:47:30 +00:00
parent 0d3ef78f3a
commit 8565d90d23
No known key found for this signature in database
GPG key ID: 0EB088298288D958

View file

@ -64,6 +64,9 @@ resource "kubernetes_deployment" "plotting-book" {
}
spec {
replicas = 1
strategy {
type = "Recreate"
}
selector {
match_labels = {
app = "plotting-book"