Skip to main content

KA-S003: Missing kind Field

Error Schema

Why This Matters

Every Kubernetes resource must specify a kind field that identifies the resource type.

How to Fix

Add the kind field for the resource type.

Before (incorrect)

apiVersion: apps/v1
metadata:
  name: my-app

After (correct)

apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-app

Rule Details

Rule Code
KA-S003
Severity
Error
Category
Schema

Related Rules