feat: add universal appset system-upgrade-controller and universal-apps app
This commit is contained in:
parent
5d29e8b657
commit
939f846654
2 changed files with 48 additions and 0 deletions
18
clusters/cherry/apps/universal-apps.yaml
Normal file
18
clusters/cherry/apps/universal-apps.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: cherry-universal-apps
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: argocd
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: argocd
|
||||
source:
|
||||
path: universal/
|
||||
repoURL: https://github.com/vojtechmares/gitops.git
|
||||
targetRevision: HEAD
|
||||
30
universal/system-upgrade-controller.yaml
Normal file
30
universal/system-upgrade-controller.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: universal-system-upgrade-controller
|
||||
spec:
|
||||
generators:
|
||||
- list:
|
||||
elements:
|
||||
- cluster: cherry
|
||||
url: https://kubernetes.default.svc
|
||||
syncPolicy:
|
||||
applicationsSync: sync
|
||||
template:
|
||||
metadata:
|
||||
name: "{{cluster}}-system-upgrade-controller"
|
||||
spec:
|
||||
project: infrastructure
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
source:
|
||||
repoURL: https://github.com/rancher/system-upgrade-controller.git
|
||||
targetRevision: v0.13.1
|
||||
path: manifests/
|
||||
destination:
|
||||
server: "{{url}}"
|
||||
namespace: system-upgrade
|
||||
Reference in a new issue