Topics Discussed:
- Introduction to Containers,Kubernetes,Github
- GitOps Workflow
- ArgoCD Setup
- Create an application
- Auto Sync,Prune,Self_Heal
- Create a helm based application
- Create a Kustomize Application
- Hook-Presync and PostSync
- Integrating with CI/CD Systems
- What can be brought into GitOps umbrella
- Multiple repo and clusters
What is Gitops?
GitOps is an operating model for Kubernetes and other cloud native technologies, providing a set of best practices that unify Git deployment, management and monitoring for containerized clusters and applications.
What is ArgoCD?
Implemented as a Kubernetes controller, ArgoCD continually monitors running applications to verify that the live state matches the desired state, as defined in Git.
How to install ArgoCD ?
kubectl create namespace argocd
kubectl apply -n argocd -f
https://raw.githubusercontent.com/argoproj/argo-cd/ stable/manifests/install.yaml
Creating an App in ArgoCD
argocd app create guestbook –repo https://github.com/argoproj/argocd-exampleapps.git –path guestbook –dest-namespace default –dest-server https:// kubernetes.default.svc –directory-recurse
Create a Helm app
argocd app create helm-guestbook –repo https://github.com/argoproj/argocdexample-apps.git –path helm-guestbook –dest-namespace default –dest-server https://kubernetes.default.svc –helm-set replicaCount=2
Create a Kustomize app
argocd app create kustomize-guestbook –repo https://github.com/argoproj/ argocd-example-apps.git –path kustomize-guestbook –dest-namespace default –dest-server https://kubernetes.default.svc –kustomize-image gcr.io/heptioimages/ks-guestbook-demo:0.1
Hooks-Presync and PostSync
Synchronization can be configured using resource hooks. Hooks are ways to run scripts before, during, and after a Sync operation.
PreSync-Executes prior to the application of the manifests.
PostSync-Executes after all Sync hooks completed and were successful, a successful application, and all resources in a Healthy state.
Project URL: https://github.com/basil1987/argocd-example-apps
Argocd official documentation: https://argo-cd.readthedocs.io/en/stable/
Armando Westra
August 28, 2024 8:51 amNhững hình ảnh bạn sử dụng thật tinh tế, làm cho nội dung trở nên cuốn hút.
Marth Eismann
August 28, 2024 9:10 amBạn có tài năng trong việc kể chuyện, khiến nội dung trở nên cuốn hút hơn.