Commit e46f03a1 by chenxx

v0.1 init

1 parent d6133d1f
...@@ -4,6 +4,23 @@ variable "image" { ...@@ -4,6 +4,23 @@ variable "image" {
type = string type = string
description = "Docker image name" description = "Docker image name"
} }
# @label "域名名字"
# @group "ingress"
variable "domain_name" {
type = string
description = "域名"
}
# @label "Deployment Name"
# @group "Advanced"
variable "name" {
type = string
description = "Name of the deployment resource. Auto-generated if empty."
}
# @label "Ports" # @label "Ports"
# @group "Basic" # @group "Basic"
variable "port" { variable "port" {
...@@ -35,7 +52,7 @@ variable "request_cpu" { ...@@ -35,7 +52,7 @@ variable "request_cpu" {
default = "0.1" default = "0.1"
} }
# @group "Resources" # @group "Resources"
# @options ["128Mi","512Mi", "1Gi"] # @options ["128Mi","512Mi", "1G"]
# @label "Memory Request" # @label "Memory Request"
variable "request_memory" { variable "request_memory" {
type = string type = string
...@@ -43,7 +60,7 @@ variable "request_memory" { ...@@ -43,7 +60,7 @@ variable "request_memory" {
default = "128Mi" default = "128Mi"
} }
# @group "Resources" # @group "Resources"
# @options ["0.2","0.3", "0.5","1", "2", "3", "4"] # @options ["0.2","0.3", "0.5","1", "2"]
# @label "CPU Limit" # @label "CPU Limit"
variable "limit_cpu" { variable "limit_cpu" {
type = string type = string
...@@ -56,36 +73,11 @@ variable "limit_cpu" { ...@@ -56,36 +73,11 @@ variable "limit_cpu" {
variable "limit_memory" { variable "limit_memory" {
type = string type = string
description = "Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi" description = "Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi"
default = "512Mi" default = "128Mi"
}
# @label "Namespace"
# @group "Advanced"
variable "namespace" {
type = string
description = "Namespace to deploy. Auto-generated if empty."
default = "default"
}
# @label "Deployment Name"
# @group "Advanced"
variable "name" {
type = string
description = "Name of the deployment resource. Auto-generated if empty."
default = ""
}
# @hidden
variable "walrus_metadata_service_name" {
type = string
description = "Walrus metadata service name."
default = ""
}
# @hidden
variable "walrus_metadata_namespace_name" {
type = string
description = "Walrus metadata namespace name."
default = ""
} }
# @label "probe_port" # @label "probe_port"
# @group "Advanced" # @group "Advanced"
variable "probe_http_port" { variable "probe_http_port" {
...@@ -104,8 +96,6 @@ variable "probe_http_path" { ...@@ -104,8 +96,6 @@ variable "probe_http_path" {
} }
# @label "重启策略" # @label "重启策略"
# @group "Advanced" # @group "Advanced"
variable "restart_policy" { variable "restart_policy" {
...@@ -115,12 +105,6 @@ variable "restart_policy" { ...@@ -115,12 +105,6 @@ variable "restart_policy" {
} }
# @label "域名名字"
# @group "ingress"
variable "domain_name" {
type = string
description = "域名"
}
# @label "path_type" # @label "path_type"
# @options ["ImplementationSpecific","Exact","Prefix"] # @options ["ImplementationSpecific","Exact","Prefix"]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!