From d32983779a5f5acaee3e2289b69b9c4fba5f43eb Mon Sep 17 00:00:00 2001 From: paduin Date: Fri, 19 Jan 2024 16:57:03 +0100 Subject: [PATCH] fixed syscvtl block --- k8s.tf | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/k8s.tf b/k8s.tf index 1be4384..ee38f72 100644 --- a/k8s.tf +++ b/k8s.tf @@ -64,16 +64,18 @@ resource "kubernetes_deployment_v1" "waggle_dance" { dynamic "security_context" { for_each = var.enable_sysctl_config_in_eks ? ["enabled"] : [] content { - sysctl = [{ + sysctl { name="net.ipv4.tcp_keepalive_time" - value="${var.tcp_keepalive_time}" - },{ + value= var.tcp_keepalive_time + } + sysctl { name="net.ipv4.tcp_keepalive_intvl" - value="${var.tcp_keepalive_intvl}" - },{ + value= var.tcp_keepalive_intvl + } + sysctl { name="net.ipv4.tcp_keepalive_probes" - value="${var.tcp_keepalive_probes}" - }] + value= var.tcp_keepalive_probes + } } } container {