Commit 0b5757d1 by chenxx

add rolling update

1 parent 4f557cf8
......@@ -61,6 +61,10 @@ module "deployment" {
#affinity: default=true
prevent_deploy_on_the_same_node = var.prevent_deploy_on_the_same_node
#RollingUpdate
rolling_update = [{"max_surge": 1, "max_unavailable": 0}]
}
module "service" {
......
......@@ -306,6 +306,19 @@ components:
x-walrus-ui:
group: Advanced
order: 20
rolling_update:
title: Rolling Update
type: array
description: Rolling update config params. Present only if strategy_update
= RollingUpdate
default: []
items:
type: object
nullable: true
x-walrus-ui:
colSpan: 12
group: Advanced
order: 21
x-walrus-ui:
groupOrder:
- Basic
......
......@@ -163,4 +163,10 @@ variable "prevent_deploy_on_the_same_node" {
description = "Pod pod_anti_affinity rule, which prevents deploy same pod on one node."
type = bool
default = false
}
# @label "rolling_update"
# @group "advance"
variable "rolling_update" {
description = "Rolling update config params. Present only if strategy_update = RollingUpdate"
default = []
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!