# Failing Deployments

Investigates failing Kubernetes pods and Flux HelmReleases to identify root causes of deployment issues in the home-ops cluster.

**Canonical URL:** https://skillshunter.net/skills/discovered-1b40bcaac3e10cb445032fac5cae055ae6e7c801ab79142e

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-1b40bcaac3e10cb445032fac5cae055ae6e7c801ab79142e

**Markdown URL:** https://skillshunter.net/skills/discovered-1b40bcaac3e10cb445032fac5cae055ae6e7c801ab79142e.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-1b40bcaac3e10cb445032fac5cae055ae6e7c801ab79142e/download

**Category:** Software & Development

**Source URL:** https://github.com/damacus/skills/blob/5706f70c0058822adf29da9bd7620c7ea780b9d6/skills/operations/failing-deployments/SKILL.md

**Source commit:** 5706f70c0058822adf29da9bd7620c7ea780b9d6

**Listing approved at:** 2026-12-02

**Created at:** 2026-11-30T08:54:35.000000Z

**Updated at:** 2026-12-02T09:15:01.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before running any commands, ensure that `kubectl` and `flux` are installed and configured to interact with the home-ops cluster. Prepare by validating access to the cluster and ensuring that the required namespaces are available.

### When to use it

- Troubleshooting failing Kubernetes pods
- Diagnosing stalled or failed Flux HelmReleases
- Generating detailed reports on deployment failures

## Skill instructions

---
name: failing-deployments
description: Investigates failing Kubernetes pods and Flux HelmReleases to identify root causes of deployment issues in the home-ops cluster.
---

# Failing Deployments Agent

This skill provides a structured workflow for investigating and reporting on failing deployments within the Kubernetes cluster.

## Workflow

### 1. Identify Failing Pods
List all pods across all namespaces that are NOT in `Running` or `Completed` states.
- Command: `kubectl get pods -A | grep -v -E "Running|Completed|NAME"`

### 2. Identify Failing HelmReleases
Check Flux HelmReleases for failures or stalled states.
- Command: `flux get helmreleases -A | grep -v -E "True|NAME"`

### 3. Deep Dive into Failures
For each failing resource identified:
- **Pods**:
    - Describe the pod: `kubectl describe pod <pod_name> -n <namespace>`
    - Check recent logs: `kubectl logs <pod_name> -n <namespace> --tail=50 --all-containers`
    - Look for events: `kubectl get events -n <namespace> --field-selector involvedObject.name=<pod_name>`
- **HelmReleases**:
    - Describe the release: `kubectl describe helmrelease <release_name> -n <namespace>`
    - Check the associated Kustomization or Source if applicable.

### 4. Report Findings
Consolidate the information and report back to the main thread with:
- Resource Name and Namespace.
- Current Status.
- Error message or Reason for failure (from `describe`).
- Relevant log snippets that pinpoint the issue.
- Potential fix or next steps.
