I setup a k8s cluster using microk8s. I wonder how to change the default TCP Keep Alive Value in the Pod. When i apply the yaml file, it will give me allowedUnsafeSysctls error
apiVersion: apps/v1
kind: Deployment
metadata:
name: input-adaptor-deployment
namespace: mgr-ns
spec:
replicas: 1
selector:
matchLabels:
component: input-adaptor
template:
metadata:
labels:
component: input-adaptor
spec:
securityContext:
sysctls:
- name: net.ipv4.tcp_keepalive_intvl
value: "45"
- name: net.ipv4.tcp_keepalive_probes
value: "15"
- name: net.ipv4.tcp_keepalive_time
value: "120"
containers:
- name: input-adaptor
image: registry.development.gitlab/food/input-adaptor
resources:
requests:
memory: '16Mi'
cpu: '100m'
limits:
memory: '80Mi'
cpu: '500m'
ports:
- containerPort: 5003
imagePullSecrets:
- name: registry-credentials-gitlab
: