Commit a3125367 by chenxx

update README.md

1 parent ab087939
Showing 1 changed file with 8 additions and 12 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 |
...@@ -15,8 +8,7 @@ It will generate an access endpoint as output for your web service, allowing it ...@@ -15,8 +8,7 @@ It will generate an access endpoint as output for your web service, allowing it
| Name | Version | | Name | Version |
|------|---------| |------|---------|
| <a name="provider_kubectl"></a> [kubectl](#provider\_kubectl) | 1.14.0 | | <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | n/a |
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.19.0 |
## Modules ## Modules
...@@ -29,22 +21,27 @@ It will generate an access endpoint as output for your web service, allowing it ...@@ -29,22 +21,27 @@ It will generate an access endpoint as output for your web service, allowing it
| Name | Type | | Name | Type |
|------|------| |------|------|
| [kubectl_manifest.ns](https://registry.terraform.io/providers/gavinbunney/kubectl/1.14.0/docs/resources/manifest) | resource |
| [kubernetes_service.service](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/data-sources/service) | data source | | [kubernetes_service.service](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/data-sources/service) | data source |
## Inputs ## Inputs
| 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/soft/java_project"` | no |
| <a name="input_custom_labels"></a> [custom\_labels](#input\_custom\_labels) | (Optional) Add custom label to pods | `map(string)` | `null` | 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 |
| <a name="input_limit_memory"></a> [limit\_memory](#input\_limit\_memory) | Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `""` | no | | <a name="input_limit_memory"></a> [limit\_memory](#input\_limit\_memory) | Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `""` | no |
| <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` | `"default"` | 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_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_seal_metadata_namespace_name"></a> [seal\_metadata\_namespace\_name](#input\_seal\_metadata\_namespace\_name) | Seal metadata namespace name. | `string` | `""` | no |
| <a name="input_seal_metadata_service_name"></a> [seal\_metadata\_service\_name](#input\_seal\_metadata\_service\_name) | Seal metadata service name. | `string` | `""` | no |
| <a name="input_volume_logs"></a> [volume\_logs](#input\_volume\_logs) | @label "app\_logs\_path" @group "Advanced" | `string` | `"/data/java_log"` | no |
## Outputs ## Outputs
...@@ -52,4 +49,3 @@ It will generate an access endpoint as output for your web service, allowing it ...@@ -52,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 -->
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!