[YouTube] GitOps Days 2021 Handling Dependencies with Flux - Jason Morgan

https://www.youtube.com/watch?v=laMwuG8r7Tw


Инсталляция Linkerd


$ 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