k8s-portal: use Recreate strategy, limit revision history to 3
Prevents stale pods serving old content during rapid successive deploys. With 1 replica + RollingUpdate, old and new pods briefly coexist.
This commit is contained in:
parent
6cc4d526f1
commit
c31ba2c50c
1 changed files with 4 additions and 0 deletions
|
|
@ -43,6 +43,10 @@ resource "kubernetes_deployment" "k8s_portal" {
|
||||||
|
|
||||||
spec {
|
spec {
|
||||||
replicas = 1
|
replicas = 1
|
||||||
|
strategy {
|
||||||
|
type = "Recreate"
|
||||||
|
}
|
||||||
|
revision_history_limit = 3
|
||||||
selector {
|
selector {
|
||||||
match_labels = {
|
match_labels = {
|
||||||
app = "k8s-portal"
|
app = "k8s-portal"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue