Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
terraform_module
/
standard_webservice
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 283d7a32
authored
Oct 26, 2023
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update volume
1 parent
20397683
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
24 deletions
main.tf
variables.tf
main.tf
View file @
283d7a3
...
@@ -50,19 +50,11 @@ module "deployment" {
...
@@ -50,19 +50,11 @@ module "deployment" {
{
{
volume_name = var.app_log_path_volume_name
volume_name = var.app_log_path_volume_name
path_on_node = var.app_log_path
path_on_node = var.app_log_path
},
{
volume_name = var.app_path_volume_name
path_on_node = var.app_path
}
}
]
]
volume_mount = [
volume_mount = [
{
{
mount_path = var.app_path
volume_name = var.app_path_volume_name
},
{
mount_path = var.app_log_path
mount_path = var.app_log_path
volume_name = var.app_log_path_volume_name
volume_name = var.app_log_path_volume_name
}
}
...
...
variables.tf
View file @
283d7a3
...
@@ -85,7 +85,7 @@ variable "walrus_metadata_namespace_name" {
...
@@ -85,7 +85,7 @@ variable "walrus_metadata_namespace_name" {
# @group "Advanced"
# @group "Advanced"
variable "probe_http_port" {
variable "probe_http_port" {
description = "(Optional)http port for probe"
description = "(Optional)http port for probe"
default = "80"
default = "80
80
"
type = string
type = string
}
}
...
@@ -93,7 +93,8 @@ variable "probe_http_port" {
...
@@ -93,7 +93,8 @@ variable "probe_http_port" {
# @group "Advanced"
# @group "Advanced"
variable "app_log_path_volume_name" {
variable "app_log_path_volume_name" {
type = string
type = string
default = "app_log_path"
description = "名字只能使用-,例: abc-22 abc-cc"
default = "app-log-path"
}
}
# @label "应用日志路径"
# @label "应用日志路径"
...
@@ -103,24 +104,11 @@ variable "app_log_path" {
...
@@ -103,24 +104,11 @@ variable "app_log_path" {
default = "/data/java_log"
default = "/data/java_log"
}
}
# @label "应用挂载卷名"
# @group "Advanced"
variable "app_path_volume_name" {
type = string
default = "app_path"
}
# @label "应用路径"
# @group "Advanced"
variable "app_path" {
type = string
default = "/app/soft/java_project"
}
# @label "重启策略"
# @label "重启策略"
# @group "Advanced"
# @group "Advanced"
variable "restart_policy" {
variable "restart_policy" {
type = string
type = string
description = "Restart policy for all containers within the pod. One of Always, OnFailure, Never"
description = "Restart policy for all containers within the pod. One of Always, OnFailure, Never"
default = "
Never
"
default = "
Always
"
}
}
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