Back to articles
Argo CD Has a Free API: GitOps Continuous Delivery for Kubernetes
How-ToDevOps

Argo CD Has a Free API: GitOps Continuous Delivery for Kubernetes

via Dev.to DevOpsAlex Spinov

Why Argo CD Argo CD watches your Git repository and automatically syncs Kubernetes state to match. Push a commit, Argo CD deploys it. Drift detection, rollbacks, multi-cluster — all from Git. Install kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml # CLI brew install argocd # Get initial password argocd admin initial-password -n argocd Create an Application apiVersion : argoproj.io/v1alpha1 kind : Application metadata : name : my-app namespace : argocd spec : project : default source : repoURL : https://github.com/myorg/k8s-manifests.git targetRevision : HEAD path : apps/my-app destination : server : https://kubernetes.default.svc namespace : production syncPolicy : automated : prune : true selfHeal : true syncOptions : - CreateNamespace=true CLI Commands # Sync app argocd app sync my-app # Check status argocd app get my-app # Rollback argocd app rollback my-app 1 # Diff argocd app diff my-app He

Continue reading on Dev.to DevOps

Opens in a new tab

Read Full Article
2 views

Related Articles