Skill / SKILL.md

K8s Cloudnative Pg Troubleshooting

k8s-servant/k8s-skills

Use when a CloudNativePG (CNPG) PostgreSQL Cluster in Kubernetes is not healthy: a Cluster stuck in "Setting up primary", "Creating a new replica" or "Waiting for the instances to become active", fewer ready instances than requested, an initdb or join pod that is Pending or in CreateContainerConfigError, PVCs that stay Pending, a bootstrap Secret that is missing, a replica that cannot be scheduled (pod anti-affinity, nodeSelector, taints), "Not enough disk space", failing WAL archiving or backups (ContinuousArchiving, LastBackupSucceeded False), a failover or switchover that does not finish, "Invalid cluster definition" or "Cluster is unrecoverable", and operator errors. Investigates with kubectl get, describe, events and logs, never reading Secrets, and proposes fixes. Reads first and asks before changing anything.
2 views 39 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use when a CloudNativePG (CNPG) PostgreSQL Cluster in Kubernetes is not healthy: a Cluster stuck in "Setting up primary", "Creating a new replica" or "Waiting for the instances to become active", fewer ready instances than requested, an initdb or join pod that is Pending or in CreateContainerConfigError, PVCs that stay Pending, a bootstrap Secret that is missing, a replica that cannot be scheduled (pod anti-affinity, nodeSelector, taints), "Not enough disk space", failing WAL archiving or backups (ContinuousArchiving, LastBackupSucceeded False), a failover or switchover that does not finish, "Invalid cluster definition" or "Cluster is unrecoverable", and operator errors. Investigates with kubectl get, describe, events and logs, never reading Secrets, and proposes fixes. Reads first and asks before changing anything.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/k8s-servant/k8s-skills' skill-source

Use the complete skill-source/skills/k8s-cloudnative-pg-troubleshooting directory with your client’s skill installer.

  • skills/k8s-cloudnative-pg-troubleshooting

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/k8s-cloudnative-pg-troubleshooting

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
fe45682a2a72669c8dcd42cb8db2e3423d68d5852c658c16d1a10c76614b92ce
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills