FluxCD v2
FluxCD v2 With GitOps Toolkit - Kubernetes Deployment And Sync Mechanism
Supercharge your Kubernetes deployments with Flux v2 and GitHub
GitOps Days 2021 Handling Dependencies with Flux - Jason Morgan
https://www.youtube.com/watch?v=laMwuG8r7Tw
$ cd ~/tmp
$ git clone https://github.com/BuoyantIO/gitops_examples
$ kubectl apply -f gitops_examples/flux/runtime/manifests/runtime_git.yaml
$ kubectl get gitrepositories -A
NAMESPACE NAME URL READY STATUS AGE
flux-system gitops https://github.com/BuoyantIO/gitops_examples.git True Fetched revision: main/6bcab49784782321cfd688592822b10f6673365f 4m25s
$ kubectl apply -f gitops_examples/flux/runtime/manifests/dev_cluster.yaml
$ watch kubectl get kustomizations.kustomize.toolkit.fluxcd.io -A
$ linkerd check
$ linkerd viz check
$ kubectl apply -f gitops_examples/flux/apps/manifests/podinfo.yaml
$ linkerd viz dashboard
$ kubectl port-forward svc/frontend 8080:8080
$ vi gitops_examples/flux/apps/source/podinfo/patch.yaml
меняем цвет
git add / git commit / git push
$ flux reconcile kustomization podinfo
$ linkerd viz dashboard
Обратить внимание на Traffic Splits
Cloud Native Applications Gitops with Flux and Flagger
https://www.youtube.com/watch?v=kbAKUKaMA1w
https://github.com/Tiggel/flux-app-demo/
// Создается приватный репо flux-fleet
$ flux bootstrap github \
--owner $GITHUB_USER \
--repository flux-app-demo \
--branch canary \
--path "./config/play/flux" \
--personal
Меняем версию podinfo на 5.2.0 в branch canary
https://github.com/Tiggel/flux-app-demo/commit/69969f5818c3da7a14e4493fe0a74b086b753929
https://docs.flagger.app/tutorials/istio-progressive-delivery
$ flux reconcile ks canary --with-source
$ watch curl http://podinfo-canary:9898/status/500