2

I would like to change the default tcp keep alive value in a Kubernetes pod, what's the recommended approach?

David Maze
  • 130,717
  • 29
  • 175
  • 215
Conundrum
  • 43
  • 1
  • 6

1 Answers1

1

You could do this via sysctls on the pod manifest in AKS/Kubernetes:

spec:
  securityContext:
    sysctls:
    - name: "net.ipv4.tcp_keepalive_time"
      value: "45"

Here is also further documentation:

https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/

https://docs.syseleven.de/metakube/de/tutorials/confiugre-unsafe-sysctls

Philip Welz
  • 2,449
  • 5
  • 12