More Info:
Always pull images.Risk Level
LowAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
Open the kube-apiserver static pod manifest for editing
On every control plane node: -
Locate the
--enable-admission-pluginsargument
In thespec.containers[0].commandlist, find the line starting with: -
Ensure
AlwaysPullImagesis included in the plugins list
Edit that line so it includesAlwaysPullImagessomewhere in the comma-separated list, for example:If the argument is not present at all, add a new line in thecommandlist: -
Save the file and allow kubelet to restart the API server
Save and exit the editor. The kubelet will automatically detect the manifest change and restart thekube-apiserverpod. Be aware this briefly restarts the API server on this node. -
Verify the kube-apiserver process includes
AlwaysPullImages
After 10–30 seconds, on the same control plane node, run:Confirm the output contains an--enable-admission-plugins=argument whose value includesAlwaysPullImages.
Using kubectl
Using kubectl
kubectl cannot be used to enable the
AlwaysPullImages admission plugin because this setting is defined in the kube-apiserver static pod manifest on the host. To remediate this finding, edit /etc/kubernetes/manifests/kube-apiserver.yaml directly on every control plane node as described in the Manual Steps section.Automation
Automation

