Logo di K8s Flux Troubleshooting

K8s Flux Troubleshooting

Organizzazione
k8s-servant
k8s-flux-troubleshooting

Usa questa skill quando Flux non distribuisce o non aggiorna qualcosa su Kubernetes: un GitRepository, OCIRepository o HelmRepository non è Ready ("couldn't find remote ref", "authentication required"), una Kustomization non è Ready ("kustomization path not found", "kustomize build failed", "dependency ... is not ready", timeout dei controlli di integrità), un HelmRelease non è Ready (HelmChart "invalid chart reference", InstallFailed, UpgradeFailed, RetriesExceeded), le modifiche in Git non arrivano mai al cluster oppure gli oggetti Flux sono sospesi. Esegue le verifiche con kubectl get, describe, events e logs, quindi propone delle soluzioni. Prima analizza e poi chiede prima di apportare modifiche.

Panoramica

Pubblicato dak8s-servant
Repositoryk8s-skills
Nome della skillk8s-flux-troubleshooting
Stelle
36
Fork
7
File inclusi
4
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 4

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da k8s-servant su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA K8s Flux Troubleshooting in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-flux-troubleshooting
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/k8s-servant/k8s-skills.git /tmp/k8s-skills
mkdir -p .claude/skills
cp -r /tmp/k8s-skills/skills/k8s-flux-troubleshooting .claude/skills/k8s-flux-troubleshooting
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva K8s Flux Troubleshooting in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente K8s Flux Troubleshooting non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi K8s Flux Troubleshooting non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Flux troubleshooting

Find out why Flux does not deploy or update a workload, and propose a fix. Read first, ask before changing. Run the investigation commands freely. Run a command under an "Ask first" line only after the user approves that exact command; if your credentials do not allow it, give it to the user to run. Never run a "Proposed fix"; hand it to the user.

Flux works in a chain. A source (GitRepository, OCIRepository, HelmRepository, Bucket) fetches an artifact. A Kustomization builds and applies a path from that artifact; a HelmRelease installs a chart, through a HelmChart that Flux creates from the HelmRelease. Every object reports Ready, and the first object in the chain that is not Ready holds the cause. Follow the chain from the object that deploys the workload back to its source.

The commands use placeholders: flux-system (where Flux and most of its objects live), my-app (the Kustomization or HelmRelease, and its source), and my-namespace (where the workload runs). Replace them with the real names; Flux objects can live in any namespace.

Never read Secrets: not Git or registry credentials, not SOPS keys, not values or postBuild substitutions from Secrets, not Helm release Secrets. The status of the Flux objects says when credentials are missing or wrong. For the same reason do not use flux tree, flux diff or flux debug ... --show-values / --show-vars: they read Secrets.

When to use

  • A change pushed to Git, an OCI registry or a Helm repository never reaches the cluster.
  • kubectl get kustomizations,helmreleases -A shows READY False or Unknown.
  • A GitRepository, OCIRepository, HelmRepository or HelmChart is not Ready.
  • Objects are SUSPENDED, or a HelmRelease is Stalled after failed installs or upgrades.

Hand-offs, by skill name. When the evidence points elsewhere, continue with that skill; if it is not installed, keep going with the steps here and tell the user which skill would help:

  • Flux applied the workload, but its pods fail (crash, image, probe, Pending): k8s-workload-troubleshooting.
  • A HelmRelease's install or upgrade fails inside Helm (hooks, ownership, immutable fields): read references/helmreleases.md first; for the Helm side, k8s-helm-troubleshooting.
  • The Flux controllers themselves crash or stay Pending: k8s-workload-troubleshooting.

Investigate

Work through the steps in order. Stop when you have the cause and its evidence.

1. List the Flux objects and their state. READY, STATUS (the Ready message) and SUSPENDED are the columns that matter.

bash
kubectl get kustomizations,helmreleases -A
kubectl get gitrepositories,ocirepositories,helmrepositories,helmcharts,buckets -A

2. Read the object that deploys the workload: its conditions, the source it points at, and its events.

bash
kubectl describe kustomization my-app -n flux-system
kubectl get kustomization my-app -n flux-system -o jsonpath='{.spec.sourceRef}{"\n"}{.spec.path}{"\n"}{.spec.suspend}{"\n"}{.status.conditions}{"\n"}'
kubectl describe helmrelease my-app -n flux-system
kubectl events -n flux-system --for kustomization/my-app

3. Read its source. A Kustomization's sourceRef, or the HelmChart a HelmRelease uses (named <namespace>-<name>, in the HelmRelease's namespace) and its HelmRepository or OCIRepository.

bash
kubectl describe gitrepository my-app -n flux-system
kubectl get gitrepository my-app -n flux-system -o jsonpath='{.spec.url}{"\n"}{.spec.ref}{"\n"}{.status.artifact.revision}{"\n"}{.status.conditions}{"\n"}'
kubectl describe helmchart flux-system-my-app -n flux-system
kubectl describe helmrepository -n flux-system

4. If the objects look right but nothing happens, check the controllers. Their logs name each object they reconcile.

bash
kubectl get deployments -n flux-system
kubectl logs -n flux-system deployment/source-controller --tail=100 | grep my-app
kubectl logs -n flux-system deployment/kustomize-controller --tail=100 | grep my-app
kubectl logs -n flux-system deployment/helm-controller --tail=100 | grep my-app

If the flux CLI is installed, flux get all -A and flux events -n flux-system show the same state in one view; they are optional, kubectl is enough.

5. Open the matching reference and follow its steps:

What you seeReference
A GitRepository, OCIRepository, HelmRepository or HelmChart not Ready; couldn't find remote ref, authentication required, invalid chart referencereferences/sources.md
A Kustomization not Ready: kustomization path not found, kustomize build failed, dependency ... is not ready, health check timeout, Source artifact not foundreferences/kustomizations.md
A HelmRelease not Ready: SourceNotReady, InstallFailed, UpgradeFailed, RetriesExceeded, driftreferences/helmreleases.md
Nothing happens at all, SUSPENDED True, objects on removed v1beta APIs, controllers downreferences/suspend-and-controllers.md

Read the results

What the common findings mean (Flux 2.9):

  • A Kustomization with Source artifact not found, retrying in 30s (reason ArtifactFailed): its source has no artifact yet. The cause is on the source; read it.
  • A GitRepository with failed to checkout and determine revision: unable to clone '<url>': couldn't find remote ref "refs/heads/<branch>" (reason GitOperationFailed, FetchFailed True): the branch in spec.ref does not exist. authentication required or repository not found mean credentials or the URL.
  • kustomization path not found: stat ... (reason ArtifactFailed): the source is fine, but spec.path names a folder the artifact does not have.
  • kustomize build failed: ... (reason BuildFailed): the folder exists, but kustomize cannot build it; the message says why.
  • A HelmRelease with HelmChart '<ns>/<name>' is not ready: ... (reason SourceNotReady): read the HelmChart. invalid chart reference: ... no '<chart>' chart with version matching '<version>' found (reason InvalidChartReference, Stalled True) means the repository has no such version; Flux will not retry until the spec changes.
  • Stalled True with RetriesExceeded on a HelmRelease: install or upgrade failed and the retries are used up (install retries default to 0). Flux waits for a spec change or a reset.
  • SUSPENDED True: Flux skips the object; its conditions are from the last run before it was suspended and can be stale.
  • A source that is Ready, with the new commit in status.artifact.revision, but the cluster unchanged: look at the Kustomization or HelmRelease that uses it, and its lastAppliedRevision.

State the cause in one sentence, then the evidence you saw (the condition reason and message, the spec field, the revision), then the proposed fix.

Proposed fix

Show each fix to the user before running it: what it changes and how to undo it. Asking Flux to reconcile now, resuming a suspended object and patching a Flux object's spec are reversible, so they go under "Ask first" and run only after the user says yes. Deleting Flux objects or the workloads they manage, changing credentials, and reinstalling Flux are never run by you: hand them to the user as proposed fixes.

The fix almost always belongs in Git. Flux objects are themselves usually applied by a parent Kustomization (often flux-system), which puts back the version in Git at its next run; a patch on the live object is then only a test. Say so, and propose the change in the repository. Write each undo with the values you found.

Point a Kustomization at the right folder, to test before fixing Git:

Ask first: the agent runs this only after the user approves it.

bash
kubectl patch kustomization my-app -n flux-system --type=merge -p '{"spec": {"path": "./kustomize"}}'
# Undo: kubectl patch kustomization my-app -n flux-system --type=merge -p '{"spec": {"path": "./kustomize/overlays/production"}}'

Ask Flux to reconcile an object now instead of waiting for its interval (use the current time as the value; any new value triggers a run):

Ask first: the agent runs this only after the user approves it.

bash
kubectl annotate --overwrite gitrepository my-app -n flux-system reconcile.fluxcd.io/requestedAt=2026-10-24T12:00:00Z
# Undo: nothing to undo; the annotation only asks for one reconciliation

Resume an object that was suspended (only once the reason for suspending it is gone):

Ask first: the agent runs this only after the user approves it.

bash
kubectl patch kustomization my-app -n flux-system --type=merge -p '{"spec": {"suspend": false}}'
# Undo: kubectl patch kustomization my-app -n flux-system --type=merge -p '{"spec": {"suspend": true}}'

Sources

Checked against the Flux 2.9 documentation and the controllers' source (flux2 v2.9.6, source-controller and kustomize-controller v1.9.6, helm-controller v1.6.5):

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA K8s Flux Troubleshooting?

Usa questa skill quando Flux non distribuisce o non aggiorna qualcosa su Kubernetes: un GitRepository, OCIRepository o HelmRepository non è Ready ("couldn't find remote ref", "authentication required"), una Kustomization non è Ready ("kustomization path not found", "kustomize build failed", "dependency ... is not ready", timeout dei controlli di integrità), un HelmRelease non è Ready (HelmChart "invalid chart reference", InstallFailed, UpgradeFailed, RetriesExceeded), le modifiche in Git non arrivano mai al cluster oppure gli oggetti Flux sono sospesi. Esegue le verifiche con kubectl get, d...

Perché usare K8s Flux Troubleshooting su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. K8s Flux Troubleshooting è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo K8s Flux Troubleshooting in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-flux-troubleshooting. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare K8s Flux Troubleshooting?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con K8s Flux Troubleshooting?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con K8s Flux Troubleshooting: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA K8s Flux Troubleshooting è gratuita?

Sì. È pubblicata su GitHub da k8s-servant con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇