# webservice **Repository Path**: orangedeng/webservice ## Basic Information - **Project Name**: webservice - **Description**: test - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-08-24 - **Last Updated**: 2023-08-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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. ## Requirements | Name | Version | |------|---------| | [kubectl](#requirement\_kubectl) | 1.14.0 | ## Providers | Name | Version | |------|---------| | [kubernetes](#provider\_kubernetes) | n/a | ## Modules | Name | Source | Version | |------|--------|---------| | [deployment](#module\_deployment) | terraform-iaac/deployment/kubernetes | 1.4.2 | | [service](#module\_service) | terraform-iaac/service/kubernetes | 1.0.4 | ## Resources | Name | Type | |------|------| | [kubernetes_service.service](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/data-sources/service) | data source | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [env](#input\_env) | Name and value pairs to set as the environment variables | `map(string)` | `{}` | no | | [image](#input\_image) | Docker image name | `string` | n/a | yes | | [limit\_cpu](#input\_limit\_cpu) | CPU limit. e.g. 0.5, 1, 2 | `string` | `""` | no | | [limit\_memory](#input\_limit\_memory) | Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `""` | no | | [name](#input\_name) | Name of the deployment resource. Auto-generated if empty. | `string` | `""` | no | | [namespace](#input\_namespace) | Namespace to deploy. Auto-generated if empty. | `string` | `""` | no | | [ports](#input\_ports) | Service ports to expose | `list(number)` |
[| no | | [replicas](#input\_replicas) | Replicas to deploy | `number` | `1` | no | | [request\_cpu](#input\_request\_cpu) | CPU request. e.g. 0.5, 1, 2 | `string` | `"0.1"` | no | | [request\_memory](#input\_request\_memory) | Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `"128Mi"` | no | | [walrus\_metadata\_namespace\_name](#input\_walrus\_metadata\_namespace\_name) | Walrus metadata namespace name. | `string` | `""` | no | | [walrus\_metadata\_service\_name](#input\_walrus\_metadata\_service\_name) | Walrus metadata service name. | `string` | `""` | no | ## Outputs | Name | Description | |------|-------------| | [ports](#output\_ports) | Service Ports | | [service\_ip](#output\_service\_ip) | Service IP |
80
]