Requirements
| Name | Version |
|---|---|
| kubectl | 1.14.0 |
Providers
| Name | Version |
|---|---|
| kubernetes | n/a |
Modules
| Name | Source | Version |
|---|---|---|
| deployment | ./modules/deployment/kubernetes | n/a |
| service | ./modules/service/kubernetes | n/a |
Resources
| Name | Type |
|---|---|
| kubernetes_service.service | data source |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| app_log_path | @label "应用日志路径" @group "Advanced" | string |
"/data/java_log" |
no |
| app_log_path_volume_name | 名字只能使用-,例: abc-22 abc-cc | string |
"app-log-path" |
no |
| args | (Optional) Arguments to the entrypoint | list(string) |
[ |
no |
| env | Name and value pairs to set as the environment variables | map(string) |
{} |
no |
| image | Docker image name | string |
n/a | yes |
| limit_cpu | CPU limit. e.g. 0.5, 1, 2 | string |
"" |
no |
| limit_memory | Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | string |
"" |
no |
| name | Name of the deployment resource. Auto-generated if empty. | string |
"" |
no |
| namespace | Namespace to deploy. Auto-generated if empty. | string |
"" |
no |
| ports | Service ports to expose | list(number) |
[ |
no |
| probe_http_port | (Optional)http port for probe | string |
"8080" |
no |
| replicas | Replicas to deploy | number |
1 |
no |
| request_cpu | CPU request. e.g. 0.5, 1, 2 | string |
"0.1" |
no |
| request_memory | Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | string |
"128Mi" |
no |
| restart_policy | Restart policy for all containers within the pod. One of Always, OnFailure, Never | string |
"Always" |
no |
| walrus_metadata_namespace_name | Walrus metadata namespace name. | string |
"" |
no |
| walrus_metadata_service_name | Walrus metadata service name. | string |
"" |
no |
Outputs
| Name | Description |
|---|---|
| ports | Service Ports |
| service_ip | Service IP |