/kubernetes-platform-skills:flux-cd-configuration-validationfrom kubernetes-platform-skills
Validates Flux CD Kustomizations and HelmReleases using build/diff/dry-run tooling before they reconcile, and interprets Flux status conditions to distinguish healthy reconciliations from silent failures.
Ships in kubernetes-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Because Flux reconciles automatically and continuously, a bad
Kustomization path, a malformed Kustomize overlay, or a HelmRelease
values change with a typo doesn't wait for a deliberate "deploy" action
the way a manually-triggered pipeline would — it reconciles against the
live cluster on the next poll interval whether or not anyone reviewed
what it would actually do. Validating a change before it merges (dry
running the Kustomize build, diffing against the live cluster, rendering
Helm values) is therefore not optional polish for Flux the way it might
be for a slower, human-gated deploy process — it's the only checkpoint
between "a PR merged" and "the cluster changed." This skill covers that
pre-reconciliation validation workflow, layered on top of
flux-cd-configuration-and-reconciliation's
CRD configuration, and on interpreting Flux's own status output
correctly once something has reconciled (or failed to).
gitops-config repo before merge, so problems surface in a PR check
rather than after Flux reconciles them.Kustomization's path, a Kustomize
overlay, or a HelmRelease's chart version/values, and wanting to
see the actual resulting diff against the live cluster before
approving.Kustomization/HelmRelease reports Ready: True but something
about the resulting cluster state looks wrong, and it's unclear
whether that's a validation gap or a genuine bug.prune: true Kustomization's refactor (moved/renamed
resources) for unintended deletions before merging.Kustomization stuck Ready: False to determine whether
the failure is a build-time error (bad YAML/Kustomize syntax) or a
cluster-side apply error (RBAC, admission webhook rejection, CRD not
yet installed).flux diff kustomization support, plus
kubectl access to the target cluster context for diffing (the diff
command needs to read live cluster state to compare against).kustomize ≥ 5.0 and helm ≥ 3.x installed for standalone
build/template validation independent of the Flux CLI, useful in CI
where a full cluster connection isn't available or desired for
read-only structural checks.Kustomization/HelmRelease CRDs already defined per
flux-cd-configuration-and-reconciliation
— this skill validates changes to what those CRDs point at, not how
to define the CRDs themselves.Validate Kustomize build output structurally, independent of any cluster, as the fastest, lowest-cost first check — this catches syntax errors, broken resource references, and invalid overlay patches before anything cluster-aware runs:
kustomize build apps/payments-api/overlays/prod > /tmp/rendered.yaml
kubectl apply --dry-run=client -f /tmp/rendered.yaml
--dry-run=client catches malformed Kubernetes object syntax
without needing real cluster credentials at all — run this in CI on
every PR touching a Kustomize path, regardless of whether a live
cluster diff is also performed.
Validate against the API server's actual schema/admission chain
with a server-side dry run, which catches problems --dry-run=client
can't (CRD schema validation, admission webhook rejections, RBAC):
kubectl apply --dry-run=server -f /tmp/rendered.yaml
This requires real (even if read-only-equivalent) cluster credentials and talks to the live API server's validation/admission pipeline without actually persisting the change — a meaningfully stronger check than client-side validation alone, and the natural next step before a full live diff.
Diff the rendered manifests against live cluster state directly with Flux's own diff command, which reproduces exactly what a real reconcile would apply:
flux diff kustomization payments-api-prod --path ./apps/payments-api/overlays/prod
Run this against a checked-out branch/PR locally, or wire it into
CI comparing the PR's branch content against the live cluster
flux diff kustomization is pointed at — it surfaces the same class
of "additive vs. destructive" distinction that reviewing a
terraform plan does in
infrastructure-as-code-terraform:
a diff showing only new/changed fields is a different risk profile
than one showing resources being removed (relevant for
prune: true Kustomizations especially).
Render and validate HelmRelease values changes with helm template before merging, using the same chart version and values
the HelmRelease declares:
helm template redis bitnami/redis --version 19.x -f values-prod.yaml > /tmp/redis-rendered.yaml
kubectl apply --dry-run=server -f /tmp/redis-rendered.yaml
Extract values-prod.yaml from the HelmRelease.spec.values block
(or valuesFrom ConfigMap/Secret references, resolved manually for
the check) so what's rendered matches exactly what Flux's
helm-controller will actually apply — validating against
different values than what's really configured gives a false sense
of safety.
Wire structural and server-dry-run checks into CI as a required PR check, so a broken manifest never reaches the point of being merged and picked up by Flux's next poll:
# GitHub Actions example
- name: Kustomize build validation
run: |
for overlay in $(find apps -maxdepth 3 -type d -name prod); do
kustomize build "$overlay" | kubectl apply --dry-run=server -f -
done
Fail the PR check on any error rather than merging first and finding
out from a Kustomization's Ready: False status after the fact.
Interpret flux get status output correctly once something has
reconciled — the same "applied successfully" vs. "actually correct"
distinction that matters for
argocd-sync-failure-and-drift-investigation
applies here:
flux get kustomizations payments-api-prod
flux get helmreleases -n payments-prod
kubectl get kustomization payments-api-prod -n flux-system -o jsonpath='{.status.conditions}'
Ready: True reflects the last reconcile attempt applying without
an API-level error; it does not by itself confirm the resulting
workload is healthy unless wait: true with healthChecks was
configured (see
flux-cd-configuration-and-reconciliation) —
treat Ready: True with no health checks configured as "applied,"
not "verified healthy."
For a Kustomization stuck Ready: False, distinguish a
build-time failure from a cluster-side apply failure before
investigating further, since the fix differs entirely:
kubectl describe kustomization payments-api-prod -n flux-system
A message referencing a Kustomize build error (bad patch, missing
base resource) means the problem is fixable by re-running step 1
locally against the exact failing path; a message referencing an
apply/admission error (RBAC denial, webhook rejection, CRD not
found) means the problem is cluster-side and the manifest itself may
be syntactically fine — check kustomize-controller's own RBAC and
whether a dependsOn (installing the missing CRD first) is needed.
Validate a prune: true refactor specifically for unintended
deletions before merging a change that moves/renames resources
within a pruning-enabled Kustomization's path:
flux diff kustomization payments-api-prod --path ./apps/payments-api/overlays/prod
Read the diff specifically for resources marked for deletion that
weren't intentionally removed — a renamed base file or a Kustomize
nameSuffix change can look like "delete old resource, create new
one" even when the intent was just a rename, and prune: true
will genuinely delete the "old" one on the next reconcile.
kustomize build + kubectl apply --dry-run=server as a
mandatory, fast CI check on every PR touching a Flux-managed path —
it's cheap, requires no risky cluster-write credentials, and catches
the majority of structural errors before a human even reviews the
diff.flux diff/server-side dry-run to
read-only cluster access — a diff/dry-run operation should never
need write permissions, and granting write access "just in case" to
a CI runner defeats the credential-scoping benefit GitOps is supposed
to provide in the first place (see
gitops-workflow).HelmRelease values from the actual source the HelmRelease
references (the real chart version, the real values block/
ConfigMap/Secret) rather than a hand-maintained copy that can drift
from what's really configured over time.flux diff kustomization output specifically for deletions on
any prune: true Kustomization before approving a refactor PR — a
diff that's "just renames" in the author's head can be a real
destructive delete+create in Flux's eyes.Ready: True with "verified healthy" in dashboards or
runbooks — pair status monitoring with the healthChecks/wait
configuration from
flux-cd-configuration-and-reconciliation
so Ready: True actually means what an on-call engineer will assume
it means at 3am.HelmRelease upgrades against the exact target chart
version pinned in Git, not latest or a floating range resolved at
validation time — a floating version constraint can mean CI validated
a different chart release than what actually reconciles later.Symptom: A PR passes kustomize build validation cleanly in CI,
but the Kustomization still fails to reconcile once merged.
Fix: kustomize build alone doesn't catch cluster-side apply
failures (RBAC denial, an admission webhook rejecting the resource,
a referenced CRD not yet installed) — add a server-side dry run
(kubectl apply --dry-run=server) against a representative cluster
in the same CI check, since client-side build validation and
server-side admission are genuinely different failure surfaces.
Symptom: flux diff kustomization run locally shows a clean,
expected diff, but the actual reconciliation in the cluster produces
a different result.
Fix: Confirm the diff was run against the same GitRepository
ref/commit and the same cluster context Flux is actually reconciling
— a diff run against a stale local checkout, or against the wrong
cluster context, is comparing against the wrong baseline and its
"clean" result doesn't reflect what will really happen.
Symptom: A HelmRelease values change was reviewed and approved
based on a hand-written values-prod.yaml in the PR description, but
the actual deployed configuration differs.
Fix: The reviewed values file didn't match what's actually
referenced in HelmRelease.spec.values/valuesFrom — always
validate by rendering from the real CRD spec's value sources (step
4), not a summary or a separately-maintained copy that can silently
diverge from the source of truth.
Symptom: A refactor PR that renames a Kustomize base directory
merges cleanly, and the next reconciliation deletes a resource that
was still needed.
Fix: This was a prune: true refactor validated only by
kustomize build (which shows the new state) without a flux diff
against the live cluster (which would have shown the old resource
being deleted, not just the new one being created) — always run the
live diff, not just a build check, before merging any change that
restructures paths inside a pruning-enabled Kustomization.
Symptom: Someone runs flux diff kustomization or a server-side
dry run using a CI credential that also has cluster-admin write
access, and later that same credential is used (intentionally or by
a compromised pipeline step) to apply changes directly to the
cluster, bypassing Flux's own reconciliation and audit trail.
Fix: This defeats the credential-scoping purpose of GitOps
entirely — validation/diff tooling should run with read-only cluster
credentials only; if a CI runner needs write access for some other
legitimate reason, use a separate, narrowly-scoped credential for
that purpose rather than reusing the broad one for diffing.
Scenario: A PR bumps the redis HelmRelease's chart version and
renames the apps/payments-api/overlays/prod base's deployment.yaml
to deployment-v2.yaml as part of a cleanup, on a repo where
payments-api-prod's Kustomization has prune: true.
CI's structural check runs first and passes cleanly:
kustomize build apps/payments-api/overlays/prod | kubectl apply --dry-run=server -f -
No errors — the rename didn't break the Kustomize build itself.
A reviewer, aware that prune: true makes renames risky, runs the
live diff locally against the PR branch before approving:
git fetch origin pull/482/head:pr-482 && git checkout pr-482
flux diff kustomization payments-api-prod --path ./apps/payments-api/overlays/prod
Output shows Deployment/payments-prod/payments-api marked for
deletion and a new Deployment/payments-prod/payments-api
being created — because the rename changed the underlying resource
identity Kustomize generates, prune: true would delete the
"old" Deployment (briefly dropping the running workload) before
recreating it, rather than performing a clean in-place update.
The reviewer requests a change: keep the file name stable, or add a
moved-equivalent handling (in Flux/Kustomize's case, ensuring the
resource's metadata.name doesn't change) so the diff shows an
update, not a delete+create.
Separately, the HelmRelease chart version bump is validated by
rendering the exact target version and current values:
helm template redis bitnami/redis --version 19.4.2 -f <(kubectl get helmrelease redis -n payments-prod -o jsonpath='{.spec.values}' | yq -P) \
| kubectl apply --dry-run=server -f -
This passes cleanly, so only the Kustomize rename needs rework before the PR merges — catching a would-be brief production outage in review instead of during an unattended reconcile.
Kustomization/HelmRelease CRD configuration this skill validates before it reconciles.terraform plan-review discipline this skill's flux diff/dry-run workflow mirrors for Kubernetes manifests instead of cloud infrastructure.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin kubernetes-platform-skills35 skills in this plugin
/cert-manager-tls-automationGuides installing and configuring cert-manager for automated TLS certificate issuance and renewal — Issuers vs. ClusterIssuers, ACME/ Let's Encrypt HTTP-01 and DNS-01 challenges, private-CA issuance, and integration with Ingress-nginx and Istio gateways. Use when a user asks to "automate TLS certificates on Kubernetes," "set up cert-manager with Let's Encrypt," "fix a stuck Certificate that won't become Ready," "use DNS-01 for a wildcard cert," "rotate mTLS certs automatically," or "issue certs from an internal CA."
/cni-networking-calico-flannelGuides choosing and installing a Kubernetes CNI plugin — Calico vs. Flannel — including NetworkPolicy enforcement capability differences, BGP vs. VXLAN/overlay data paths, and IP address management (IPAM) tradeoffs. Use when a user asks to "choose a CNI plugin for Kubernetes," "enable NetworkPolicy enforcement," "set up Calico with BGP peering," "install Flannel," "debug pod-to-pod connectivity across nodes," or "migrate from Flannel to Calico."
/complete-kubernetes-deployment-on-aks-from-scratchSequences a complete, end-to-end AKS deployment from a bare Azure subscription to a production-ready cluster serving a first workload — Azure landing zone prerequisites, AKS cluster and node pool provisioning, Azure CNI (with the Calico/Cilium alternative noted), ingress (Application Gateway Ingress Controller vs. ingress-nginx), cert-manager with Azure DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on AKS from scratch," "set up a new AKS environment end to end," "build a production AKS cluster from a fresh Azure subscription," or "give me the full sequence to go from nothing to a working AKS cluster."
/complete-kubernetes-deployment-on-eks-from-scratchSequences a complete, end-to-end EKS deployment from a bare AWS account to a production-ready cluster serving a first workload — landing zone/IAM prerequisites, EKS cluster and node group provisioning, VPC CNI (with the Calico/Cilium alternative noted), ingress (ALB vs. ingress-nginx), cert- manager with Route 53 DNS-01, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/ orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on EKS from scratch," "stand up a new EKS environment end to end," "build a production EKS cluster from a fresh AWS account," or "give me the full sequence to go from nothing to a working EKS cluster."
/complete-kubernetes-deployment-on-gke-from-scratchSequences a complete, end-to-end GKE deployment from a bare GCP project to a production-ready cluster serving a first workload — GCP landing zone prerequisites, GKE cluster and node pool provisioning, VPC-native/ Dataplane V2 CNI (with the Calico alternative noted), ingress (GKE Ingress/Gateway API vs. ingress-nginx), cert-manager with Cloud DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on GKE from scratch," "set up a new GKE environment end to end," "build a production GKE cluster from a fresh GCP project," or "give me the full sequence to go from nothing to a working GKE cluster."
/complete-kubernetes-deployment-on-oke-oci-from-scratchSequences a complete, end-to-end OKE (Oracle Container Engine for Kubernetes) deployment from a bare OCI tenancy to a production-ready cluster serving a first workload — OCI landing zone prerequisites (Compartments, Dynamic Groups), OKE Enhanced cluster and node pool provisioning, VCN-Native pod networking (with the Calico NetworkPolicy add-on noted), ingress (Native Ingress Controller vs. ingress-nginx), cert-manager with OCI DNS via a community webhook solver, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill sequencing several existing tool-specific skills in the correct order and flagging the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on OKE from scratch," "set up OKE on OCI end to end," "build a production OKE cluster from a fresh OCI tenancy," or "give me the full sequence to go from nothing to a working OKE cluster."
Other plugins' skills for the same job