☑️ Prevent deploying naked pods

It's preferable to manage services and applications in clusters using higher-level resources such as Deployments, StatefulSets and DaemonSets instead of raw Pod resources. These constructs include standard default features which, in most scenarios, are necessary to configure and maintain a stable cluster.

Targeted resources by this rule (types of kind): Pod

Enabled by default? False

Policy as code identifier: K8S_INCORRECT_KIND_VALUE_POD

This rule will fail

If kind type is set as Pod

YAML

Rule output in the CLI

Terminal

How to fix this failure

Deploy pods using higher-level resources

YAML

Read more