Commit 283d7a32 by chenxx

update volume

1 parent 20397683
......@@ -50,19 +50,11 @@ module "deployment" {
{
volume_name = var.app_log_path_volume_name
path_on_node = var.app_log_path
},
{
volume_name = var.app_path_volume_name
path_on_node = var.app_path
}
]
volume_mount = [
{
mount_path = var.app_path
volume_name = var.app_path_volume_name
},
{
mount_path = var.app_log_path
volume_name = var.app_log_path_volume_name
}
......
......@@ -85,7 +85,7 @@ variable "walrus_metadata_namespace_name" {
# @group "Advanced"
variable "probe_http_port" {
description = "(Optional)http port for probe"
default = "80"
default = "8080"
type = string
}
......@@ -93,7 +93,8 @@ variable "probe_http_port" {
# @group "Advanced"
variable "app_log_path_volume_name" {
type = string
default = "app_log_path"
description = "名字只能使用-,例: abc-22 abc-cc"
default = "app-log-path"
}
# @label "应用日志路径"
......@@ -103,24 +104,11 @@ variable "app_log_path" {
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 "重启策略"
# @group "Advanced"
variable "restart_policy" {
type = string
description = "Restart policy for all containers within the pod. One of Always, OnFailure, Never"
default = "Never"
default = "Always"
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!