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 effa2da4
authored
Jan 19, 2024
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
upate args
1 parent
f33ab8a5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
README.md
main.tf
schema.yaml
variables.tf
README.md
View file @
effa2da
...
@@ -30,9 +30,9 @@
...
@@ -30,9 +30,9 @@
|------|-------------|------|---------|:--------:|
|------|-------------|------|---------|:--------:|
|
<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"
></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_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 |
`
string`
|
`"test"`
| no |
|
<a
name=
"input_args"
></a>
[
args
](
#input\_args
)
| 属于那个环境,例子:dev,test,beta,release |
`
list(string)`
|
<pre>
[
<br> "test"<br>
]
</pre>
| 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_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 pod
s |
`list(object({ hostname = list(string), ip = string }))`
|
`[]`
| no |
|
<a
name=
"input_hosts"
></a>
[
hosts
](
#input\_hosts
)
| (Optional)
host aliases 手动配置域名到host
s |
`list(object({ hostname = list(string), ip = string }))`
|
`[]`
| no |
|
<a
name=
"input_image"
></a>
[
image
](
#input\_image
)
| Docker image name |
`string`
| n/a | yes |
|
<a
name=
"input_image"
></a>
[
image
](
#input\_image
)
| Docker image name |
`string`
| n/a | yes |
|
<a
name=
"input_ingress_switch"
></a>
[
ingress\_switch
](
#input\_ingress\_switch
)
| choise ingress switch |
<pre>
object({
<br>
switch = optional(string)
<br>
path_type = optional(string)
<br>
path = optional(string)
<br>
domain_name = optional(string)
<br>
})
</pre>
|
<pre>
{
<br>
"domain_name": null,
<br>
"path": "/",
<br>
"path_type": "ImplementationSpecific",
<br>
"switch": "off"
<br>
}
</pre>
| no |
|
<a
name=
"input_ingress_switch"
></a>
[
ingress\_switch
](
#input\_ingress\_switch
)
| choise ingress switch |
<pre>
object({
<br>
switch = optional(string)
<br>
path_type = optional(string)
<br>
path = optional(string)
<br>
domain_name = optional(string)
<br>
})
</pre>
|
<pre>
{
<br>
"domain_name": null,
<br>
"path": "/",
<br>
"path_type": "ImplementationSpecific",
<br>
"switch": "off"
<br>
}
</pre>
| no |
|
<a
name=
"input_limit_cpu"
></a>
[
limit\_cpu
](
#input\_limit\_cpu
)
| CPU limit. e.g. 0.5, 1, 2 |
`string`
|
`"0.5"`
| no |
|
<a
name=
"input_limit_cpu"
></a>
[
limit\_cpu
](
#input\_limit\_cpu
)
| CPU limit. e.g. 0.5, 1, 2 |
`string`
|
`"0.5"`
| no |
...
...
main.tf
View file @
effa2da
...
@@ -50,7 +50,7 @@ module "deployment" {
...
@@ -50,7 +50,7 @@ module "deployment" {
}
}
]
]
#domian map
#domian map
to /etc/hosts
hosts = [
hosts = [
for host_list in var.hosts:
for host_list in var.hosts:
{
{
...
...
schema.yaml
View file @
effa2da
...
@@ -191,6 +191,8 @@ components:
...
@@ -191,6 +191,8 @@ components:
-
gh_beta
-
gh_beta
-
testcdp
-
testcdp
-
testscrm
-
testscrm
items
:
type
:
string
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
colSpan
:
12
colSpan
:
12
...
...
variables.tf
View file @
effa2da
...
@@ -117,9 +117,9 @@ variable "restart_policy" {
...
@@ -117,9 +117,9 @@ variable "restart_policy" {
# @options ["dev", "test", "beta", "release"]
# @options ["dev", "test", "beta", "release"]
# @group "Advanced"
# @group "Advanced"
variable "args" {
variable "args" {
type =
string
type =
list(string)
description = "属于那个环境,例子:dev,test,beta,release"
description = "属于那个环境,例子:dev,test,beta,release"
default =
"test"
default =
["test"]
}
}
# @label "chiose ingress switch on or off"
# @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