Commit 03962050 by chenxx

update3

1 parent b96e0858
......@@ -35,12 +35,12 @@
| <a name="input_limit_memory"></a> [limit\_memory](#input\_limit\_memory) | Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `"128Mi"` | no |
| <a name="input_name"></a> [name](#input\_name) | Name of the deployment resource. Auto-generated if empty. | `string` | `""` | no |
| <a name="input_path"></a> [path](#input\_path) | 访问路径 | `string` | `"/"` | no |
| <a name="input_path_type"></a> [path\_type](#input\_path\_type) | Path type for ingress rule ImplementationSpecific Exact Prefix | `string` | `"ImplementationSpecific"` | no |
| <a name="input_path_type"></a> [path\_type](#input\_path\_type) | Path type for ingress rule | `string` | `"ImplementationSpecific"` | no |
| <a name="input_port"></a> [port](#input\_port) | Service ports to expose | `string` | `"7777"` | no |
| <a name="input_probe_http_path"></a> [probe\_http\_path](#input\_probe\_http\_path) | (Optional)http path for probe | `string` | `"/"` | no |
| <a name="input_probe_http_port"></a> [probe\_http\_port](#input\_probe\_http\_port) | (Optional)http port for probe | `string` | `"7777"` | no |
| <a name="input_replicas"></a> [replicas](#input\_replicas) | Replicas to deploy | `number` | `1` | no |
| <a name="input_request_cpu"></a> [request\_cpu](#input\_request\_cpu) | Specify request\_cpu value.<br>Examples:<pre>可选值</pre> | `string` | `"0.1"` | no |
| <a name="input_request_cpu"></a> [request\_cpu](#input\_request\_cpu) | CPU request. e.g. 0.5, 1, 2 | `string` | `"0.1"` | no |
| <a name="input_request_memory"></a> [request\_memory](#input\_request\_memory) | Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `"128Mi"` | no |
| <a name="input_restart_policy"></a> [restart\_policy](#input\_restart\_policy) | Restart policy for all containers within the pod. One of Always, OnFailure, Never | `string` | `"Always"` | no |
| <a name="input_walrus_metadata_namespace_name"></a> [walrus\_metadata\_namespace\_name](#input\_walrus\_metadata\_namespace\_name) | Walrus metadata namespace name. | `string` | `""` | no |
......
......@@ -40,7 +40,7 @@ components:
env:
title: Env
type: object
description: 'Name and value pairs to set as the environment variables '
description: Name and value pairs to set as the environment variables
default: {}
nullable: true
additionalProperties:
......@@ -59,12 +59,7 @@ components:
request_cpu:
title: Request Cpu
type: string
description: |
Specify request_cpu value.
Examples:
```
可选值
```
description: CPU request. e.g. 0.5, 1, 2
default: "0.1"
nullable: true
x-walrus-ui:
......@@ -121,7 +116,7 @@ components:
path_type:
title: Path Type
type: string
description: Path type for ingress rule ImplementationSpecific Exact Prefix
description: Path type for ingress rule
default: ImplementationSpecific
nullable: true
x-walrus-ui:
......
......@@ -30,10 +30,11 @@ variable "port" {
default = "7777"
}
# @label "Environment Variables"
# @options ["dev", "test", "release", "beta"]
# @group "Basic"
variable "env" {
type = map(string)
description = "Name and value pairs to set as the environment variables "
description = "Name and value pairs to set as the environment variables"
default = {}
}
# @label "Replicas"
......@@ -43,26 +44,21 @@ variable "replicas" {
description = "Replicas to deploy"
default = 1
}
#
#Resources
#
# @group "Resources"
# @options ["0.2","0.3", "0.5","1", "2"]
# @label "CPU Request"
variable "request_cpu" {
description = <<-EOF
Specify request_cpu value.
Examples:
```
可选值
```
EOF
type = string
description = "CPU request. e.g. 0.5, 1, 2"
default = "0.1"
validation {
condition = var.request_cpu == "" || contains(["0.2", "0.3", "0.4", "0.5", "1", "2"], var.request_cpu)
error_message = "Invalid value"
}
}
# @group "Resources"
# @options ["128Mi","512Mi", "1G"]
# @label "Memory Request"
variable "request_memory" {
type = string
......@@ -70,6 +66,7 @@ variable "request_memory" {
default = "128Mi"
}
# @group "Resources"
# @options ["0.2","0.3", "0.5","1", "2"]
# @label "CPU Limit"
variable "limit_cpu" {
type = string
......@@ -77,6 +74,7 @@ variable "limit_cpu" {
default = "0.5"
}
# @group "Resources"
# @options ["128Mi","512Mi", "1Gi","2Gi", "3Gi"]
# @label "Memory Limit"
variable "limit_memory" {
type = string
......@@ -84,6 +82,9 @@ variable "limit_memory" {
default = "128Mi"
}
#
#Advanced
#
# @label "probe_port"
# @group "Advanced"
......@@ -113,10 +114,11 @@ variable "restart_policy" {
# @label "path_type"
# @options ["ImplementationSpecific","Exact","Prefix"]
# @group "ingress"
variable "path_type" {
type = string
description = "Path type for ingress rule ImplementationSpecific Exact Prefix"
description = "Path type for ingress rule"
default = "ImplementationSpecific"
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!