Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
terraform_module
/
lighttpd_standard_webservice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 597effd0
authored
Dec 28, 2023
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update
1 parent
28e80421
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
155 additions
and
8 deletions
README.md
schema.yaml
variables.tf
README.md
View file @
597effd
...
...
@@ -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_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 |
`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_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 |
...
...
schema.yaml
0 → 100644
View file @
597effd
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
variables.tf
View file @
597effd
...
...
@@ -30,11 +30,10 @@ 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"
...
...
@@ -64,7 +63,6 @@ EOF
}
}
# @group "Resources"
# @options ["128Mi","512Mi", "1G"]
# @label "Memory Request"
variable "request_memory" {
type = string
...
...
@@ -72,7 +70,6 @@ variable "request_memory" {
default = "128Mi"
}
# @group "Resources"
# @options ["0.2","0.3", "0.5","1", "2"]
# @label "CPU Limit"
variable "limit_cpu" {
type = string
...
...
@@ -80,7 +77,6 @@ variable "limit_cpu" {
default = "0.5"
}
# @group "Resources"
# @options ["128Mi","512Mi", "1Gi","2Gi", "3Gi"]
# @label "Memory Limit"
variable "limit_memory" {
type = string
...
...
@@ -117,11 +113,10 @@ variable "restart_policy" {
# @label "path_type"
# @options ["ImplementationSpecific","Exact","Prefix"]
# @group "ingress"
variable "path_type" {
type = string
description = "Path type for ingress rule"
description = "Path type for ingress rule
ImplementationSpecific Exact Prefix
"
default = "ImplementationSpecific"
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment