SV-242442r712682_rule
V-242442
SRG-APP-000454-CTR-001110
CNTR-K8-002700
CAT II
10
Remove any old pods that are using older images. On the Master node, run the command:
kubectl delete pod podname
(Note: "podname" is the name of the pod to delete.)
To view all pods and the images used to create the pods, from the Master node, run the following command:
kubectl get pods --all-namespaces -o jsonpath="{..image}" | \
tr -s '[[:space:]]' '\n' | \
sort | \
uniq -c
Review the images used for pods running within Kubernetes.
If there are multiple versions of the same image, this is a finding.
V-242442
False
CNTR-K8-002700
To view all pods and the images used to create the pods, from the Master node, run the following command:
kubectl get pods --all-namespaces -o jsonpath="{..image}" | \
tr -s '[[:space:]]' '\n' | \
sort | \
uniq -c
Review the images used for pods running within Kubernetes.
If there are multiple versions of the same image, this is a finding.
M
5376