flux-troubleshooting
Skill19 starsChanged 10 months agoMITView on GitHub
Use when Flux resources show Ready False, reconciliation errors appear in logs, deployments fail to sync from Git, HelmRelease installations fail, source artifacts are not being fetched, or image automation is not updating tags
In this repository19 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cert-manager-troubleshootingSkill
- external-dns-troubleshootingSkill
- external-secrets-troubleshootingSkill
- flux-gitops-patternsSkill
- flux-operationsSkill
- helm-chart-developmentSkill
- helm-chart-maintenanceSkill
- helm-chart-reviewSkill
- helm-chart-testingSkill
- k8s-continual-improvementSkill
- k8s-dns-troubleshootingSkill
- k8s-namespace-troubleshootingSkill
- k8s-network-troubleshootingSkill
- k8s-platform-operationsSkill
- k8s-platform-tenancySkill
- k8s-security-hardeningSkill
- k8s-security-redteamSkill
- kyverno-troubleshootingSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 169
When the Flux MCP server is connected:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flux CD Troubleshooting
Diagnose Flux CD reconciliation failures and errors in GitOps environments.
Keywords
flux, fluxcd, troubleshooting, debug, error, failed, failure, reconciliation, kustomization, helmrelease, source, gitrepository, ocirepository, artifact, health check, diagnose, resolve, fix
When to Use This Skill
- Flux resources show
Ready: Falsestatus - Reconciliation errors appear in logs
- Deployments are not syncing from Git
- HelmRelease installations are failing
- Source artifacts are not being fetched
- Image automation is not updating tags
Related Skills
- flux-operations - Suspend/resume/reconcile operations
- flux-gitops-patterns - Architecture and patterns
- k8s-platform-operations - Incident response procedures
Quick Reference
| Task | Command |
| Check Flux health | flux check |
| View all errors | flux logs -A --level=error |
| Get all status | flux get all -A |
| Warning events | kubectl get events -n flux-system --field-selector type=Warning |
Diagnostic Workflow
Is the resource Ready?
├─ Yes → Check if correct version/revision deployed
└─ No → Is the source Ready?
├─ Yes → Check Kustomization/HelmRelease logs
│ ├─ dry-run failed → Fix YAML syntax in Git
│ ├─ health check timeout → Check pod logs/resources
│ └─ dependency not ready → Fix parent first
└─ No → Check source credentials/connectivity
├─ authentication failed → Update deploy key/secret
├─ checkout failed → Verify branch/tag exists
└─ artifact not found → Check repository URLDiagnostic Commands
1. Check Controller Health
flux check2. View Error Logs
flux logs --all-namespaces --level=error3. Get Warning Events
kubectl get events -n flux-system --field-selector type=Warning4. Inspect Resource Status
flux get kustomizations -A
flux get helmreleases -A
flux get sources all -A5. Controller-Specific Logs
kubectl logs -n flux-system deploy/source-controller
kubectl logs -n flux-system deploy/kustomize-controller
kubectl logs -n flux-system deploy/helm-controller
kubectl logs -n flux-system deploy/notification-controller
kubectl logs -n flux-system deploy/image-reflector-controller
kubectl logs -n flux-system deploy/image-automation-controllerError Pattern Reference
| Error Pattern | Cause | GitOps Solution |
failed to checkout | Git authentication or network | Verify deploy keys/credentials |
dry-run failed: Invalid | Invalid manifest YAML | Fix syntax in Git repository |
health check timeout | Pods not becoming ready | Check resource limits, images |
dependency not ready | Parent Kustomization failed | Fix upstream dependency first |
artifact not found | Source not synced | Check source status, reconcile |
Unsupported value | Invalid field value | Correct the value in Git |
UNAUTHORIZED | Registry auth failed | Check imagePullSecrets |
MANIFEST_UNKNOWN | OCI tag doesn't exist | Verify tag in registry |
OCI Repository Troubleshooting
Common OCI Issues
flux get sources oci -A
kubectl logs -n flux-system deploy/source-controller | grep -i oci
kubectl get secret -n flux-system flux-system -o jsonpath='{.data.\.dockerconfigjson}' | base64 -dOCI Error Patterns
| Error | Cause | Diagnostic |
UNAUTHORIZED | Invalid credentials | Check docker-registry secret exists and is not expired; recommend updating secret |
MANIFEST_UNKNOWN | Tag not found | Verify tag exists in registry |
DENIED | Permission denied | Check registry permissions for the service account |
NAME_UNKNOWN | Repository not found | Verify repository path in OCIRepository spec |
Image Automation Troubleshooting
Check Image Policies
flux get images policy -A
flux get images repository -A
flux get images update -AImage Automation Errors
| Error | Cause | Diagnostic |
no new images found | Filter too restrictive | Check semver/regex pattern against available tags; recommend adjusting filter |
access denied | Registry auth | Check image pull secrets configuration |
failed to push | Git write access | Check if deploy key has write permission |
Webhook/Notification Debugging
kubectl logs -n flux-system deploy/notification-controller
flux get alerts -A
flux get alert-providers -A
kubectl logs -n flux-system deploy/notification-controller | grep -i receiverStructured Log Analysis
{
"level": "error",
"ts": "2024-01-15T09:36:41.286Z",
"controllerGroup": "kustomize.toolkit.fluxcd.io",
"controllerKind": "Kustomization",
"name": "resource-name",
"namespace": "namespace",
"msg": "Reconciliation failed after 2s, next try in 5m0s",
"revision": "main@sha1:abc123",
"error": "specific error message"
}GitOps Principles for Troubleshooting
- Never fix directly in cluster - Identify root cause, fix in Git
- Suspend before debugging - Prevent Flux from reverting test changes
- Check the full dependency chain - Infrastructure before apps
- Verify source availability - Git repos and registries must be accessible
- Review recent commits - Issues often correlate with recent changes
MCP Tools Available
When the Flux MCP server is connected:
mcp__flux-operator-mcp__get_flux_instance- Get Flux installation statusmcp__flux-operator-mcp__get_kubernetes_logs- Get pod logsmcp__flux-operator-mcp__get_kubernetes_resources- Query resourcesmcp__flux-operator-mcp__search_flux_docs- Search Flux documentation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

