Build a Kustomization locally

Renders the final manifests offline with Flux substitutions, then validates them on the server

flux build kustomization <name> --path ./ | kubectl apply --dry-run=server -f -

tool
flux29 commands
tags
fluxgitopscidebug

More flux commands

  • flux get images all -A

    Lists all ImageRepositories, policies and update automations in all namespaces

  • flux get image policy -A && flux get image repository -A

    Shows which tag each policy selected and the last scan result for each repository

  • flux create provider slack --type slack --secret-ref webhook && flux create alert prod --provider-ref slack --event-source 'Kustomization/*' --event-severity info

    Sends reconcile events to Slack through a provider and an alert; the webhook is stored in a secret

  • flux create receiver github --type github --event github:push --secret-ref webhook-token --resource GitRepository/<name>

    Creates a webhook URL, so a git push starts reconcile at once instead of waiting for polling

  • flux reconcile source git <name>

    Fetches the latest commit now, without touching dependent Kustomizations

all 29 flux commands