Бутстрап с GitHub flux
Установить Flux и запушить начальную конфигурацию в GitHub
flux bootstrap github --owner=<org> --repository=<repo> --branch=main --path=clusters/production --personal
more flux
all 29 commands →
Создать GitRepository источник
flux create source git <name> --url=https://github.com/org/repo --branch=main -n flux-system
Создать HelmRepository источник
flux create source helm <name> --url=https://charts.example.com -n flux-system
Создать HelmRelease
flux create helmrelease <name> --source=HelmRepository/<repo> --chart=<chart> --chart-version='>=1.0.0' -n <ns>
События Flux
kubectl get events -n flux-system --sort-by='.lastTimestamp' | tail -20
Удалить ресурс Flux
flux delete kustomization <name> -n <ns>