FluxCD is the standard GitOps tool for Kubernetes. It continuously reconciles
desired state from Git repositories with actual cluster state. Use this skill
when:
Troubleshooting Flux reconciliation failures or synchronization issues
Analyzing and fixing pod/deployment issues in Flux-managed clusters
Debugging webhook receivers and automation flows
Optimizing image automation and deployment strategies
Understanding cluster state and reconciliation status
Core Concepts
Flux Architecture: FluxCD operates as controllers within Kubernetes that
reconcile desired state (from Git) with actual cluster state. The primary
components are:
Source Controllers: Pull configuration and charts from Git/OCI registries
GitRepository: Watch and fetch from Git repositories
OCIRepository: Fetch from OCI registries
HelmRepository: Index Helm charts from repositories
Sync Controllers: Apply configuration to the cluster
Validate Git sync: Check the commit hash in status matches Git
Test Helm chart: Use helm template to validate rendering
Integration Points
Git repositories: Source of truth for all configuration
Container registries: Image sources for workloads
Helm repositories: Chart repositories for package management
Kubernetes API: All resources apply via standard kubectl
Webhooks: Git platforms trigger Flux reconciliation via receivers
References
See the references/ directory for detailed documentation:
FLUX-API-REFERENCE.md: Complete API reference for all FluxCD custom
resources (GitRepository, HelmRelease, Kustomization, ImagePolicy, etc.)
with field descriptions, examples, and status conditions
BEST-PRACTICES.md: Production deployment patterns and optimization
strategies
TROUBLESHOOTING-WORKFLOWS.md: Step-by-step diagnostic procedures for
common failure scenarios
COMMON-COMMANDS.md: kubectl and flux CLI command reference
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: vdesjardins-nix-config-skill-flux3description: FluxCD Skill4---56# FluxCD Skill78FluxCD is the standard GitOps tool for Kubernetes. It continuously reconciles9desired state from Git repositories with actual cluster state. Use this skill10when:1112- Troubleshooting Flux reconciliation failures or synchronization issues13- Managing Flux custom resources (GitRepository, HelmRepository,14 Kustomization, HelmRelease)15- Analyzing and fixing pod/deployment issues in Flux-managed clusters16- Debugging webhook receivers and automation flows17- Optimizing image automation and deployment strategies18- Understanding cluster state and reconciliation status1920## Core Concepts2122**Flux Architecture**: FluxCD operates as controllers within Kubernetes that23reconcile desired state (from Git) with actual cluster state. The primary24components are:2526- **Source Controllers**: Pull configuration and charts from Git/OCI registries27 - GitRepository: Watch and fetch from Git repositories28 - OCIRepository: Fetch from OCI registries29 - HelmRepository: Index Helm charts from repositories3031- **Sync Controllers**: Apply configuration to the cluster32 - Kustomization: Apply Kustomize overlays declaratively33 - HelmRelease: Deploy and manage Helm charts with templating3435- **Notification & Webhooks**:36 - Receiver: Webhook endpoint for Git push notifications37 - Provider: Configure notification destinations38 - Alert: Monitor resource status changes3940- **Image Automation**:41 - ImageRepository: Poll container registries42 - ImagePolicy: Define versioning policies (semver, alphabetical, etc.)43 - ImageUpdateAutomation: Automatically commit image updates to Git4445## Troubleshooting Workflow46471. **Identify the resource type**: Determine which Flux resource is failing48 (GitRepository, HelmRelease, Kustomization, etc.)49502. **Get resource status**: Check the custom resource's status conditions and51 lastObservedGeneration52533. **Review logs**: Examine controller logs for reconciliation errors or54 warnings55564. **Check dependencies**: Verify source resources (GitRepository,57 HelmRepository) are ready before sync resources58595. **Analyze events**: Look at Kubernetes events for more context on failures60616. **Check Git/Registry**: Validate that referenced Git branches, OCI62 registries, or Helm repos are accessible6364## Common Issues and Patterns6566### GitRepository Failures6768- **Authentication**: SSH keys or credentials misconfigured69- **Branch/ref**: Target branch doesn't exist or is wrong70- **Network**: Repository unreachable or firewall blocked71- **Secrets**: GitRepository can't find SSH keys or HTTP auth secrets7273### HelmRelease Failures7475- **Chart not found**: HelmRepository not ready or chart doesn't exist76- **Values**: Chart values invalid or incompatible with installed version77- **Dependencies**: Chart dependencies not available78- **Secrets**: Release references secret that doesn't exist7980### Kustomization Failures8182- **Source not ready**: Referenced GitRepository hasn't synced yet83- **Validation**: Kustomize validation errors in the overlay84- **RBAC**: Controller doesn't have permissions to apply resources85- **Reconciliation**: Resource conflicts or immutable field changes8687### Image Automation8889- **Scan failures**: ImageRepository can't access registry90- **Policy matching**: No tags match the version policy91- **Git operations**: Can't push image update commits to repository92- **Permission**: Missing write access to Git repo for automation commits9394## Key Commands for Analysis9596When analyzing a Flux-managed cluster:97981. List all Flux resources: `kubectl get fluxcd.io` or check specific types992. Describe a resource: `kubectl describe <resource-type> <name> -n100 <namespace>`1013. View status conditions: Look at `.status.conditions` array1024. Check recent events: `kubectl describe <resource> -n <namespace>` (shows103 events)1045. Review controller logs: `kubectl logs -n flux-system deploy/<controller>105 -f`1066. Validate Git sync: Check the commit hash in status matches Git1077. Test Helm chart: Use `helm template` to validate rendering108109## Integration Points110111- **Git repositories**: Source of truth for all configuration112- **Container registries**: Image sources for workloads113- **Helm repositories**: Chart repositories for package management114- **Kubernetes API**: All resources apply via standard kubectl115- **Webhooks**: Git platforms trigger Flux reconciliation via receivers116117## References118119See the `references/` directory for detailed documentation:120121- **FLUX-API-REFERENCE.md**: Complete API reference for all FluxCD custom122 resources (GitRepository, HelmRelease, Kustomization, ImagePolicy, etc.)123 with field descriptions, examples, and status conditions124- **BEST-PRACTICES.md**: Production deployment patterns and optimization125 strategies126- **TROUBLESHOOTING-WORKFLOWS.md**: Step-by-step diagnostic procedures for127 common failure scenarios128- **COMMON-COMMANDS.md**: kubectl and flux CLI command reference129130---131> Converted and distributed by [TomeVault](https://tomevault.io/claim/vdesjardins) — claim your Tome and manage your conversions.132<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/vdesjardins-nix-config-skill-flux in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
FluxCD Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.