-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Carlos Santana <[email protected]>
- Loading branch information
1 parent
92fe063
commit 4e9ac23
Showing
12 changed files
with
376 additions
and
321 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ArgoCD on Amazon EKS | ||
|
||
This example shows how to deploy Amazon EKS with addons configured via ArgoCD | ||
|
||
Deploy EKS Cluster | ||
```shell | ||
terraform init | ||
terraform apply | ||
``` | ||
|
||
Access Terraform output to configure `kubectl` and `argocd` | ||
```shell | ||
terraform output | ||
``` | ||
|
||
Destroy EKS Cluster | ||
```shell | ||
cd hub | ||
./destroy.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ApplicationSet | ||
metadata: | ||
name: bootstrap-addons | ||
namespace: argocd | ||
spec: | ||
syncPolicy: | ||
preserveResourcesOnDeletion: true | ||
generators: | ||
- clusters: | ||
selector: | ||
matchExpressions: | ||
- key: akuity.io/argo-cd-cluster-name | ||
operator: NotIn | ||
values: [in-cluster] | ||
template: | ||
metadata: | ||
name: 'bootstrap-addons' | ||
spec: | ||
project: default | ||
source: | ||
repoURL: '{{metadata.annotations.addons_repo_url}}' | ||
path: '{{metadata.annotations.addons_repo_basepath}}{{metadata.annotations.addons_repo_path}}' | ||
targetRevision: '{{metadata.annotations.addons_repo_revision}}' | ||
directory: | ||
recurse: true | ||
exclude: exclude/* | ||
destination: | ||
namespace: 'argocd' | ||
name: '{{name}}' | ||
syncPolicy: | ||
automated: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: bootstrap-workloads | ||
namespace: 'argocd' | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: 'guestbook' | ||
project: default | ||
source: | ||
path: helm-guestbook | ||
repoURL: https://github.com/argoproj/argocd-example-apps | ||
targetRevision: HEAD | ||
syncPolicy: | ||
automated: {} | ||
syncOptions: | ||
- CreateNamespace=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
# Delete the Ingress/SVC before removing the addons | ||
TMPFILE=$(mktemp) | ||
terraform output -raw configure_kubectl > "$TMPFILE" | ||
source "$TMPFILE" | ||
|
||
kubectl delete svc -n argocd argo-cd-argocd-server | ||
|
||
terraform destroy -target="module.gitops_bridge_bootstrap" -auto-approve | ||
terraform destroy -target="module.eks_blueprints_addons" -auto-approve | ||
terraform destroy -target="module.eks" -auto-approve | ||
terraform destroy -target="module.vpc" -auto-approve | ||
terraform destroy -auto-approve |
Oops, something went wrong.