Commit 597effd0 by chenxx

update

1 parent 28e80421
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
| <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_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_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"></a> [path](#input\_path) | 访问路径 | `string` | `"/"` | no |
| <a name="input_path_type"></a> [path\_type](#input\_path\_type) | Path type for ingress rule | `string` | `"ImplementationSpecific"` | 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_port"></a> [port](#input\_port) | Service ports to expose | `string` | `"7777"` | 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_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_probe_http_port"></a> [probe\_http\_port](#input\_probe\_http\_port) | (Optional)http port for probe | `string` | `"7777"` | no |
......
openapi: 3.0.3
info:
title: OpenAPI schema for template .
components:
schemas:
variables:
type: object
required:
- domain_name
- image
properties:
image:
title: Image
type: string
description: Docker image name
x-walrus-ui:
order: 1
domain_name:
title: Domain Name
type: string
description: 域名
x-walrus-ui:
order: 2
name:
title: Name
type: string
description: Name of the deployment resource. Auto-generated if empty.
default: ""
nullable: true
x-walrus-ui:
order: 3
port:
title: Port
type: string
description: Service ports to expose
default: "7777"
nullable: true
x-walrus-ui:
order: 4
env:
title: Env
type: object
description: 'Name and value pairs to set as the environment variables '
default: {}
nullable: true
additionalProperties:
type: string
x-walrus-ui:
colSpan: 12
order: 5
replicas:
title: Replicas
type: number
description: Replicas to deploy
default: 1
nullable: true
x-walrus-ui:
order: 6
request_cpu:
title: Request Cpu
type: string
description: |
Specify request_cpu value.
Examples:
```
可选值 0.2/0.3/0.5/1/2
```
default: "0.1"
nullable: true
x-walrus-ui:
order: 7
request_memory:
title: Request Memory
type: string
description: Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi
default: 128Mi
nullable: true
x-walrus-ui:
order: 8
limit_cpu:
title: Limit Cpu
type: string
description: CPU limit. e.g. 0.5, 1, 2
default: "0.5"
nullable: true
x-walrus-ui:
order: 9
limit_memory:
title: Limit Memory
type: string
description: Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi
default: 128Mi
nullable: true
x-walrus-ui:
order: 10
probe_http_port:
title: Probe Http Port
type: string
description: (Optional)http port for probe
default: "7777"
nullable: true
x-walrus-ui:
order: 11
probe_http_path:
title: Probe Http Path
type: string
description: (Optional)http path for probe
default: /
nullable: true
x-walrus-ui:
order: 12
restart_policy:
title: Restart Policy
type: string
description: Restart policy for all containers within the pod. One of Always,
OnFailure, Never
default: Always
nullable: true
x-walrus-ui:
order: 13
path_type:
title: Path Type
type: string
description: Path type for ingress rule ImplementationSpecific Exact Prefix
default: ImplementationSpecific
nullable: true
x-walrus-ui:
order: 14
path:
title: Path
type: string
description: 访问路径
default: /
nullable: true
x-walrus-ui:
order: 15
walrus_metadata_service_name:
title: Walrus Metadata Service Name
type: string
description: Walrus metadata service name.
default: ""
nullable: true
x-walrus-ui:
order: 16
walrus_metadata_namespace_name:
title: Walrus Metadata Namespace Name
type: string
description: Walrus metadata namespace name.
default: ""
nullable: true
x-walrus-ui:
order: 17
...@@ -30,11 +30,10 @@ variable "port" { ...@@ -30,11 +30,10 @@ variable "port" {
default = "7777" default = "7777"
} }
# @label "Environment Variables" # @label "Environment Variables"
# @options ["dev", "test", "release", "beta"]
# @group "Basic" # @group "Basic"
variable "env" { variable "env" {
type = map(string) 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 = {} default = {}
} }
# @label "Replicas" # @label "Replicas"
...@@ -64,7 +63,6 @@ EOF ...@@ -64,7 +63,6 @@ EOF
} }
} }
# @group "Resources" # @group "Resources"
# @options ["128Mi","512Mi", "1G"]
# @label "Memory Request" # @label "Memory Request"
variable "request_memory" { variable "request_memory" {
type = string type = string
...@@ -72,7 +70,6 @@ variable "request_memory" { ...@@ -72,7 +70,6 @@ variable "request_memory" {
default = "128Mi" default = "128Mi"
} }
# @group "Resources" # @group "Resources"
# @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
...@@ -80,7 +77,6 @@ variable "limit_cpu" { ...@@ -80,7 +77,6 @@ variable "limit_cpu" {
default = "0.5" default = "0.5"
} }
# @group "Resources" # @group "Resources"
# @options ["128Mi","512Mi", "1Gi","2Gi", "3Gi"]
# @label "Memory Limit" # @label "Memory Limit"
variable "limit_memory" { variable "limit_memory" {
type = string type = string
...@@ -117,11 +113,10 @@ variable "restart_policy" { ...@@ -117,11 +113,10 @@ variable "restart_policy" {
# @label "path_type" # @label "path_type"
# @options ["ImplementationSpecific","Exact","Prefix"]
# @group "ingress" # @group "ingress"
variable "path_type" { variable "path_type" {
type = string type = string
description = "Path type for ingress rule" description = "Path type for ingress rule ImplementationSpecific Exact Prefix"
default = "ImplementationSpecific" default = "ImplementationSpecific"
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!