k8s-rwo-deployment-recreate-strategy

Community

Fix single-replica K8s deployment deadlocks.

Authoraldengolab
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Fixes deadlocks that occur when a single-replica Kubernetes Deployment uses a ReadWriteOnce PVC during rolling updates. The new pod cannot start because the old pod holds the volume, and the old pod often won't terminate due to maxUnavailable. Also covers the secondary error 'spec.strategy.rollingUpdate: Forbidden: may not be specified when strategy type is Recreate' when patching a live Deployment.

Core Features & Use Cases

  • Set Recreate strategy in Helm values in order to avoid RollingUpdate conflicts during upgrades.
  • Provide a safe, delete-and-recreate workflow when live deployments still expose rollingUpdate fields.
  • Verify the applied strategy and understand the downtime trade-off for single-replica stateful apps.

Quick Start

Set the deployment to Recreate and verify a successful upgrade to prevent deadlocks.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: k8s-rwo-deployment-recreate-strategy
Download link: https://github.com/aldengolab/lorist/archive/main.zip#k8s-rwo-deployment-recreate-strategy

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.