Skip to content

Commit

Permalink
Add HA manifests (#380)
Browse files Browse the repository at this point in the history
* Add HA support

Signed-off-by: Dan Garfield <[email protected]>

* add documentation

Signed-off-by: Dan Garfield <[email protected]>
  • Loading branch information
todaywasawesome authored Oct 11, 2022
1 parent 6190b34 commit d8820f2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ argocd-autopilot repo bootstrap --recover \

In case of a cluster failure, you can recover argo-cd from an existing repository using `--recover` flag. You can optionally use it with `--app` flag to specify the path to the existing argo-cd manifests.

### Using Argo CD HA
Using Argo CD HA with Argo CD Autopilot is fully supported. Bootstrap Argo CD with high-availability using the [App Specifier](App-Specifier/) model `argocd-autopilot repo bootstrap --app https://github.com/argoproj-labs/argocd-autopilot/manifests/ha`.

### Running Applications:
* autopilot-bootstrap - References the `bootstrap` directory in the GitOps repository, and manages the other 2 applications
* argo-cd - References the `bootstrap/argo-cd` folder, and manages the Argo CD deployment itself (including Argo CD ApplicationSet)
Expand Down
21 changes: 21 additions & 0 deletions manifests/ha/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/ha/install.yaml

configMapGenerator:
- name: argocd-cm
behavior: merge
literals:
- "timeout.reconciliation=15s"

patches:
# reset the crbs to `subject.namespace: default`, so that argo-cd will later change them to the actual ns
- target:
group: rbac.authorization.k8s.io
version: v1
kind: ClusterRoleBinding
patch: |-
- op: replace
path: /subjects/0/namespace
value: default

0 comments on commit d8820f2

Please sign in to comment.