GitOps
- Traditional deployment (push)

-
Git ops deployment
-
Gitops in k8s can be acheived using
- Argocd
- Flux
- Argocd when installed also installs CRDs
Try Argocd with AKS
- Bring up aks cluster.
- Refer Here for argo cd installation
- Refer Here for core concepts
- prompt:
Give me schema of Argocd Application and help me in writing manifest which connect to my git repo in a specific folder with k8s manifest files -
prompt:
Give me schema of Argocd Application and help me in writing manifest which connect to my git repo in a specific folder with helm chart - Installing argocd into aks
kubectl create namespace argocd
kubectl apply -n argocd \
-f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
# for cloud
kubectl patch svc argocd-server -n argocd \
-p '{"spec": {"type": "LoadBalancer"}}'
# username is admin
kubectl get secret argocd-initial-admin-secret \
-n argocd \
-o jsonpath="{.data.password}" | base64 -d
- Install argo cd cli
- Argo cd sync policies: Refer Here
- Refer Here for argocd application yaml
- Exercise: Make argo cd deploy a helm chart from a git repo.
