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 0b5757d1
authored
Jun 04, 2024
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add rolling update
1 parent
4f557cf8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
main.tf
schema.yaml
variables.tf
main.tf
View file @
0b5757d
...
@@ -61,6 +61,10 @@ module "deployment" {
...
@@ -61,6 +61,10 @@ module "deployment" {
#affinity: default=true
#affinity: default=true
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
rolling_update = [{"max_surge": 1, "max_unavailable": 0}]
}
}
module "service" {
module "service" {
...
...
schema.yaml
View file @
0b5757d
...
@@ -306,6 +306,19 @@ components:
...
@@ -306,6 +306,19 @@ components:
x-walrus-ui
:
x-walrus-ui
:
group
:
Advanced
group
:
Advanced
order
:
20
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
:
x-walrus-ui
:
groupOrder
:
groupOrder
:
-
Basic
-
Basic
...
...
variables.tf
View file @
0b5757d
...
@@ -163,4 +163,10 @@ variable "prevent_deploy_on_the_same_node" {
...
@@ -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."
description = "Pod pod_anti_affinity rule, which prevents deploy same pod on one node."
type = bool
type = bool
default = false
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
\ 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