Skip to main content

KA-X003: ConfigMap reference not found

Info Cross-Resource

Why This Matters

A workload references a ConfigMap that is not defined in the manifest. If the ConfigMap does not exist at deploy time, the Pod will fail to start with a CreateContainerConfigError. This may be expected if the ConfigMap is created out-of-band or by an operator.

How to Fix

Add the referenced ConfigMap to the manifest

Before (incorrect)

volumes:
  - name: config
    configMap:
      name: app-config

After (correct)

volumes:
  - name: config
    configMap:
      name: app-config
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: app-config
data:
  key: value

Rule Details

Rule Code
KA-X003
Severity
Info
Category
Cross-Resource

Related Rules