Skip to main content

KA-B005: Missing required labels

Info Best Practice

Why This Matters

The resource is missing recommended labels (app, version). Standard labels enable consistent service discovery, monitoring dashboard filters, and operational tooling. Without them, resources are harder to identify and manage at scale.

How to Fix

Add app and version labels to the resource metadata

Before (incorrect)

metadata:
  name: my-app

After (correct)

metadata:
  name: my-app
  labels:
    app: my-app
    version: "1.0"

Rule Details

Rule Code
KA-B005
Severity
Info
Category
Best Practice

Related Rules