Skip to content

The --protect-kernel-defaults argument is not set to True

Description

Protect tuned kernel parameters from overriding kubelet default kernel parameter values.
Kernel parameters are usually tuned and hardened by the system administrators before putting the systems into production. These parameters protect the kernel and the system. Your kubelet kernel defaults that rely on such parameters should be appropriately set to match the desired secured system state. Ignoring this could potentially lead to running pods with undesired kernel behavior.

Fix - Buildtime

Kubernetes

  • Kind: Pod
apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  labels:
    component: kubelet
    tier: control-plane
  name: kubelet
  namespace: kube-system
spec:
  containers:
  - command:
+   - kubelet
+   - --protect-kernel-defaults=true
    image: gcr.io/google_containers/kubelet-amd64:v1.6.0
    ...