Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
terraform_module
/
scrm_standard_template
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 52a470a8
authored
Jun 04, 2024
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update rolling update
1 parent
0b5757d1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
13 deletions
main.tf
schema.yaml
variables.tf
main.tf
View file @
52a470a
...
@@ -63,7 +63,12 @@ module "deployment" {
...
@@ -63,7 +63,12 @@ module "deployment" {
prevent_deploy_on_the_same_node = var.prevent_deploy_on_the_same_node
prevent_deploy_on_the_same_node = var.prevent_deploy_on_the_same_node
#RollingUpdate
#RollingUpdate
rolling_update = [{"max_surge": 1, "max_unavailable": 0}]
rolling_update = [
{
"max_surge" = var.max_surge,
"max_unavailable" = var.max_unavailable
}
]
}
}
...
...
schema.yaml
View file @
52a470a
...
@@ -306,19 +306,26 @@ components:
...
@@ -306,19 +306,26 @@ components:
x-walrus-ui
:
x-walrus-ui
:
group
:
Advanced
group
:
Advanced
order
:
20
order
:
20
rolling_updat
e
:
max_surg
e
:
title
:
Rolling Updat
e
title
:
Max Surg
e
type
:
array
type
:
number
description
:
Rolling update config params. Present only if strategy_update
description
:
Rolling update config params. Present only if strategy_update
= RollingUpdate
= RollingUpdate max_surge
default
:
[]
default
:
1
items
:
type
:
object
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
colSpan
:
12
group
:
Advanced
group
:
Advanced
order
:
21
order
:
21
max_unavailable
:
title
:
Max Unavailable
type
:
number
description
:
Rolling update config params. Present only if strategy_update
= RollingUpdate max_unavailable
default
:
0
nullable
:
true
x-walrus-ui
:
group
:
Advanced
order
:
22
x-walrus-ui
:
x-walrus-ui
:
groupOrder
:
groupOrder
:
-
Basic
-
Basic
...
...
variables.tf
View file @
52a470a
...
@@ -164,9 +164,16 @@ variable "prevent_deploy_on_the_same_node" {
...
@@ -164,9 +164,16 @@ variable "prevent_deploy_on_the_same_node" {
type = bool
type = bool
default = false
default = false
}
}
# @label "
rolling_updat
e"
# @label "
max_surg
e"
# @group "advance"
# @group "advance"
variable "rolling_update" {
variable "max_surge" {
description = "Rolling update config params. Present only if strategy_update = RollingUpdate"
description = "Rolling update config params. Present only if strategy_update = RollingUpdate max_surge"
default = []
default = 1
}
# @label "max_unavailable"
# @group "advance"
variable "max_unavailable" {
description = "Rolling update config params. Present only if strategy_update = RollingUpdate max_unavailable"
default = 0
}
}
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment