Commit 18285afe by chenxx

update

1 parent 144ae52c
Showing 1 changed file with 5 additions and 10 deletions
# Web Service Module
This module provides an efficient way to create a Kubernetes deployment and service for a web service.
It will generate an access endpoint as output for your web service, allowing it to be accessed from other services or applications.
<!-- BEGIN_TF_DOCS -->
## Requirements ## Requirements
| Name | Version | | Name | Version |
...@@ -21,8 +14,8 @@ It will generate an access endpoint as output for your web service, allowing it ...@@ -21,8 +14,8 @@ It will generate an access endpoint as output for your web service, allowing it
| Name | Source | Version | | Name | Source | Version |
|------|--------|---------| |------|--------|---------|
| <a name="module_deployment"></a> [deployment](#module\_deployment) | terraform-iaac/deployment/kubernetes | 1.4.2 | | <a name="module_deployment"></a> [deployment](#module\_deployment) | ./modules/deployment/kubernetes | n/a |
| <a name="module_service"></a> [service](#module\_service) | terraform-iaac/service/kubernetes | 1.0.4 | | <a name="module_service"></a> [service](#module\_service) | ./modules/service/kubernetes | n/a |
## Resources ## Resources
...@@ -34,6 +27,7 @@ It will generate an access endpoint as output for your web service, allowing it ...@@ -34,6 +27,7 @@ It will generate an access endpoint as output for your web service, allowing it
| Name | Description | Type | Default | Required | | Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:| |------|-------------|------|---------|:--------:|
| <a name="input_app_path"></a> [app\_path](#input\_app\_path) | @label "app\_path" @group "Advanced" | `string` | `"app-path"` | 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_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_limit_cpu"></a> [limit\_cpu](#input\_limit\_cpu) | CPU limit. e.g. 0.5, 1, 2 | `string` | `""` | no | | <a name="input_limit_cpu"></a> [limit\_cpu](#input\_limit\_cpu) | CPU limit. e.g. 0.5, 1, 2 | `string` | `""` | no |
...@@ -41,9 +35,11 @@ It will generate an access endpoint as output for your web service, allowing it ...@@ -41,9 +35,11 @@ It will generate an access endpoint as output for your web service, allowing it
| <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_namespace"></a> [namespace](#input\_namespace) | Namespace to deploy. Auto-generated if empty. | `string` | `""` | no | | <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace to deploy. Auto-generated if empty. | `string` | `""` | no |
| <a name="input_ports"></a> [ports](#input\_ports) | Service ports to expose | `list(number)` | <pre>[<br> 80<br>]</pre> | no | | <a name="input_ports"></a> [ports](#input\_ports) | Service ports to expose | `list(number)` | <pre>[<br> 80<br>]</pre> | no |
| <a name="input_probe_http_port"></a> [probe\_http\_port](#input\_probe\_http\_port) | (Optional)http port for probe | `string` | `"80"` | no |
| <a name="input_replicas"></a> [replicas](#input\_replicas) | Replicas to deploy | `number` | `1` | 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_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 | | <a name="input_request_memory"></a> [request\_memory](#input\_request\_memory) | Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `"128Mi"` | no |
| <a name="input_volume_logs"></a> [volume\_logs](#input\_volume\_logs) | @label "app\_logs\_path" @group "Advanced" | `string` | `"volume-logs"` | no |
| <a name="input_walrus_metadata_namespace_name"></a> [walrus\_metadata\_namespace\_name](#input\_walrus\_metadata\_namespace\_name) | Walrus metadata namespace name. | `string` | `""` | no | | <a name="input_walrus_metadata_namespace_name"></a> [walrus\_metadata\_namespace\_name](#input\_walrus\_metadata\_namespace\_name) | Walrus metadata namespace name. | `string` | `""` | no |
| <a name="input_walrus_metadata_service_name"></a> [walrus\_metadata\_service\_name](#input\_walrus\_metadata\_service\_name) | Walrus metadata service name. | `string` | `""` | no | | <a name="input_walrus_metadata_service_name"></a> [walrus\_metadata\_service\_name](#input\_walrus\_metadata\_service\_name) | Walrus metadata service name. | `string` | `""` | no |
...@@ -53,4 +49,3 @@ It will generate an access endpoint as output for your web service, allowing it ...@@ -53,4 +49,3 @@ It will generate an access endpoint as output for your web service, allowing it
|------|-------------| |------|-------------|
| <a name="output_ports"></a> [ports](#output\_ports) | Service Ports | | <a name="output_ports"></a> [ports](#output\_ports) | Service Ports |
| <a name="output_service_ip"></a> [service\_ip](#output\_service\_ip) | Service IP | | <a name="output_service_ip"></a> [service\_ip](#output\_service\_ip) | Service IP |
<!-- END_TF_DOCS -->
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!