Skip to content

Commit

Permalink
fix sysctl bock
Browse files Browse the repository at this point in the history
  • Loading branch information
patduin committed Jan 19, 2024
1 parent 1271258 commit a9f3f14
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions k8s-readwrite.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,18 @@ resource "kubernetes_deployment_v1" "apiary_hms_readwrite" {
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}"
},{
}
sysctl {
name="net.ipv4.tcp_keepalive_intvl"
value="${var.tcp_keepalive_intvl}"
},{
}
sysctl {
name="net.ipv4.tcp_keepalive_probes"
value="${var.tcp_keepalive_probes}"
}]
}
}
}
dynamic "init_container" {
Expand Down

0 comments on commit a9f3f14

Please sign in to comment.