Skip to content

Instantly share code, notes, and snippets.

@nivogt
Created February 18, 2022 11:00
Show Gist options
  • Save nivogt/034754e4c4d2e9c238c2f235104e13cd to your computer and use it in GitHub Desktop.
Save nivogt/034754e4c4d2e9c238c2f235104e13cd to your computer and use it in GitHub Desktop.
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: applications-project
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
description: Project for parent applicatons used when employing app of apps pattern
sourceRepos:
- <-- your source helm chart repositoty here
#
# Define sync window
#
syncWindows:
- kind: allow
schedule: '5 * * * *'
duration: 1h
applications:
- '*'
manualSync: true
#
# Allow this project to deploy only to 'argocd' namespace
#
destinations:
- namespace: argocd
server: https://kubernetes.default.svc
- namespace: monitoring
server: https://XXXXXXXXXXXXXXX.XXX.eu-west-3.eks.amazonaws.com
<-- add any other namespace / cluster association here
clusterResourceWhitelist:
- group: 'argoproj.io'
kind: Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment