Argo CD Custom Resources
Application
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: helm-guestbook
spec:
destination:
namespace: helm-guestbook
server: http://cluster-test:8001
project: default
source:
path: helm-guestbook
repoURL: https://github.com/argoproj/argocd-example-apps
targetRevision: HEAD
ApplicationSet
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: guestbook
spec:
generators:
- list:
elements:
- cluster: test
url: http://cluster-test:8001
- cluster: stage
url: http://cluster-stage:8001
template:
metadata:
name: '{{cluster}}-guestbook'
spec:
project: default
source:
path: helm-guestbook
repoURL: https://github.com/argoproj/argocd-example-apps
targetRevision: HEAD
destination:
server: '{{url}}'
namespace: guestbook
AppProject
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: my-project
spec:
description: Example Project