Kube Service
A kube spring backend with route53 and such
Terraform Module Source
module "kube_service" {
source = "https://tfmodules.matillion-cto.matillion.com/kube_service.tar.gz"
...
}
Resources
| Name | Type |
|---|---|
| aws_ecr_repository.repository | resource |
| aws_iam_policy.main | resource |
| kubernetes_deployment.deployment | resource |
| kubernetes_ingress_v1.kube_ingress | resource |
| kubernetes_namespace.namespace | resource |
| kubernetes_service.service | resource |
| kubernetes_service.service_new | resource |
| aws_caller_identity.aws | data source |
| aws_elb_hosted_zone_id.elb_zone_id | data source |
| aws_iam_policy_document.empty_policy | data source |
| aws_region.current | data source |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| kube_config | n/a | object({ | n/a | yes |
| serviceName | The name of the service | string | n/a | yes |
| serviceUrlName | The first part of the URL, this gets combined with zone to be serviceUrlName.zone | string | n/a | yes |
| create_ecr_repository | n/a | bool | true | no |
| create_namespace | n/a | bool | true | no |
| ebPolicyJson | n/a | string | "" | no |
| envVars | n/a | map(string) | {} | no |
| expose_path | n/a | string | "/api/" | no |
| image_name | n/a | string | "" | no |
| image_version | n/a | string | "latest" | no |
| include_legacy_service_lb | n/a | bool | false | no |
| ingress_alternate_hosts | n/a | list(string) | [] | no |
| ingress_group | n/a | string | "shared-apis" | no |
| internalPort | n/a | number | 8080 | no |
| maxInstances | The maximum number of instances that should be created | number | 2 | no |
| minInstances | The minimum number of instances that should be created | number | 2 | no |
| namespace | n/a | string | "" | no |
| persistent_volumes | n/a | list(object({ | [] | no |
| profile | The spring profile that should be enabled | string | "preprod" | no |
| prometheus_enabled | n/a | bool | false | no |
| prometheus_path | n/a | string | "/actuator/prometheus" | no |
| prometheus_port | n/a | number | 0 | no |
| use_legacy_service_dns | n/a | bool | false | no |
| vpc_name | n/a | string | "public" | no |
| zone | The name of the Route53 zone to use | string | "matillion-cto.matillion.com" | no |
Outputs
| Name | Description |
|---|---|
| service_account | n/a |