2024-05-28 22:23:45 +00:00
|
|
|
# terraform-library
|
|
|
|
|
|
|
|
This repository contained a set of terraform reusable library to deploy an application into kubernetes cluster.
|
|
|
|
|
|
|
|
usage example:
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
module "image-uploader-mock" {
|
2024-05-28 22:40:27 +00:00
|
|
|
source = "git::ssh://gitolite@antoine-roux.tk/virtualization/terraform-library.git?depth=1&ref=main"
|
2024-05-28 22:23:45 +00:00
|
|
|
application_name = "wiremock"
|
|
|
|
namespace = local.default_namespace
|
|
|
|
image = {
|
|
|
|
name = "container.localdomain/wiremock"
|
|
|
|
}
|
|
|
|
ports = [
|
|
|
|
{
|
|
|
|
container_port = 8083
|
|
|
|
expose = true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2024-09-25 20:06:35 +00:00
|
|
|
## running test
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ tf test
|
|
|
|
```
|