Commit f500c9bd by chenxx

update var

1 parent 57dce19e
...@@ -47,7 +47,7 @@ module "deployment" { ...@@ -47,7 +47,7 @@ module "deployment" {
timeout_seconds = 3 timeout_seconds = 3
} }
# start time 4 minute # start time 4 minute failure_threshold * period_seconds = 4m
startup_probe = { startup_probe = {
http_get = { http_get = {
path = var.probe_http_path path = var.probe_http_path
......
...@@ -9,7 +9,6 @@ variable "image" { ...@@ -9,7 +9,6 @@ variable "image" {
variable "ports" { variable "ports" {
type = list(number) type = list(number)
description = "Service ports to expose" description = "Service ports to expose"
default = [80]
} }
# @label "Environment Variables" # @label "Environment Variables"
# @options ["dev", "test", "release", "beta"] # @options ["dev", "test", "release", "beta"]
...@@ -91,6 +90,7 @@ variable "walrus_metadata_namespace_name" { ...@@ -91,6 +90,7 @@ variable "walrus_metadata_namespace_name" {
variable "probe_http_port" { variable "probe_http_port" {
description = "(Optional)http port for probe" description = "(Optional)http port for probe"
type = string type = string
default = var.ports[0]
} }
# @label "probe_path" # @label "probe_path"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!