Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
terraform_module
/
scrm_standard_template
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 2bc3992b
authored
Jan 19, 2024
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update 2
1 parent
c9a6154a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
15 deletions
README.md
schema.yaml
variables.tf
README.md
View file @
2bc3992
...
...
@@ -30,7 +30,7 @@
|------|-------------|------|---------|:--------:|
|
<a
name=
"input_app_log_path"
></a>
[
app\_log\_path
](
#input\_app\_log\_path
)
| @label "应用日志路径" @group "Advanced" |
`string`
|
`"/data/java_log"`
| no |
|
<a
name=
"input_app_log_path_volume_name"
></a>
[
app\_log\_path\_volume\_name
](
#input\_app\_log\_path\_volume\_name
)
| 应用日志挂载卷名,名字只能使用-,例: abc-22 abc-cc |
`string`
|
`"app-log-path"`
| no |
|
<a
name=
"input_args"
></a>
[
args
](
#input\_args
)
| 属于那个环境,例子:dev,test,beta,release |
`
list(string)`
|
<pre>
[
<br> "release"<br>
]
</pre>
| no |
|
<a
name=
"input_args"
></a>
[
args
](
#input\_args
)
| 属于那个环境,例子:dev,test,beta,release |
`
string`
|
`"test"`
| no |
|
<a
name=
"input_env"
></a>
[
env
](
#input\_env
)
| Name and value pairs to set as the environment variables |
`map(string)`
|
`{}`
| no |
|
<a
name=
"input_hosts"
></a>
[
hosts
](
#input\_hosts
)
| (Optional) Add /etc/hosts records to pods |
`list(object({ hostname = list(string), ip = string }))`
|
`[]`
| no |
|
<a
name=
"input_image"
></a>
[
image
](
#input\_image
)
| Docker image name |
`string`
| n/a | yes |
...
...
@@ -39,7 +39,7 @@
|
<a
name=
"input_limit_memory"
></a>
[
limit\_memory
](
#input\_limit\_memory
)
| Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi |
`string`
|
`"512Mi"`
| no |
|
<a
name=
"input_name"
></a>
[
name
](
#input\_name
)
| Name of the deployment resource. Auto-generated if empty. |
`string`
| n/a | yes |
|
<a
name=
"input_namespace"
></a>
[
namespace
](
#input\_namespace
)
| Namespace to deploy. Auto-generated if empty. |
`string`
| n/a | yes |
|
<a
name=
"input_ports"
></a>
[
ports
](
#input\_ports
)
| Service ports to expose |
`list(number)`
|
<pre>
[
<br>
"6666"
<br>
]
</pre>
| no |
|
<a
name=
"input_ports"
></a>
[
ports
](
#input\_ports
)
| Service ports to expose |
`list(number)`
|
<pre>
[
<br>
6666
<br>
]
</pre>
| 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
)
| 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 |
...
...
schema.yaml
View file @
2bc3992
...
...
@@ -37,13 +37,13 @@ components:
type
:
array
description
:
Service ports to expose
default
:
-
"
6666"
-
6666
items
:
type
:
number
nullable
:
true
x-walrus-ui
:
colSpan
:
12
group
:
Basic
group
:
Advanced
order
:
4
env
:
title
:
Env
...
...
@@ -55,7 +55,7 @@ components:
type
:
string
x-walrus-ui
:
colSpan
:
12
group
:
Basic
group
:
Advanced
order
:
5
replicas
:
title
:
Replicas
...
...
@@ -64,7 +64,7 @@ components:
default
:
1
nullable
:
true
x-walrus-ui
:
group
:
Basic
group
:
Advanced
order
:
6
request_cpu
:
title
:
Request Cpu
...
...
@@ -180,10 +180,9 @@ components:
order
:
15
args
:
title
:
Args
type
:
array
type
:
string
description
:
属于那个环境,例子:dev,test,beta,release
default
:
-
test
default
:
test
enum
:
-
dev
-
test
...
...
@@ -193,12 +192,10 @@ components:
-
gh_beta
-
testcdp
-
testscrm
items
:
type
:
string
nullable
:
true
x-walrus-ui
:
colSpan
:
12
group
:
Basic
group
:
Advanced
order
:
16
ingress_switch
:
title
:
Ingress Switch
...
...
@@ -217,19 +214,25 @@ components:
type
:
string
x-walrus-ui
:
order
:
4
showIf
:
switch=on
path
:
nullable
:
true
title
:
Path
type
:
string
x-walrus-ui
:
order
:
3
showIf
:
switch=on
path_type
:
nullable
:
true
title
:
Path Type
type
:
string
x-walrus-ui
:
order
:
2
showIf
:
switch=on
switch
:
enum
:
-
"
off"
-
"
on"
nullable
:
true
title
:
Switch
type
:
string
...
...
variables.tf
View file @
2bc3992
...
...
@@ -24,7 +24,7 @@ variable "name" {
variable "ports" {
type = list(number)
description = "Service ports to expose"
default = [
"6666"
]
default = [
6666
]
}
# @label "Environment Variables"
# @options ["dev", "test", "release", "beta"]
...
...
@@ -117,9 +117,9 @@ variable "restart_policy" {
# @options ["dev", "test", "beta", "release"]
# @group "Advanced"
variable "args" {
type =
list(string)
type =
string
description = "属于那个环境,例子:dev,test,beta,release"
default =
["release"]
default =
"test"
}
# @label "chiose ingress switch on or off"
...
...
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