Image Tag should not be 'latest'

You should avoid using the :latest tag when deploying containers in production as it is harder to track which version of the image is running and more difficult to roll back properly. Instead, specify a meaningful tag such as '1.42.0.'

Risk Level: Low
Cloud Entity: Pods
CloudGuard Rule ID: D9.K8S.AC.03
Covered by Spectral: No
Category: Compute

GSL LOGIC

KubernetesPod should not have spec.containers contain-any [ image like '%:latest' ] or spec.initContainers contain-any [ image like '%:latest' ]

REMEDIATION

Pods

Pods are the smallest deployable units of computing that can be created and managed in Kubernetes.A Pod is a group of one or more containers (such as Docker containers), with shared storage/network, and a specification for how to run the containers.

Compliance Frameworks

  • Container Admission Control
  • Container Admission Control 1.0