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
Hide 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" {
prevent_deploy_on_the_same_node = var.prevent_deploy_on_the_same_node
#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:
x-walrus-ui
:
group
:
Advanced
order
:
20
rolling_updat
e
:
title
:
Rolling Updat
e
type
:
array
max_surg
e
:
title
:
Max Surg
e
type
:
number
description
:
Rolling update config params. Present only if strategy_update
= RollingUpdate
default
:
[]
items
:
type
:
object
= RollingUpdate max_surge
default
:
1
nullable
:
true
x-walrus-ui
:
colSpan
:
12
group
:
Advanced
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
:
groupOrder
:
-
Basic
...
...
variables.tf
View file @
52a470a
...
...
@@ -164,9 +164,16 @@ variable "prevent_deploy_on_the_same_node" {
type = bool
default = false
}
# @label "
rolling_updat
e"
# @label "
max_surg
e"
# @group "advance"
variable "rolling_update" {
description = "Rolling update config params. Present only if strategy_update = RollingUpdate"
default = []
variable "max_surge" {
description = "Rolling update config params. Present only if strategy_update = RollingUpdate max_surge"
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
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