smithery.ai

flux-operations

Use when forcing immediate reconciliation, suspending reconciliation for maintenance, rolling back failed deployments, upgrading Flux components, managing drift detection, or performing multi-cluster Flux operations

First seen Apr 6, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 5,281 B
  • docs SUMMARY.md 238 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Flux CD Operations

Manage Flux CD reconciliation operations including suspend, resume, force sync, rollback, and multi-cluster management.

Keywords

flux, fluxcd, reconcile, suspension, resumption, sync, rollback, rolling back, drift, helmrelease, kustomization, gitops, operations, management, upgrade, upgrading, failure, failed, debugging, debug

When to Use This Skill

  • Need to force immediate reconciliation
  • Suspending reconciliation for maintenance
  • Rolling back a failed deployment
  • Upgrading Flux components
  • Managing drift detection
  • Multi-cluster Flux operations

Related Skills

  • [flux-troubleshooting](../flux-troubleshooting) - Diagnosing issues
  • [flux-gitops-patterns](../flux-gitops-patterns) - Architecture patterns
  • [k8s-platform-operations](../k8s-platform-operations) - General cluster operations

Quick Reference

Task Command
Force sync all flux reconcile ks flux-system --with-source
Suspend resource flux suspend ks <name> -n <ns>
Resume resource flux resume ks <name> -n <ns>
Check status flux get all -A
View diff flux diff ks <name> --path <local>

Reconciliation Management

Force Immediate Reconciliation

flux reconcile kustomization <name> -n <namespace> --with-source
flux reconcile helmrelease <name> -n <namespace> --with-source
flux reconcile source git <name> -n <namespace>
flux reconcile source oci <name> -n <namespace>
flux reconcile source helm <name> -n <namespace>

Suspend Reconciliation

flux suspend kustomization <name> -n <namespace>
flux suspend helmrelease <name> -n <namespace>
flux suspend source git <name> -n <namespace>

GitOps method (persisted, recommended):

apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  name: <name>
spec:
  suspend: true

Resume Reconciliation

flux resume kustomization <name> -n <namespace>
flux resume helmrelease <name> -n <namespace>

Rollback Strategies

Git Revert (Recommended)

git log --oneline -10
git revert <commit-sha>
git push origin main
flux reconcile kustomization flux-system --with-source

Version Pin

spec:
  chart:
    spec:
      version: "1.2.3"

Emergency Helm Rollback

flux suspend helmrelease <name> -n <namespace>
helm history <release-name> -n <namespace>
helm rollback <release-name> <revision> -n <namespace>
flux resume helmrelease <name> -n <namespace>

Drift Detection

Enable Drift Detection

apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
spec:
  driftDetection:
    mode: enabled  # or 'warn'
    ignore:
      - paths: ["/spec/replicas"]
        target:
          kind: Deployment
      - paths: ["/metadata/annotations"]
        target:
          kind: Service

Check for Drift

kubectl get helmrelease <name> -n <ns> -o jsonpath='{.status.drift}'
flux diff kustomization <name> --path ./path/to/local

Flux Upgrade Procedures

Check Current Version

flux version
flux check

Upgrade Flux

brew upgrade fluxcd/tap/flux
flux install --export > flux-system/gotk-components.yaml
git add -A && git commit -m "Upgrade Flux to $(flux version --client)"
git push

Upgrade with Bootstrap

flux bootstrap github \
  --owner=<org> \
  --repository=<repo> \
  --branch=main \
  --path=./clusters/production \
  --personal

Multi-Cluster Operations

Switch Context

kubectl config get-contexts
kubectl config use-context <cluster-name>
flux check

Cross-Cluster Source Reference

apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
  name: shared-config
spec:
  url: https://github.com/org/shared-config
  ref:
    branch: main

HelmRelease Configuration

Remediation Settings

apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
spec:
  install:
    remediation:
      retries: 3
  upgrade:
    remediation:
      retries: 5
      remediateLastFailure: true
    cleanupOnFail: true
  rollback:
    timeout: 5m
    recreate: false
    force: false
    cleanupOnFail: false
  test:
    enable: true

Disable Health Checks

spec:
  install:
    disableWait: true
  upgrade:
    disableWait: true

GitOps Best Practices

  1. Prefer Git operations - Rollbacks via git revert maintain audit trail
  2. Always resume suspended resources - Don't leave resources suspended indefinitely
  3. Use --with-source - Ensures source is refreshed during reconciliation
  4. Check dependsOn chains - Child resources need parents reconciled first
  5. Document suspensions - Note why and when in commit messages

MCP Tools Available

  • mcpflux-operator-mcpreconcilefluxkustomization
  • mcpflux-operator-mcpreconcilefluxhelmrelease
  • mcpflux-operator-mcpreconcilefluxsource
  • mcpflux-operator-mcpsuspendfluxreconciliation
  • mcpflux-operator-mcpresumefluxreconciliation