C-0077 - K8s common labels usage

K8s common labels usage

Framework

DevOpsBest

Description of the the issue

Kubernetes common labels help manage and monitor Kubernetes cluster using different tools such as kubectl, dashboard and others in an interoperable way. Refer to https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/ for more information. This contol helps you find objects that don't have any of these labels defined.

Related resources

CronJob, DaemonSet, Deployment, Job, Pods, ReplicaSet, StatefulSet

What does this control test

Test will check if the list of label that start with app.kubernetes.io/ are defined.

Remediation

Define applicable labels or use the exception mechanism to prevent further notifications.

Example

No example


Did this page help you?