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:
parent
0d3ef78f3a
commit
8565d90d23
1 changed files with 3 additions and 0 deletions
|
|
@ -64,6 +64,9 @@ resource "kubernetes_deployment" "plotting-book" {
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
replicas = 1
|
replicas = 1
|
||||||
|
strategy {
|
||||||
|
type = "Recreate"
|
||||||
|
}
|
||||||
selector {
|
selector {
|
||||||
match_labels = {
|
match_labels = {
|
||||||
app = "plotting-book"
|
app = "plotting-book"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue