Skip to main content

KA-R006: No rolling update strategy

Warning Reliability

Why This Matters

The Deployment uses a non-RollingUpdate strategy (e.g., Recreate). The Recreate strategy terminates all existing pods before creating new ones, causing downtime during every deployment. Use RollingUpdate for zero-downtime rollouts.

How to Fix

Set strategy type to RollingUpdate

Before (incorrect)

spec:
  strategy:
    type: Recreate

After (correct)

spec:
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0

Rule Details

Rule Code
KA-R006
Severity
Warning
Category
Reliability

Related Rules