Commit c2c00fb6 by chenxx

update

1 parent a3125367
Showing 1 changed file with 25 additions and 23 deletions
...@@ -12,8 +12,8 @@ module "deployment" { ...@@ -12,8 +12,8 @@ module "deployment" {
# #
wait_for_rollout = false wait_for_rollout = false
source = "terraform-iaac/deployment/kubernetes" source = "git::http://192.168.3.233:8090/terraform_module/terraform-kubernetes-deployment.git"
version = "1.4.2" version = "1.4.3"
name = local.name name = local.name
namespace = local.namespace namespace = local.namespace
...@@ -24,22 +24,22 @@ module "deployment" { ...@@ -24,22 +24,22 @@ module "deployment" {
request_memory = var.request_memory == "" ? null : var.request_memory request_memory = var.request_memory == "" ? null : var.request_memory
limit_memory = var.limit_memory == "" ? null : var.limit_memory limit_memory = var.limit_memory == "" ? null : var.limit_memory
} }
env = var.env env = var.env
labels = var.custom_labels labels = var.custom_labels
readiness_probe = { readiness_probe = {
http_get = { http_get = {
path = "/" path = "/"
port = var.probe_http_port port = var.probe_http_port
scheme = "HTTP" scheme = "HTTP"
}
success_threshold = 1
failure_threshold = 3
initial_delay_seconds = 10
period_seconds = 30
timeout_seconds = 3
} }
success_threshold = 1
failure_threshold = 3
initial_delay_seconds = 10
period_seconds = 30
timeout_seconds = 3
}
volume_host_path = [ volume_host_path = [
{ {
volume_name = var.volume_logs volume_name = var.volume_logs
path_on_node = "/data/java_log" path_on_node = "/data/java_log"
...@@ -54,19 +54,21 @@ module "deployment" { ...@@ -54,19 +54,21 @@ module "deployment" {
module "service" { module "service" {
source = "terraform-iaac/service/kubernetes" source = "git::http://192.168.3.233:8090/terraform_module/terraform-kubernetes-service.git"
version = "1.0.4" version = "1.0.4"
app_name = local.name app_name = local.name
app_namespace = local.namespace app_namespace = local.namespace
type = "NodePort" type = "NodePort"
port_mapping = [for p in var.ports : port_mapping = [
{ for p in var.ports :
name = "port-${p}" {
internal_port = p name = "port-${p}"
external_port = p internal_port = p
protocol = "TCP" external_port = p
}] protocol = "TCP"
}
]
} }
data "kubernetes_service" "service" { data "kubernetes_service" "service" {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!