# gitops-bootstrap / kubernetes / t0 "Quick start" # # One Application that watches a folder of Applications. Add a file to that # folder in Git and it appears in the cluster. This is usually called the # app-of-apps pattern. # # Change repoURL to your repository, then: # kubectl apply -f bootstrap.yaml # # Verify: # Add a new Application file to apps/ in the repository and push. # It shows up in Argo CD within about three minutes, with nobody running # a command. # # Expected repository layout: # apps/ # monitoring.yaml <- each of these is an Argo CD Application # logging.yaml --- apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: bootstrap namespace: argocd # Without this finalizer, deleting the bootstrap Application leaves every # application it created running and unmanaged. finalizers: - resources-finalizer.argocd.argoproj.io spec: project: default source: repoURL: https://github.com/your-org/your-cluster-config.git # change me # Pin to a branch you protect. Pointing at HEAD means any push to any # branch can change production. targetRevision: main path: apps directory: recurse: true destination: # This exact string means the cluster Argo CD is running in. server: https://kubernetes.default.svc namespace: argocd syncPolicy: automated: # Remove from the cluster anything that was deleted from Git. prune: true # Undo changes made directly on the cluster. This is the setting that turns # Argo CD from a deployment tool into a control. selfHeal: true syncOptions: - CreateNamespace=true