3 changed files with 51 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||||
|
|
||||
|
apiVersion: argoproj.io/v1alpha1 |
||||
|
kind: ApplicationSet |
||||
|
metadata: |
||||
|
name: test-appset |
||||
|
namespace: argocd |
||||
|
spec: |
||||
|
generators: |
||||
|
- list: |
||||
|
elements: |
||||
|
# v0.2.0+ form - does not require cluster/URL keys (but are still supported) |
||||
|
- overlay: qa |
||||
|
gitRepo: git@github.com:evercast-chris/argocd-example-apps.git |
||||
|
appPath: overlays |
||||
|
appBranch: master |
||||
|
cluster: test2 |
||||
|
url: https://kubernetes.default.svc |
||||
|
- overlay: stage |
||||
|
gitRepo: git@github.com:evercast-chris/argocd-example-apps.git |
||||
|
appPath: overlays |
||||
|
appBranch: master |
||||
|
cluster: test1 |
||||
|
url: https://kubernetes.default.svc |
||||
|
template: |
||||
|
metadata: |
||||
|
name: 'demo-{{cluster}}' |
@ -0,0 +1,17 @@ |
|||||
|
apiVersion: argoproj.io/v1alpha1 |
||||
|
kind: Application |
||||
|
metadata: |
||||
|
name: applicationset |
||||
|
namespace: argocd |
||||
|
spec: |
||||
|
project: default |
||||
|
syncPolicy: |
||||
|
automated: |
||||
|
prune: true |
||||
|
selfHeal: true |
||||
|
source: |
||||
|
repoURL: git@github.com:evercast-chris/argocd-example-apps.git |
||||
|
targetRevision: master |
||||
|
path: applicationsets |
||||
|
destination: |
||||
|
server: https://kubernetes.default.svc |
@ -0,0 +1,8 @@ |
|||||
|
apiVersion: kustomize.config.k8s.io/v1beta1 |
||||
|
kind: Kustomization |
||||
|
|
||||
|
namespace: argocd |
||||
|
|
||||
|
resources: |
||||
|
- appset.yaml |
||||
|
- applicationset.yaml |
Loading…
Reference in new issue