Создать источник GitRepository
Подключает git-репозиторий как источник Flux
flux create source git <name> --url=https://github.com/org/repo --branch=main -n flux-system
Другие команды flux
-
flux create source helm <name> --url=https://charts.example.com -n flux-systemПодключает Helm-репозиторий как источник Flux
-
flux create helmrelease <name> --source=HelmRepository/<repo> --chart=<chart> --chart-version='>=1.0.0' -n <ns>Деплоит чарт через ресурс HelmRelease во Flux
-
kubectl get events -n flux-system --sort-by='.lastTimestamp' | tail -20Последние 20 событий в неймспейсе flux-system
-
flux delete kustomization <name> -n <ns>Удаляет Kustomization из кластера; HelmRelease удаляется через flux delete helmrelease
-
flux create image update <name> --git-repo-ref=<repo> --git-repo-path=./deploy --checkout-branch=main --push-branch=main -n flux-systemСам обновляет теги образов в git, когда в реестр пушат новые образы