This commit is contained in:
43
argo.template.yaml
Normal file
43
argo.template.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: blog
|
||||
namespace: argocd
|
||||
spec:
|
||||
description: Project for the blog application
|
||||
sourceRepos:
|
||||
- https://git.vanespen.dev/evanespen/blog
|
||||
destinations:
|
||||
- namespace: blog
|
||||
server: https://kubernetes.default.svc
|
||||
clusterResourceWhitelist:
|
||||
- group: "*"
|
||||
kind: "*"
|
||||
namespaceResourceWhitelist:
|
||||
- group: "*"
|
||||
kind: "*"
|
||||
syncWindows: []
|
||||
roles: []
|
||||
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: blog-argo
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: blog
|
||||
source:
|
||||
repoURL: "https://git.vanespen.dev/evanespen/blog"
|
||||
targetRevision: COMMIT_REF
|
||||
path: "k8s"
|
||||
destination:
|
||||
server: "https://kubernetes.default.svc"
|
||||
namespace: blog
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
Reference in New Issue
Block a user