Editing a sysctl parameters in my PODS

Hello,

I need to change keepalive parameters in my pods by adding parameters to sysctl but I’m not able to.
Always receiving errors regarding it’s a readonly file I tried by injecting the values in the yaml but I get the same error, did some faced this issue?

  containers:
  - command:
    - sh
    - -c
    - sysctl -e -w net.ipv4.tcp_keepalive_time=300;
    securityContext:
      privileged: true

or this:

  - args:
    - /etc/sysctl.d/00-alpine.conf
    - --net.ipv4.tcp_keepalive_time=300
    - --net.ipv4.tcp_keepalive_intvl=15
    - --net.ipv4.tcp_keepalive_probes=5

I read this inherit from the server but in my case it’s not.

Did some one faced this? any ideas to solve it?