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 {